Cuts keep list of SimpleCuts. Logical AND is applied for all SimpleCut in the Cuts object.
More...
|
typedef std::map< std::string, ConfigElement > | MapType |
|
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*, GenericDetector*> |
|
using | ChannelPointer = ANALYSISTREE_UTILS_VARIANT<Hit*, Module*, Track*, EventHeader*, Particle*, Container*> |
|
|
enum class | DetType : ShortInt_t {
kHit = 0
, kModule
, kTrack
, kEventHeader
,
kParticle
, kGeneric
} |
|
enum class | Types : ShortInt_t { kFloat = 0
, kInteger
, kBool
, kNumberOfTypes
} |
|
enum class | eBranchWriteMode { kCreateNewTree
, kCopyTree
, kNone
} |
|
|
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="") |
|
SimpleCut | OpenCut (const std::string &branchName, const std::string &title="alwaysTrue") |
|
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) |
|
|
constexpr Floating_t | UndefValueFloat = -999.f |
|
constexpr ShortInt_t | UndefValueShort = -999 |
|
constexpr Integer_t | UndefValueInt = -999 |
|
constexpr double | SmallNumber = 1e-6 |
|
constexpr double | HugeNumber = 1e9 |
|
Cuts keep list of SimpleCuts. Logical AND is applied for all SimpleCut in the Cuts object.
◆ 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_name | name of the variable in format "branch.field" |
value | only 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
-
variable | name of the pre-defined variable |
value | only objects with field == value will be accepted |
◆ OpenCut()
SimpleCut AnalysisTree::OpenCut |
( |
const std::string & | branchName, |
|
|
const std::string & | title = "alwaysTrue" ) |
Constructor for a cut which is always passed (needed for keeping generality of the user's code, when a set of cuts is iterated and an iteration with no-cut is needed)
- Parameters
-
branchName | name of the branch, which is present in other cuts |
◆ 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_name | name of the variable in format "branch.field" |
min | minimal accepted value |
max | maximal 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
-
variable | name of the pre-defined variable |
min | minimal accepted value |
max | maximal accepted value |