![]() |
AliPhysics
0644110 (0644110)
|
Implement virtual track selection for AOD analysis. More...
#include <AliEmcalTrackSelectionAOD.h>
Public Member Functions | |
AliEmcalTrackSelectionAOD () | |
AliEmcalTrackSelectionAOD (AliVCuts *cuts, UInt_t filterbits) | |
virtual | ~AliEmcalTrackSelectionAOD () |
virtual TObjArray * | GetAcceptedTracks (const TClonesArray *const tracks) |
virtual TObjArray * | GetAcceptedTracks (const AliVEvent *const event) |
virtual bool | IsTrackAccepted (AliVTrack *const trk) |
void | AddFilterBit (UInt_t filterbits) |
![]() | |
AliEmcalTrackSelection () | |
AliEmcalTrackSelection (const AliEmcalTrackSelection &ref) | |
AliEmcalTrackSelection & | operator= (const AliEmcalTrackSelection &ref) |
virtual | ~AliEmcalTrackSelection () |
void | AddTrackCuts (AliVCuts *cuts) |
Int_t | GetNumberOfCutObjects () const |
AliVCuts * | GetTrackCuts (Int_t icut) |
void | SetSelectionModeAny () |
void | SetSelectionModeAll () |
Private Attributes | |
UInt_t | fFilterBits |
Track filter bits. More... | |
Additional Inherited Members | |
![]() | |
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 28 of file AliEmcalTrackSelectionAOD.h.
AliEmcalTrackSelectionAOD::AliEmcalTrackSelectionAOD | ( | ) |
Main constructor, initialises fields with 0 (or NULL). For ROOT I/O, not intended to be used by the users.
Definition at line 33 of file AliEmcalTrackSelectionAOD.cxx.
AliEmcalTrackSelectionAOD::AliEmcalTrackSelectionAOD | ( | AliVCuts * | cuts, |
UInt_t | filterbits | ||
) |
Main Constructor, initalising 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.
cuts | Inital track cut object (of type AliESDtrackCuts, can be a nullpointer) |
filterbits | Filter bits required |
Definition at line 47 of file AliEmcalTrackSelectionAOD.cxx.
|
inlinevirtual |
Definition at line 32 of file AliEmcalTrackSelectionAOD.h.
|
inline |
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 |
Definition at line 44 of file AliEmcalTrackSelectionAOD.h.
|
virtual |
Select tracks from a list (TClonesArray) of tracks. The actual selection process is delegated to the function IsTrack selected. This function collects all the tracks which are accepted and puts them into a TObjArray. Note that this class keeps ownership over the resulting TObjArray.
tracks | TClonesArray of input tracks, under which we select the appropriate ones |
Implements AliEmcalTrackSelection.
Definition at line 63 of file AliEmcalTrackSelectionAOD.cxx.
|
virtual |
Select tracks from an input event. The actual selection process is delegated to the function IsTrack selected. This function collects all the tracks which are accepted and puts them into a TObjArray. Note that this class keeps ownership over the resulting TObjArray.
event | Input event under which we select the appropriate tracks |
Implements AliEmcalTrackSelection.
Definition at line 83 of file AliEmcalTrackSelectionAOD.cxx.
|
virtual |
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.
trk | Track to check |
Implements AliEmcalTrackSelection.
Definition at line 109 of file AliEmcalTrackSelectionAOD.cxx.
Referenced by GetAcceptedTracks().
|
private |
Track filter bits.
Definition at line 48 of file AliEmcalTrackSelectionAOD.h.
Referenced by AddFilterBit(), and IsTrackAccepted().