![]() |
AliPhysics
c2e202c (c2e202c)
|
Interface for virtual track selection. More...
#include <AliEmcalTrackSelection.h>
Public Member Functions | |
AliEmcalTrackSelection () | |
AliEmcalTrackSelection (const AliEmcalTrackSelection &ref) | |
AliEmcalTrackSelection & | operator= (const AliEmcalTrackSelection &ref) |
virtual | ~AliEmcalTrackSelection () |
virtual TObjArray * | GetAcceptedTracks (const TClonesArray *const tracks)=0 |
virtual TObjArray * | GetAcceptedTracks (const AliVEvent *const event)=0 |
virtual bool | IsTrackAccepted (AliVTrack *const trk)=0 |
void | AddTrackCuts (AliVCuts *cuts) |
Int_t | GetNumberOfCutObjects () const |
AliVCuts * | GetTrackCuts (Int_t icut) |
void | SetSelectionModeAny () |
void | SetSelectionModeAll () |
Protected Attributes | |
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... | |
Interface for virtual track selection.
Interface for track selection within the EMCAL framework. Enables transparent track selection for ESDs and AODs by implementing a wrapper derived from this class. The following abstract functions need to be implemented by inheriting classes:
Definition at line 35 of file AliEmcalTrackSelection.h.
AliEmcalTrackSelection::AliEmcalTrackSelection | ( | ) |
Default consturctor, initialising objects with NULL, sets acception mode to ALL
Definition at line 27 of file AliEmcalTrackSelection.cxx.
AliEmcalTrackSelection::AliEmcalTrackSelection | ( | const AliEmcalTrackSelection & | ref | ) |
Copy constructor, performing a flat copy
ref |
Definition at line 39 of file AliEmcalTrackSelection.cxx.
|
virtual |
Destructor, deletes track and track cut arrays In case the object has ownership over the track cuts itself, it also deletes those
Definition at line 78 of file AliEmcalTrackSelection.cxx.
Referenced by operator=().
void AliEmcalTrackSelection::AddTrackCuts | ( | AliVCuts * | cuts | ) |
Add new track cuts to the list of cuts. Takes ownership over the cuts
cuts | New cuts to add |
Definition at line 87 of file AliEmcalTrackSelection.cxx.
Referenced by AliEmcalTrackSelectionAOD::AliEmcalTrackSelectionAOD(), and AliEmcalTrackSelectionESD::AliEmcalTrackSelectionESD().
|
pure virtual |
Implemented in AliEmcalTrackSelectionAOD, and AliEmcalTrackSelectionESD.
|
pure virtual |
Implemented in AliEmcalTrackSelectionAOD, and AliEmcalTrackSelectionESD.
Int_t AliEmcalTrackSelection::GetNumberOfCutObjects | ( | ) | const |
Get the number of cut objects assigned.
Definition at line 99 of file AliEmcalTrackSelection.cxx.
AliVCuts * AliEmcalTrackSelection::GetTrackCuts | ( | Int_t | icut | ) |
Access to track cuts at a given position
icut | Cut at position in array |
Definition at line 109 of file AliEmcalTrackSelection.cxx.
|
pure virtual |
Implemented in AliEmcalTrackSelectionAOD, and AliEmcalTrackSelectionESD.
AliEmcalTrackSelection & AliEmcalTrackSelection::operator= | ( | const AliEmcalTrackSelection & | ref | ) |
Assingment operator, makes a flat copy
ref | Reference for the copy |
Definition at line 59 of file AliEmcalTrackSelection.cxx.
|
inline |
Definition at line 51 of file AliEmcalTrackSelection.h.
|
inline |
Definition at line 50 of file AliEmcalTrackSelection.h.
|
protected |
List of track cut objects.
Definition at line 55 of file AliEmcalTrackSelection.h.
Referenced by AddTrackCuts(), AliEmcalTrackSelection(), GetNumberOfCutObjects(), GetTrackCuts(), AliEmcalTrackSelectionAOD::IsTrackAccepted(), AliEmcalTrackSelectionESD::IsTrackAccepted(), operator=(), and ~AliEmcalTrackSelection().
|
protected |
TObjArray with accepted tracks.
Definition at line 54 of file AliEmcalTrackSelection.h.
Referenced by AliEmcalTrackSelection(), AliEmcalTrackSelectionESD::GetAcceptedTracks(), AliEmcalTrackSelectionAOD::GetAcceptedTracks(), operator=(), and ~AliEmcalTrackSelection().
|
protected |
Accept track if any of the cuts is fulfilled.
Definition at line 56 of file AliEmcalTrackSelection.h.
Referenced by AliEmcalTrackSelectionAOD::IsTrackAccepted(), AliEmcalTrackSelectionESD::IsTrackAccepted(), SetSelectionModeAll(), and SetSelectionModeAny().