![]() |
AliPhysics
fb6b143 (fb6b143)
|
Implement virtual track selection for AOD analysis. More...
#include <AliEmcalTrackSelectionAOD.h>
Public Member Functions | |
AliEmcalTrackSelectionAOD () | |
Main constructor. More... | |
AliEmcalTrackSelectionAOD (ETrackFilterType_t type, const char *period="") | |
Constructor for periods. More... | |
AliEmcalTrackSelectionAOD (AliVCuts *cuts, UInt_t filterbits) | |
Main Constructor. More... | |
virtual | ~AliEmcalTrackSelectionAOD () |
Destructor. More... | |
virtual void | GenerateTrackCuts (ETrackFilterType_t type, const char *="") |
Automatically generates track cuts depending on the requested type of filtering. More... | |
virtual PWG::EMCAL::AliEmcalTrackSelResultPtr | IsTrackAccepted (AliVTrack *const trk) |
Performing track selection. More... | |
void | AddFilterBit (UInt_t filterbits) |
Add a new filter bit to the track selection. More... | |
![]() | |
AliEmcalTrackSelection () | |
Default consturctor. More... | |
AliEmcalTrackSelection (const AliEmcalTrackSelection &ref) | |
Copy constructor. More... | |
AliEmcalTrackSelection & | operator= (const AliEmcalTrackSelection &ref) |
Assingment operator. More... | |
virtual | ~AliEmcalTrackSelection () |
Destructor. More... | |
TObjArray * | GetAcceptedTracks (const TClonesArray *const tracks) |
Select tracks from a TClonesArray of input tracks. More... | |
TObjArray * | GetAcceptedTracks (const AliVEvent *const event) |
Select tracks from a virtual event. More... | |
void | AddTrackCuts (AliVCuts *cuts) |
Add new track cuts to the list of cuts. More... | |
void | AddTrackCuts (PWG::EMCAL::AliEmcalCutBase *cuts) |
Add track cuts of type AliEmcalCutBase. More... | |
void | AddTrackCuts (TObjArray *cuts) |
Add new set of track cuts to the list of cuts. More... | |
Int_t | GetNumberOfCutObjects () const |
Get the number of cut objects assigned. More... | |
PWG::EMCAL::AliEmcalCutBase * | GetTrackCuts (Int_t icut) |
Access to track cuts at a given position. More... | |
void | SetSelectionModeAny () |
Set selection mode to any. More... | |
void | SetSelectionModeAll () |
Set selection mode to all. More... | |
virtual void | SaveQAObjects (TList *outputList) |
Static Public Member Functions | |
static Bool_t | GetHybridFilterBits (Char_t bits[], TString period) |
Returns the hybrid filter bits according to a hard-coded look-up table. More... | |
Additional Inherited Members | |
![]() | |
enum | ETrackFilterType_t { kNoTrackFilter = 0, kCustomTrackFilter, kHybridTracks, kTPCOnlyTracks, kITSPureTracks, kHybridTracks2010wNoRefit, kHybridTracks2010woNoRefit, kHybridTracks2011wNoRefit, kHybridTracks2011woNoRefit } |
Pre-defined track filters. More... | |
![]() | |
TObjArray * | fListOfTracks |
TObjArray with accepted tracks. More... | |
TObjArray * | fListOfCuts |
List of track cut objects. More... | |
Bool_t | fSelectionModeAny |
Accept track if any of the cuts is fulfilled. More... | |
Implement virtual track selection for AOD analysis.
Implementation of track selection in case the analysis runs on AODs For the moment it uses the AliESDtrackCuts and converts AOD tracks to ESD tracks, which might change in the future when an AOD track selection framework becomes available.
Definition at line 50 of file AliEmcalTrackSelectionAOD.h.
AliEmcalTrackSelectionAOD::AliEmcalTrackSelectionAOD | ( | ) |
Main constructor.
Initializes fields with 0 (or NULL). For ROOT I/O, not intended to be used by the users.
Definition at line 54 of file AliEmcalTrackSelectionAOD.cxx.
AliEmcalTrackSelectionAOD::AliEmcalTrackSelectionAOD | ( | ETrackFilterType_t | type, |
const char * | period = "" |
||
) |
Constructor for periods.
Initializing track cuts depending on the requested type of filtering
[in] | type | Track filtering type |
[in] | period | Period string (e.g. LHC11h) |
Definition at line 70 of file AliEmcalTrackSelectionAOD.cxx.
AliEmcalTrackSelectionAOD::AliEmcalTrackSelectionAOD | ( | AliVCuts * | cuts, |
UInt_t | filterbits | ||
) |
Main Constructor.
Initalizing also track cuts and filter bits. In case the initial cuts is a nullpointer, only filter bits are used for the track selection. This constructor is intended to be used by the users.
[in] | cuts | Inital track cut object (of type AliESDtrackCuts, can be a nullpointer) |
[in] | filterbits | Filter bits required |
Definition at line 59 of file AliEmcalTrackSelectionAOD.cxx.
|
inlinevirtual |
Destructor.
Definition at line 85 of file AliEmcalTrackSelectionAOD.h.
void AliEmcalTrackSelectionAOD::AddFilterBit | ( | UInt_t | filterbits | ) |
Add a new filter bit to the track selection.
Multiple filter bits can be set at the same time (via the bitwise or operator |).
filterbits | Filter bits used to select tracks |
Definition at line 194 of file AliEmcalTrackSelectionAOD.cxx.
Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClusterMatched::InitializeTrackSelections(), EMCalTriggerPtAnalysis::AliEmcalAnalysisFactory::TrackCutsFactory(), and ~AliEmcalTrackSelectionAOD().
|
virtual |
Automatically generates track cuts depending on the requested type of filtering.
[in] | type | Track filtering type |
Implements AliEmcalTrackSelection.
Definition at line 76 of file AliEmcalTrackSelectionAOD.cxx.
Referenced by AliEmcalTrackSelectionAOD(), EMCalTriggerPtAnalysis::AliEmcalAnalysisFactory::TrackCutsFactory(), and ~AliEmcalTrackSelectionAOD().
Returns the hybrid filter bits according to a hard-coded look-up table.
[in] | bits | c-array of 2 elements where the bits are returned |
[in] | period | data taking period |
Definition at line 213 of file AliEmcalTrackSelectionAOD.cxx.
Referenced by GenerateTrackCuts(), and ~AliEmcalTrackSelectionAOD().
|
virtual |
Performing track selection.
Function checks whether track is accepted under the given track selection cuts. The function can handle AliAODTrack and AliPicoTrack, while for AliPico track an AliAODTrack is expected to be the underlying structure. If it is not possible to access an AOD track from the input track, the object will not be selected. Otherwise first the status bits are checked (if requested), and if further track cuts (of type AliESDtrackCuts) are provided, the track is converted to an ESD track for further checks.
[in] | trk | Track to check |
Implements AliEmcalTrackSelection.
Definition at line 149 of file AliEmcalTrackSelectionAOD.cxx.
Referenced by PWG::EMCAL::TestAliEmcalTrackSelectionAOD::TestHybridDef2010woRefit(), PWG::EMCAL::TestAliEmcalTrackSelectionAOD::TestHybridDef2010wRefit(), PWG::EMCAL::TestAliEmcalTrackSelectionAOD::TestHybridDef2011(), PWG::EMCAL::TestAliEmcalTrackSelectionAOD::TestTPConly(), and ~AliEmcalTrackSelectionAOD().