CbmRoot
|
#include <PairAnalysisObjectCuts.h>
Public Types | |
enum | CutType { kAll = 0, kAny } |
enum | { kNMaxCuts = 10 } |
Public Member Functions | |
PairAnalysisObjectCuts () | |
PairAnalysisObjectCuts (const char *name, const char *title) | |
virtual | ~PairAnalysisObjectCuts () |
void | AddCut (PairAnalysisVarManager::ValueTypes type, const char *formulaMin, const char *formulaMax, Bool_t excludeRange=kFALSE) |
void | AddCut (const char *formula, const char *formulaMin, const char *formulaMax, Bool_t excludeRange=kFALSE) |
void | AddCut (PairAnalysisVarManager::ValueTypes type, TGraph *const graphMin, TGraph *const graphMax, Bool_t excludeRange=kFALSE) |
void | AddCut (const char *formula, TGraph *const graphMin, TGraph *const graphMax, Bool_t excludeRange=kFALSE) |
void | AddCut (PairAnalysisVarManager::ValueTypes type, THnBase *const histMin, THnBase *const histMax, Bool_t excludeRange=kFALSE) |
void | AddCut (const char *formula, THnBase *const histMin, THnBase *const histMax, Bool_t excludeRange=kFALSE) |
void | SetCutType (CutType type) |
CutType | GetCutType () const |
Int_t | GetNCuts () |
virtual Bool_t | IsSelected (Double_t *const values) |
virtual Bool_t | IsSelected (TObject *track) |
virtual Bool_t | IsSelected (TList *) |
virtual UInt_t | GetSelectedCutsMask () const |
virtual void | Print (const Option_t *option="") const |
virtual void | Init () |
virtual void | SetFilterMask (UInt_t mask) |
virtual UInt_t | GetFilterMask () const |
virtual void | SetSelected (Bool_t dec) |
virtual UInt_t | Selected () const |
virtual Long64_t | Merge (TCollection *) |
virtual TList * | GetOutput () |
virtual TObject * | GetStatistics (Option_t *) const |
Private Member Functions | |
PairAnalysisObjectCuts (const PairAnalysisObjectCuts &c) | |
PairAnalysisObjectCuts & | operator= (const PairAnalysisObjectCuts &c) |
ClassDef (AnalysisCuts, 1) | |
Private Attributes | |
TBits * | fUsedVars |
UShort_t | fActiveCuts [PairAnalysisObjectCuts::kNMaxCuts] |
UShort_t | fNActiveCuts = 0 |
UInt_t | fActiveCutsMask = 0 |
UInt_t | fSelectedCutsMask |
CutType | fCutType = kAll |
Bool_t | fCutExclude [PairAnalysisObjectCuts::kNMaxCuts] |
TObject * | fCutMin [PairAnalysisObjectCuts::kNMaxCuts] |
TObject * | fCutMax [PairAnalysisObjectCuts::kNMaxCuts] |
TFormula * | fVarFormula [PairAnalysisObjectCuts::kNMaxCuts] |
UInt_t | fFilterMask |
Bool_t | fSelected |
Definition at line 22 of file PairAnalysisObjectCuts.h.
anonymous enum |
Enumerator | |
---|---|
kNMaxCuts |
Definition at line 26 of file PairAnalysisObjectCuts.h.
Enumerator | |
---|---|
kAll | |
kAny |
Definition at line 25 of file PairAnalysisObjectCuts.h.
PairAnalysisObjectCuts::PairAnalysisObjectCuts | ( | ) |
PairAnalysisObjectCuts::PairAnalysisObjectCuts | ( | const char * | name, |
const char * | title | ||
) |
Definition at line 39 of file PairAnalysisObjectCuts.cxx.
References fActiveCuts, fCutExclude, fCutMax, fCutMin, fVarFormula, i, PairAnalysisVarManager::InitFormulas(), and kNMaxCuts.
|
virtual |
Definition at line 57 of file PairAnalysisObjectCuts.cxx.
References fActiveCuts, fCutMax, fCutMin, fUsedVars, fVarFormula, i, and kNMaxCuts.
|
private |
void PairAnalysisObjectCuts::AddCut | ( | const char * | formula, |
const char * | formulaMin, | ||
const char * | formulaMax, | ||
Bool_t | excludeRange = kFALSE |
||
) |
Definition at line 243 of file PairAnalysisObjectCuts.cxx.
References fActiveCuts, fActiveCutsMask, fCutExclude, fCutMax, fCutMin, fNActiveCuts, fVarFormula, PairAnalysisHelper::GetFormula(), and PairAnalysisVarManager::kNMaxValuesMC.
void PairAnalysisObjectCuts::AddCut | ( | const char * | formula, |
TGraph *const | graphMin, | ||
TGraph *const | graphMax, | ||
Bool_t | excludeRange = kFALSE |
||
) |
Definition at line 287 of file PairAnalysisObjectCuts.cxx.
References fActiveCuts, fActiveCutsMask, fCutExclude, fCutMax, fCutMin, fNActiveCuts, fVarFormula, PairAnalysisHelper::GetFormula(), and PairAnalysisVarManager::kNMaxValuesMC.
void PairAnalysisObjectCuts::AddCut | ( | const char * | formula, |
THnBase *const | histMin, | ||
THnBase *const | histMax, | ||
Bool_t | excludeRange = kFALSE |
||
) |
Definition at line 329 of file PairAnalysisObjectCuts.cxx.
References fActiveCuts, fActiveCutsMask, fCutExclude, fCutMax, fCutMin, fNActiveCuts, fVarFormula, PairAnalysisHelper::GetFormula(), and PairAnalysisVarManager::kNMaxValuesMC.
void PairAnalysisObjectCuts::AddCut | ( | PairAnalysisVarManager::ValueTypes | type, |
const char * | formulaMin, | ||
const char * | formulaMax, | ||
Bool_t | excludeRange = kFALSE |
||
) |
Definition at line 224 of file PairAnalysisObjectCuts.cxx.
References fActiveCuts, fActiveCutsMask, fCutExclude, fCutMax, fCutMin, fNActiveCuts, fUsedVars, and PairAnalysisHelper::GetFormula().
void PairAnalysisObjectCuts::AddCut | ( | PairAnalysisVarManager::ValueTypes | type, |
TGraph *const | graphMin, | ||
TGraph *const | graphMax, | ||
Bool_t | excludeRange = kFALSE |
||
) |
Definition at line 262 of file PairAnalysisObjectCuts.cxx.
References fActiveCuts, fActiveCutsMask, fCutExclude, fCutMax, fCutMin, fNActiveCuts, and fUsedVars.
void PairAnalysisObjectCuts::AddCut | ( | PairAnalysisVarManager::ValueTypes | type, |
THnBase *const | histMin, | ||
THnBase *const | histMax, | ||
Bool_t | excludeRange = kFALSE |
||
) |
Definition at line 312 of file PairAnalysisObjectCuts.cxx.
References fActiveCuts, fActiveCutsMask, fCutExclude, fCutMax, fCutMin, fNActiveCuts, and fUsedVars.
|
privateinherited |
|
inline |
Definition at line 63 of file PairAnalysisObjectCuts.h.
References fCutType.
|
inlinevirtualinherited |
Definition at line 24 of file AnalysisCuts.h.
References AnalysisCuts::fFilterMask.
Referenced by AnalysisFilter::IsSelected().
|
inline |
Definition at line 65 of file PairAnalysisObjectCuts.h.
References fNActiveCuts.
|
inlinevirtualinherited |
Definition at line 29 of file AnalysisCuts.h.
|
inlinevirtual |
Definition at line 77 of file PairAnalysisObjectCuts.h.
References fSelectedCutsMask.
|
inlinevirtualinherited |
Definition at line 30 of file AnalysisCuts.h.
|
inlinevirtualinherited |
Reimplemented in PairAnalysisCutGroup.
Definition at line 22 of file AnalysisCuts.h.
Referenced by AnalysisFilter::Init().
|
virtual |
use a THnBase inherited cut object //
TODO: what about formulas in the axis
TODO: what about formulas in the axis
use formulas for the cut //
use graph for the cut // NOTE: binary search or a linear interpolation is used, spline creation at each eval is too cpu expensive
use a linear interpolation
binary search
TODO: think about poper implementation, how to store the x-variable in the spline use spline for the cut //
Reimplemented from AnalysisCuts.
Definition at line 71 of file PairAnalysisObjectCuts.cxx.
References PairAnalysisHelper::EvalFormula(), fActiveCuts, fActiveCutsMask, fCutExclude, fCutMax, fCutMin, fCutType, fNActiveCuts, fSelectedCutsMask, fVarFormula, PairAnalysisVarManager::GetValueType(), kAll, kAny, and AnalysisCuts::SetSelected().
Referenced by IsSelected().
|
inlinevirtual |
Implements AnalysisCuts.
Definition at line 72 of file PairAnalysisObjectCuts.h.
|
virtual |
Reimplemented from AnalysisCuts.
Definition at line 205 of file PairAnalysisObjectCuts.cxx.
References PairAnalysisVarManager::Fill(), fSelectedCutsMask, fUsedVars, PairAnalysisVarManager::GetData(), IsSelected(), PairAnalysisVarManager::SetFillMap(), and AnalysisCuts::SetSelected().
|
inlinevirtualinherited |
Definition at line 28 of file AnalysisCuts.h.
|
private |
|
virtual |
loop over all cuts
Definition at line 346 of file PairAnalysisObjectCuts.cxx.
References fActiveCuts, fCutExclude, fCutMin, fCutType, fNActiveCuts, fVarFormula, PairAnalysisVarManager::GetValueName(), and kAll.
|
inlinevirtualinherited |
Definition at line 26 of file AnalysisCuts.h.
References AnalysisCuts::fSelected.
Referenced by AnalysisFilter::IsSelected().
|
inline |
Definition at line 60 of file PairAnalysisObjectCuts.h.
References fCutType.
|
inlinevirtualinherited |
Definition at line 23 of file AnalysisCuts.h.
References AnalysisCuts::fFilterMask.
|
inlinevirtualinherited |
Definition at line 25 of file AnalysisCuts.h.
References AnalysisCuts::fSelected.
Referenced by AnalysisFilter::IsSelected(), PairAnalysisPairLegCuts::IsSelected(), PairAnalysisCutCombi::IsSelected(), PairAnalysisVarCuts::IsSelected(), and IsSelected().
|
private |
Definition at line 85 of file PairAnalysisObjectCuts.h.
Referenced by AddCut(), IsSelected(), PairAnalysisObjectCuts(), Print(), and ~PairAnalysisObjectCuts().
|
private |
Definition at line 87 of file PairAnalysisObjectCuts.h.
Referenced by AddCut(), and IsSelected().
|
private |
Definition at line 93 of file PairAnalysisObjectCuts.h.
Referenced by AddCut(), IsSelected(), PairAnalysisObjectCuts(), and Print().
|
private |
Definition at line 97 of file PairAnalysisObjectCuts.h.
Referenced by AddCut(), IsSelected(), PairAnalysisObjectCuts(), and ~PairAnalysisObjectCuts().
|
private |
Definition at line 95 of file PairAnalysisObjectCuts.h.
Referenced by AddCut(), IsSelected(), PairAnalysisObjectCuts(), Print(), and ~PairAnalysisObjectCuts().
Definition at line 91 of file PairAnalysisObjectCuts.h.
Referenced by GetCutType(), IsSelected(), Print(), and SetCutType().
|
privateinherited |
Definition at line 34 of file AnalysisCuts.h.
Referenced by AnalysisCuts::GetFilterMask(), AnalysisCuts::operator=(), and AnalysisCuts::SetFilterMask().
|
private |
Definition at line 86 of file PairAnalysisObjectCuts.h.
Referenced by AddCut(), GetNCuts(), IsSelected(), and Print().
|
privateinherited |
Definition at line 35 of file AnalysisCuts.h.
Referenced by AnalysisCuts::operator=(), AnalysisCuts::Selected(), and AnalysisCuts::SetSelected().
|
private |
Definition at line 89 of file PairAnalysisObjectCuts.h.
Referenced by GetSelectedCutsMask(), and IsSelected().
|
private |
Definition at line 83 of file PairAnalysisObjectCuts.h.
Referenced by AddCut(), IsSelected(), and ~PairAnalysisObjectCuts().
|
private |
Definition at line 98 of file PairAnalysisObjectCuts.h.
Referenced by AddCut(), IsSelected(), PairAnalysisObjectCuts(), Print(), and ~PairAnalysisObjectCuts().