CbmRoot
|
#include <PairAnalysisVarCuts.h>
Public Types | |
enum | CutType { kAll = 0, kAny } |
Public Member Functions | |
PairAnalysisVarCuts () | |
PairAnalysisVarCuts (const char *name, const char *title) | |
virtual | ~PairAnalysisVarCuts () |
void | AddCut (PairAnalysisVarManager::ValueTypes type, Double_t min, Double_t max, Bool_t excludeRange=kFALSE) |
void | AddCut (const char *formula, Double_t min, Double_t max, Bool_t excludeRange=kFALSE) |
void | AddCut (PairAnalysisVarManager::ValueTypes type, Double_t value, Bool_t excludeRange=kFALSE) |
void | AddBitCut (PairAnalysisVarManager::ValueTypes type, UInt_t bit, 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 | |
PairAnalysisVarCuts (const PairAnalysisVarCuts &c) | |
PairAnalysisVarCuts & | operator= (const PairAnalysisVarCuts &c) |
ClassDef (AnalysisCuts, 1) | |
Private Attributes | |
TBits * | fUsedVars |
UShort_t | fActiveCuts [PairAnalysisVarManager::kNMaxValuesMC] |
UShort_t | fNActiveCuts |
UInt_t | fActiveCutsMask |
UInt_t | fSelectedCutsMask |
CutType | fCutType |
Double_t | fCutMin [PairAnalysisVarManager::kNMaxValuesMC] |
Double_t | fCutMax [PairAnalysisVarManager::kNMaxValuesMC] |
Bool_t | fCutExclude [PairAnalysisVarManager::kNMaxValuesMC] |
Bool_t | fBitCut [PairAnalysisVarManager::kNMaxValuesMC] |
TObject * | fCutVar [PairAnalysisVarManager::kNMaxValuesMC] |
UInt_t | fFilterMask |
Bool_t | fSelected |
Definition at line 23 of file PairAnalysisVarCuts.h.
Enumerator | |
---|---|
kAll | |
kAny |
Definition at line 26 of file PairAnalysisVarCuts.h.
PairAnalysisVarCuts::PairAnalysisVarCuts | ( | ) |
PairAnalysisVarCuts::PairAnalysisVarCuts | ( | const char * | name, |
const char * | title | ||
) |
Definition at line 57 of file PairAnalysisVarCuts.cxx.
References fActiveCuts, fBitCut, fCutExclude, fCutMax, fCutMin, fCutVar, i, PairAnalysisVarManager::InitFormulas(), and PairAnalysisVarManager::kNMaxValuesMC.
|
virtual |
Definition at line 79 of file PairAnalysisVarCuts.cxx.
References fCutVar, fUsedVars, i, and PairAnalysisVarManager::kNMaxValuesMC.
|
private |
void PairAnalysisVarCuts::AddBitCut | ( | PairAnalysisVarManager::ValueTypes | type, |
UInt_t | bit, | ||
Bool_t | excludeRange = kFALSE |
||
) |
Definition at line 213 of file PairAnalysisVarCuts.cxx.
References fActiveCuts, fActiveCutsMask, fBitCut, fCutExclude, fCutMin, fNActiveCuts, and fUsedVars.
void PairAnalysisVarCuts::AddCut | ( | const char * | formula, |
Double_t | min, | ||
Double_t | max, | ||
Bool_t | excludeRange = kFALSE |
||
) |
Definition at line 179 of file PairAnalysisVarCuts.cxx.
References fActiveCuts, fActiveCutsMask, fCutExclude, fCutMax, fCutMin, fCutVar, fNActiveCuts, fUsedVars, PairAnalysisVarManager::GetValueName(), i, PairAnalysisVarManager::kNMaxValuesMC, max(), and min().
void PairAnalysisVarCuts::AddCut | ( | PairAnalysisVarManager::ValueTypes | type, |
Double_t | min, | ||
Double_t | max, | ||
Bool_t | excludeRange = kFALSE |
||
) |
Definition at line 157 of file PairAnalysisVarCuts.cxx.
References fActiveCuts, fActiveCutsMask, fCutExclude, fCutMax, fCutMin, fNActiveCuts, fUsedVars, max(), and min().
Referenced by AddCut().
|
inline |
Definition at line 106 of file PairAnalysisVarCuts.h.
References AddCut().
|
privateinherited |
|
inline |
Definition at line 52 of file PairAnalysisVarCuts.h.
References fCutType.
|
inlinevirtualinherited |
Definition at line 24 of file AnalysisCuts.h.
References AnalysisCuts::fFilterMask.
Referenced by AnalysisFilter::IsSelected().
|
inline |
Definition at line 54 of file PairAnalysisVarCuts.h.
References fNActiveCuts.
|
inlinevirtualinherited |
Definition at line 29 of file AnalysisCuts.h.
|
inlinevirtual |
Definition at line 69 of file PairAnalysisVarCuts.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 formula for the variable //
Reimplemented from AnalysisCuts.
Definition at line 90 of file PairAnalysisVarCuts.cxx.
References PairAnalysisHelper::EvalFormula(), fActiveCuts, fActiveCutsMask, fBitCut, fCutExclude, fCutMax, fCutMin, fCutType, fCutVar, fNActiveCuts, fSelectedCutsMask, kAll, kAny, and AnalysisCuts::SetSelected().
Referenced by IsSelected().
|
inlinevirtual |
Implements AnalysisCuts.
Definition at line 61 of file PairAnalysisVarCuts.h.
|
virtual |
selection
Reimplemented from AnalysisCuts.
Definition at line 136 of file PairAnalysisVarCuts.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 |
Definition at line 229 of file PairAnalysisVarCuts.cxx.
References fActiveCuts, fBitCut, fCutExclude, fCutMax, fCutMin, fCutType, fCutVar, fNActiveCuts, PairAnalysisVarManager::GetValueName(), and kAll.
|
inlinevirtualinherited |
Definition at line 26 of file AnalysisCuts.h.
References AnalysisCuts::fSelected.
Referenced by AnalysisFilter::IsSelected().
|
inline |
Definition at line 49 of file PairAnalysisVarCuts.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(), IsSelected(), and PairAnalysisObjectCuts::IsSelected().
|
private |
Definition at line 76 of file PairAnalysisVarCuts.h.
Referenced by AddBitCut(), AddCut(), IsSelected(), PairAnalysisVarCuts(), and Print().
|
private |
Definition at line 79 of file PairAnalysisVarCuts.h.
Referenced by AddBitCut(), AddCut(), and IsSelected().
|
private |
Definition at line 91 of file PairAnalysisVarCuts.h.
Referenced by AddBitCut(), IsSelected(), PairAnalysisVarCuts(), and Print().
|
private |
Definition at line 90 of file PairAnalysisVarCuts.h.
Referenced by AddBitCut(), AddCut(), IsSelected(), PairAnalysisVarCuts(), and Print().
|
private |
Definition at line 87 of file PairAnalysisVarCuts.h.
Referenced by AddCut(), IsSelected(), PairAnalysisVarCuts(), and Print().
|
private |
Definition at line 85 of file PairAnalysisVarCuts.h.
Referenced by AddBitCut(), AddCut(), IsSelected(), PairAnalysisVarCuts(), and Print().
|
private |
Definition at line 83 of file PairAnalysisVarCuts.h.
Referenced by GetCutType(), IsSelected(), Print(), and SetCutType().
|
private |
Definition at line 92 of file PairAnalysisVarCuts.h.
Referenced by AddCut(), IsSelected(), PairAnalysisVarCuts(), Print(), and ~PairAnalysisVarCuts().
|
privateinherited |
Definition at line 34 of file AnalysisCuts.h.
Referenced by AnalysisCuts::GetFilterMask(), AnalysisCuts::operator=(), and AnalysisCuts::SetFilterMask().
|
private |
Definition at line 78 of file PairAnalysisVarCuts.h.
Referenced by AddBitCut(), 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 82 of file PairAnalysisVarCuts.h.
Referenced by GetSelectedCutsMask(), and IsSelected().
|
private |
Definition at line 75 of file PairAnalysisVarCuts.h.
Referenced by AddBitCut(), AddCut(), IsSelected(), and ~PairAnalysisVarCuts().