CbmRoot
PairAnalysisVarCuts Class Reference

#include <PairAnalysisVarCuts.h>

Inheritance diagram for PairAnalysisVarCuts:
[legend]
Collaboration diagram for PairAnalysisVarCuts:
[legend]

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)
 
PairAnalysisVarCutsoperator= (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
 

Detailed Description

Definition at line 23 of file PairAnalysisVarCuts.h.

Member Enumeration Documentation

◆ CutType

Enumerator
kAll 
kAny 

Definition at line 26 of file PairAnalysisVarCuts.h.

Constructor & Destructor Documentation

◆ PairAnalysisVarCuts() [1/3]

PairAnalysisVarCuts::PairAnalysisVarCuts ( )

◆ PairAnalysisVarCuts() [2/3]

PairAnalysisVarCuts::PairAnalysisVarCuts ( const char *  name,
const char *  title 
)

◆ ~PairAnalysisVarCuts()

PairAnalysisVarCuts::~PairAnalysisVarCuts ( )
virtual

Definition at line 79 of file PairAnalysisVarCuts.cxx.

References fCutVar, fUsedVars, i, and PairAnalysisVarManager::kNMaxValuesMC.

◆ PairAnalysisVarCuts() [3/3]

PairAnalysisVarCuts::PairAnalysisVarCuts ( const PairAnalysisVarCuts c)
private

Member Function Documentation

◆ AddBitCut()

void PairAnalysisVarCuts::AddBitCut ( PairAnalysisVarManager::ValueTypes  type,
UInt_t  bit,
Bool_t  excludeRange = kFALSE 
)

◆ AddCut() [1/3]

void PairAnalysisVarCuts::AddCut ( const char *  formula,
Double_t  min,
Double_t  max,
Bool_t  excludeRange = kFALSE 
)

◆ AddCut() [2/3]

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().

◆ AddCut() [3/3]

void PairAnalysisVarCuts::AddCut ( PairAnalysisVarManager::ValueTypes  type,
Double_t  value,
Bool_t  excludeRange = kFALSE 
)
inline

Definition at line 106 of file PairAnalysisVarCuts.h.

References AddCut().

◆ ClassDef()

AnalysisCuts::ClassDef ( AnalysisCuts  ,
 
)
privateinherited

◆ GetCutType()

CutType PairAnalysisVarCuts::GetCutType ( ) const
inline

Definition at line 52 of file PairAnalysisVarCuts.h.

References fCutType.

◆ GetFilterMask()

virtual UInt_t AnalysisCuts::GetFilterMask ( ) const
inlinevirtualinherited

Definition at line 24 of file AnalysisCuts.h.

References AnalysisCuts::fFilterMask.

Referenced by AnalysisFilter::IsSelected().

◆ GetNCuts()

Int_t PairAnalysisVarCuts::GetNCuts ( )
inline

Definition at line 54 of file PairAnalysisVarCuts.h.

References fNActiveCuts.

◆ GetOutput()

virtual TList* AnalysisCuts::GetOutput ( )
inlinevirtualinherited

Definition at line 29 of file AnalysisCuts.h.

◆ GetSelectedCutsMask()

virtual UInt_t PairAnalysisVarCuts::GetSelectedCutsMask ( ) const
inlinevirtual

Definition at line 69 of file PairAnalysisVarCuts.h.

References fSelectedCutsMask.

◆ GetStatistics()

virtual TObject* AnalysisCuts::GetStatistics ( Option_t *  ) const
inlinevirtualinherited

Definition at line 30 of file AnalysisCuts.h.

◆ Init()

virtual void AnalysisCuts::Init ( )
inlinevirtualinherited

Reimplemented in PairAnalysisCutGroup.

Definition at line 22 of file AnalysisCuts.h.

Referenced by AnalysisFilter::Init().

◆ IsSelected() [1/3]

Bool_t PairAnalysisVarCuts::IsSelected ( Double_t *const  values)
virtual

◆ IsSelected() [2/3]

virtual Bool_t PairAnalysisVarCuts::IsSelected ( TList *  )
inlinevirtual

Implements AnalysisCuts.

Definition at line 61 of file PairAnalysisVarCuts.h.

◆ IsSelected() [3/3]

Bool_t PairAnalysisVarCuts::IsSelected ( TObject *  track)
virtual

◆ Merge()

virtual Long64_t AnalysisCuts::Merge ( TCollection *  )
inlinevirtualinherited

Definition at line 28 of file AnalysisCuts.h.

◆ operator=()

PairAnalysisVarCuts& PairAnalysisVarCuts::operator= ( const PairAnalysisVarCuts c)
private

◆ Print()

void PairAnalysisVarCuts::Print ( const Option_t *  option = "") const
virtual

◆ Selected()

virtual UInt_t AnalysisCuts::Selected ( ) const
inlinevirtualinherited

Definition at line 26 of file AnalysisCuts.h.

References AnalysisCuts::fSelected.

Referenced by AnalysisFilter::IsSelected().

◆ SetCutType()

void PairAnalysisVarCuts::SetCutType ( CutType  type)
inline

Definition at line 49 of file PairAnalysisVarCuts.h.

References fCutType.

◆ SetFilterMask()

virtual void AnalysisCuts::SetFilterMask ( UInt_t  mask)
inlinevirtualinherited

Definition at line 23 of file AnalysisCuts.h.

References AnalysisCuts::fFilterMask.

◆ SetSelected()

virtual void AnalysisCuts::SetSelected ( Bool_t  dec)
inlinevirtualinherited

Member Data Documentation

◆ fActiveCuts

UShort_t PairAnalysisVarCuts::fActiveCuts[PairAnalysisVarManager::kNMaxValuesMC]
private

Definition at line 76 of file PairAnalysisVarCuts.h.

Referenced by AddBitCut(), AddCut(), IsSelected(), PairAnalysisVarCuts(), and Print().

◆ fActiveCutsMask

UInt_t PairAnalysisVarCuts::fActiveCutsMask
private

Definition at line 79 of file PairAnalysisVarCuts.h.

Referenced by AddBitCut(), AddCut(), and IsSelected().

◆ fBitCut

Bool_t PairAnalysisVarCuts::fBitCut[PairAnalysisVarManager::kNMaxValuesMC]
private

Definition at line 91 of file PairAnalysisVarCuts.h.

Referenced by AddBitCut(), IsSelected(), PairAnalysisVarCuts(), and Print().

◆ fCutExclude

Bool_t PairAnalysisVarCuts::fCutExclude[PairAnalysisVarManager::kNMaxValuesMC]
private

Definition at line 90 of file PairAnalysisVarCuts.h.

Referenced by AddBitCut(), AddCut(), IsSelected(), PairAnalysisVarCuts(), and Print().

◆ fCutMax

Double_t PairAnalysisVarCuts::fCutMax[PairAnalysisVarManager::kNMaxValuesMC]
private

Definition at line 87 of file PairAnalysisVarCuts.h.

Referenced by AddCut(), IsSelected(), PairAnalysisVarCuts(), and Print().

◆ fCutMin

Double_t PairAnalysisVarCuts::fCutMin[PairAnalysisVarManager::kNMaxValuesMC]
private

Definition at line 85 of file PairAnalysisVarCuts.h.

Referenced by AddBitCut(), AddCut(), IsSelected(), PairAnalysisVarCuts(), and Print().

◆ fCutType

CutType PairAnalysisVarCuts::fCutType
private

Definition at line 83 of file PairAnalysisVarCuts.h.

Referenced by GetCutType(), IsSelected(), Print(), and SetCutType().

◆ fCutVar

TObject* PairAnalysisVarCuts::fCutVar[PairAnalysisVarManager::kNMaxValuesMC]
private

◆ fFilterMask

UInt_t AnalysisCuts::fFilterMask
privateinherited

◆ fNActiveCuts

UShort_t PairAnalysisVarCuts::fNActiveCuts
private

Definition at line 78 of file PairAnalysisVarCuts.h.

Referenced by AddBitCut(), AddCut(), GetNCuts(), IsSelected(), and Print().

◆ fSelected

Bool_t AnalysisCuts::fSelected
privateinherited

◆ fSelectedCutsMask

UInt_t PairAnalysisVarCuts::fSelectedCutsMask
private

Definition at line 82 of file PairAnalysisVarCuts.h.

Referenced by GetSelectedCutsMask(), and IsSelected().

◆ fUsedVars

TBits* PairAnalysisVarCuts::fUsedVars
private

Definition at line 75 of file PairAnalysisVarCuts.h.

Referenced by AddBitCut(), AddCut(), IsSelected(), and ~PairAnalysisVarCuts().


The documentation for this class was generated from the following files: