AnalysisTree
Loading...
Searching...
No Matches
AnalysisTree Namespace Reference

Cuts keep list of SimpleCuts. Logical AND is applied for all SimpleCut in the Cuts object. More...

Classes

class  AnalysisEntry
 AnalysisEntry keeps list of Variables from one or more branches. Before each event AnalysisEntry evaluates Variables and Cuts. More...
 
class  AnalysisTask
 AnalysisTask is a Task which keeps list of AnalysisEntry-s It evaluates Variables according to the rules of AnalysisEntry-s and populates 2-dimensional array with results of evaluation. More...
 
class  Branch
 
class  BranchChannel
 
class  BranchConfig
 A class to store configuration of the Container. More...
 
class  Chain
 
class  ChainDrawHelper
 
struct  clear_channels_struct
 
struct  ConfigElement
 Information to store about a data field in Configuration. More...
 
class  Configuration
 A class to store configuration of the whole AnalysisTree object. More...
 
class  Configuration_v3
 Some ROOT magic, ask Eugeny. More...
 
class  Container
 A class to store any number of integers, floats and bools. More...
 
struct  copy_content_struct
 
class  Cuts
 Cuts holds list of SimpleCuts and provides Apply function which subsequently applies cuts. More...
 
class  DataHeader
 
class  Detector
 
class  EventHeader
 
class  Field
 Field is a pointer in a branch/field structure. More...
 
struct  get_channel_struct
 
struct  get_field_struct
 
struct  get_id_struct
 
struct  get_n_channels_struct
 
class  Hit
 
class  IndexAccessor
 
class  IndexedObject
 
class  Matching
 
class  MatchingConfig
 Information to store about Matching. More...
 
class  Module
 
class  ModulePosition
 
struct  new_channel_struct
 
class  Particle
 
class  PlainTreeFiller
 
struct  set_branch_address_struct
 
struct  set_field_struct
 
class  SimpleCut
 SimpleCut keeps predicate (lambda function with vector of arguments) and list of Variables. More...
 
class  Task
 
class  TaskManager
 
class  ToyMC
 
class  Track
 A class for a generic track with determined momentum. More...
 
class  Variable
 Variable is a wrapper object for Field. In contrary to Field Variable is not bound to the data. It could represent a Field itself or, if specified, a result of operation on two or more fields. More...
 
class  VectorConfig
 Template class to store configuration, e. g. name and description of the vector element. More...
 

Typedefs

typedef std::map< std::string, ConfigElementMapType
 
typedef Float_t Floating_t
 
typedef Int_t Integer_t
 
typedef UInt_t UInteger_t
 
typedef Short_t ShortInt_t
 
typedef Long64_t PdgCode_t
 
using TrackDetector = Detector<Track>
 
using ModuleDetector = Detector<Module>
 
using ModulePositions = Detector<ModulePosition>
 
using HitDetector = Detector<Hit>
 
using Particles = Detector<Particle>
 
using GenericDetector = Detector<Container>
 
using BranchPointer = ANALYSISTREE_UTILS_VARIANT<HitDetector*, ModuleDetector*, TrackDetector*, EventHeader*, Particles*>
 
using ChannelPointer = ANALYSISTREE_UTILS_VARIANT<Hit*, Module*, Track*, EventHeader*, Particle*>
 

Enumerations

enum class  DetType : ShortInt_t {
  kHit = 0 , kModule , kTrack , kEventHeader ,
  kParticle
}
 
enum class  Types : ShortInt_t { kFloat = 0 , kInteger , kBool , kNumberOfTypes }
 
enum class  eBranchWriteMode { kCreateNewTree , kCopyTree , kNone }
 

Functions

bool operator== (const Hit &that, const Hit &other)
 
bool operator== (const AnalysisTree::Module &that, const AnalysisTree::Module &other)
 
bool operator== (const Track &that, const Track &other)
 
bool operator== (const Cuts &that, const Cuts &other)
 
bool operator== (const Field &that, const Field &other)
 
bool operator> (const Field &that, const Field &other)
 
bool operator< (const Field &that, const Field &other)
 
bool operator== (const SimpleCut &that, const SimpleCut &other)
 
SimpleCut RangeCut (const std::string &variable_name, double lo, double hi, const std::string &title="")
 
SimpleCut EqualsCut (const std::string &variable_name, int value, const std::string &title="")
 
SimpleCut RangeCut (const Variable &var, double lo, double hi, const std::string &title="")
 
SimpleCut EqualsCut (const Variable &var, int value, const std::string &title="")
 
void RunToyMC (int n_events=1000, const std::string &filelist="")
 
bool operator== (const AnalysisTree::Variable &that, const AnalysisTree::Variable &other)
 
bool operator> (const AnalysisTree::Variable &that, const AnalysisTree::Variable &other)
 
bool operator< (const AnalysisTree::Variable &that, const AnalysisTree::Variable &other)
 

Variables

constexpr Floating_t UndefValueFloat = -999.
 
constexpr ShortInt_t UndefValueShort = -999
 
constexpr Integer_t UndefValueInt = -999
 
constexpr double SmallNumber = 1e-6
 

Detailed Description

Cuts keep list of SimpleCuts. Logical AND is applied for all SimpleCut in the Cuts object.

Function Documentation

◆ EqualsCut() [1/2]

SimpleCut AnalysisTree::EqualsCut ( const std::string & variable_name,
int value,
const std::string & title = "" )

Constructor for integers and bool fields for cut: field == value

Parameters
variable_namename of the variable in format "branch.field"
valueonly objects with field == value will be accepted

◆ EqualsCut() [2/2]

SimpleCut AnalysisTree::EqualsCut ( const Variable & var,
int value,
const std::string & title = "" )

Constructor for integers and bool fields for cut: field == value

Parameters
variablename of the pre-defined variable
valueonly objects with field == value will be accepted

◆ operator==()

bool AnalysisTree::operator== ( const Track & that,
const Track & other )
noexcept

Compares 2 tracks

Parameters
that,other- tracks to compare

◆ RangeCut() [1/2]

SimpleCut AnalysisTree::RangeCut ( const std::string & variable_name,
double lo,
double hi,
const std::string & title = "" )

Constructor for range cut: min <= field <= max

Parameters
variable_namename of the variable in format "branch.field"
minminimal accepted value
maxmaximal accepted value

◆ RangeCut() [2/2]

SimpleCut AnalysisTree::RangeCut ( const Variable & var,
double lo,
double hi,
const std::string & title = "" )

Constructor for range cut: min <= field <= max

Parameters
variablename of the pre-defined variable
minminimal accepted value
maxmaximal accepted value