![]() |
AliPhysics
ec7afe5 (ec7afe5)
|
Implementation of the AOD filter bit selection as virtual cut class. More...
#include <AliEmcalAODFilterBitCuts.h>
Public Types | |
enum | SelectionMode_t { kSelAny = 0, kSelAll = 1 } |
Definition of the mode how multiple filter bits are selected. More... | |
Public Member Functions | |
AliEmcalAODFilterBitCuts () | |
AliEmcalAODFilterBitCuts (const char *name, const char *title) | |
virtual | ~AliEmcalAODFilterBitCuts () |
void | AddFilterBitNumber (ULong_t bitnumber) |
void | SetFilterBits (ULong_t filterbits) |
virtual Bool_t | IsSelected (TObject *o) |
Protected Attributes | |
ULong_t | fAODfilterBits |
Requested filter bits. More... | |
SelectionMode_t | fSelectionMode |
Mode of the filter bit selection (any or all) More... | |
Implementation of the AOD filter bit selection as virtual cut class.
AliEmcalAODFilterBitCuts implements the track filter bit selection of AOD tracks within the framework of virtual cuts. This means that in filters it can be used as any virtual cut class. Like this no special treatment is for AOD filter bit selection.
The cut is applied in the function
which needs to be called in any filter with the AOD track as argument.
The filter allows two selection modes:
Definition at line 31 of file AliEmcalAODFilterBitCuts.h.
Definition of the mode how multiple filter bits are selected.
Enumerator | |
---|---|
kSelAny |
Any (either of the bits set) |
kSelAll |
All (all bits must be found in the AOD track) |
Definition at line 37 of file AliEmcalAODFilterBitCuts.h.
AliEmcalAODFilterBitCuts::AliEmcalAODFilterBitCuts | ( | ) |
Dummy constructor
Definition at line 22 of file AliEmcalAODFilterBitCuts.cxx.
AliEmcalAODFilterBitCuts::AliEmcalAODFilterBitCuts | ( | const char * | name, |
const char * | title | ||
) |
Constructor, defining also name and title
[in] | name | Name of the cut object |
[in] | title | Title of the cut object |
|
inlinevirtual |
Definition at line 54 of file AliEmcalAODFilterBitCuts.h.
|
inline |
Request filter bit at a given bit number (not bit representation).
[in] | bitnumber | Number of the bit to be set (integer number) |
Definition at line 60 of file AliEmcalAODFilterBitCuts.h.
Select AOD tracks according which contain any of the bits. The way of the selection is determined by the selection mode (default: any):
[in] | o | Object to be checked: Must be an AliAODTrack |
Definition at line 29 of file AliEmcalAODFilterBitCuts.cxx.
|
inline |
Set the filter bits to be checked. Function using the bit representation, not the number of then bit.
[in] | filterbits | Filter bits requested |
Definition at line 67 of file AliEmcalAODFilterBitCuts.h.
|
protected |
Requested filter bits.
Definition at line 81 of file AliEmcalAODFilterBitCuts.h.
Referenced by AddFilterBitNumber(), IsSelected(), and SetFilterBits().
|
protected |
Mode of the filter bit selection (any or all)
Definition at line 82 of file AliEmcalAODFilterBitCuts.h.
Referenced by IsSelected().