![]() |
AliPhysics
bba8f44 (bba8f44)
|
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 | AddStatusBitNumber (ULong_t bitnumber) |
void | SetFilterBits (ULong_t filterbits, Bool_t doReset=false) |
Set the filter bits to be checked. More... | |
void | SetStatusBits (ULong_t statusbits, Bool_t doReset=false) |
Set the track status bits to be checked. More... | |
void | SetSelectionMode (SelectionMode_t mode) |
Set the selection mode. More... | |
virtual Bool_t | IsSelected (TObject *o) |
Protected Member Functions | |
Bool_t | IsFilterBitsSelected (const AliAODTrack *const trk) const |
Select track according to presence of track filter bits. More... | |
Bool_t | IsStatusBitsSelected (const AliAODTrack *const trk) const |
Select track according to presence of track status bits. More... | |
Protected Attributes | |
ULong_t | fAODfilterBits |
Requested filter bits. More... | |
ULong_t | fAODstatusBits |
Requested track status 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 37 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 43 of file AliEmcalAODFilterBitCuts.h.
PWG::EMCAL::AliEmcalAODFilterBitCuts::AliEmcalAODFilterBitCuts | ( | ) |
Dummy constructor
Definition at line 26 of file AliEmcalAODFilterBitCuts.cxx.
PWG::EMCAL::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 |
Definition at line 34 of file AliEmcalAODFilterBitCuts.cxx.
|
inlinevirtual |
Definition at line 60 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 66 of file AliEmcalAODFilterBitCuts.h.
|
inline |
Definition at line 68 of file AliEmcalAODFilterBitCuts.h.
|
protected |
Select track according to presence of track filter bits.
[in] | trk | track to check |
Definition at line 55 of file AliEmcalAODFilterBitCuts.cxx.
Referenced by IsSelected(), and SetSelectionMode().
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 42 of file AliEmcalAODFilterBitCuts.cxx.
Referenced by PWG::EMCAL::TestImplAliEmcalAODFilterBitCuts::RunTest(), and SetSelectionMode().
|
protected |
Select track according to presence of track status bits.
[in] | trk | track to check |
Definition at line 64 of file AliEmcalAODFilterBitCuts.cxx.
Referenced by IsSelected(), and SetSelectionMode().
|
inline |
Set the filter bits to be checked.
Function using the bit representation, not the number of then bit. Bits will be added to the existing bits (not if doReset is true).
[in] | filterbits | Filter bits requested |
[in] | doReset | If true existing filter bits will be set to 0 |
Definition at line 78 of file AliEmcalAODFilterBitCuts.h.
Referenced by AliEmcalTrackSelectionAOD::AddFilterBit().
|
inline |
Set the selection mode.
Can be any (any of the filter/status) bits set, or all. Note the selection mode is applied to filter and status bits in the same way. Filter and status bit cuts must be fulfilled independently.
[in] | mode | Selection mode (any/all) used in the bit selection |
Definition at line 99 of file AliEmcalAODFilterBitCuts.h.
Referenced by PWG::EMCAL::TestImplAliEmcalAODFilterBitCutsHybrid::TestImplAliEmcalAODFilterBitCutsHybrid().
|
inline |
Set the track status bits to be checked.
Function using the bit representation, not the number of then bit. Bits will be added to the existing bits (not if doReset is true).
[in] | filterbits | Filter bits requested |
[in] | doReset | If true existing filter bits will be set to 0 |
Definition at line 88 of file AliEmcalAODFilterBitCuts.h.
Referenced by PWG::EMCAL::TestImplAliEmcalAODFilterBitCutsHybrid::TestImplAliEmcalAODFilterBitCutsHybrid(), and PWG::EMCAL::TestImplAliEmcalAODFilterBitCutsTPCconstrained::TestImplAliEmcalAODFilterBitCutsTPCconstrained().
|
protected |
Requested filter bits.
Definition at line 128 of file AliEmcalAODFilterBitCuts.h.
Referenced by AddFilterBitNumber(), IsFilterBitsSelected(), IsSelected(), and SetFilterBits().
|
protected |
Requested track status bits.
Definition at line 129 of file AliEmcalAODFilterBitCuts.h.
Referenced by AddStatusBitNumber(), IsSelected(), IsStatusBitsSelected(), and SetStatusBits().
|
protected |
Mode of the filter bit selection (any or all)
Definition at line 130 of file AliEmcalAODFilterBitCuts.h.
Referenced by IsFilterBitsSelected(), IsStatusBitsSelected(), and SetSelectionMode().