![]() |
AliRoot Core
3dc7879 (3dc7879)
|
Declartion of class AliVTrackSelection. More...
#include <AliVTrackSelection.h>
Public Member Functions | |
AliVTrackSelection () | |
AliVTrackSelection (const AliVTrackSelection &ref) | |
AliVTrackSelection & | operator= (const AliVTrackSelection &ref) |
virtual | ~AliVTrackSelection () |
TObjArray * | GetAcceptedTracks (const TClonesArray *const tracks) |
TObjArray * | GetAcceptedTracks (const AliVEvent *const event) |
virtual bool | IsTrackAccepted (AliVTrack *const trk)=0 |
void | AddTrackCuts (AliVCuts *cuts) |
void | AddTrackCuts (TObjArray *cuts) |
Int_t | GetNumberOfCutObjects () const |
AliVCuts * | GetTrackCuts (Int_t icut) |
const TBits & | GetTrackBitmap () const |
const TClonesArray * | GetAcceptedTrackBitmaps () const |
void | SetSelectionModeAny () |
void | SetSelectionModeAll () |
Protected Attributes | |
TObjArray * | fListOfTracks |
TObjArray with accepted tracks. More... | |
TClonesArray * | fListOfTrackBitmaps |
TClonesArray with accepted tracks' bit maps. More... | |
TBits | fTrackBitmap |
Bitmap of last accepted/rejected track. More... | |
TObjArray * | fListOfCuts |
List of track cut objects. More... | |
Bool_t | fSelectionModeAny |
Accept track if any of the cuts is fulfilled. More... | |
Declartion of class AliVTrackSelection.
In this header file the class AliVTrackSelection, which handles the track selection in a transparent way for ESD and AOD Tracks, is declared. 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 31 of file AliVTrackSelection.h.
AliVTrackSelection::AliVTrackSelection | ( | ) |
Default consturctor, initialising objects with NULL, sets acception mode to ALL
Definition at line 28 of file AliVTrackSelection.cxx.
AliVTrackSelection::AliVTrackSelection | ( | const AliVTrackSelection & | ref | ) |
Copy constructor, performing a flat copy
ref |
Definition at line 42 of file AliVTrackSelection.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 85 of file AliVTrackSelection.cxx.
Referenced by operator=().
void AliVTrackSelection::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 95 of file AliVTrackSelection.cxx.
Referenced by AddTrackCuts(), AliAODTrackSelection::AliAODTrackSelection(), and AliESDTrackSelection::AliESDTrackSelection().
void AliVTrackSelection::AddTrackCuts | ( | TObjArray * | cuts | ) |
Add new track cuts to the list of cuts. Takes ownership over the cuts
cuts | New cuts to add |
Definition at line 107 of file AliVTrackSelection.cxx.
|
inline |
Definition at line 48 of file AliVTrackSelection.h.
TObjArray * AliVTrackSelection::GetAcceptedTracks | ( | const TClonesArray *const | tracks | ) |
Select tracks from a TClonesArray of input tracks
tracks | TClonesArray of tracks (must not be null) |
Definition at line 143 of file AliVTrackSelection.cxx.
Referenced by AliAnalysisTaskSE::GetAcceptedTracks().
Select tracks from a virtual event. Delegates selection process to function IsTrackAccepted
event | AliESDEvent, via interface of virtual event (must not be null) |
Definition at line 182 of file AliVTrackSelection.cxx.
Int_t AliVTrackSelection::GetNumberOfCutObjects | ( | ) | const |
Get the number of cut objects assigned.
Definition at line 120 of file AliVTrackSelection.cxx.
|
inline |
Definition at line 47 of file AliVTrackSelection.h.
AliVCuts * AliVTrackSelection::GetTrackCuts | ( | Int_t | icut | ) |
Access to track cuts at a given position
icut | Cut at position in array |
Definition at line 130 of file AliVTrackSelection.cxx.
|
pure virtual |
Implemented in AliAODTrackSelection, and AliESDTrackSelection.
Referenced by GetAcceptedTracks().
AliVTrackSelection & AliVTrackSelection::operator= | ( | const AliVTrackSelection & | ref | ) |
Assingment operator, makes a flat copy
ref | Reference for the copy |
Definition at line 65 of file AliVTrackSelection.cxx.
|
inline |
Definition at line 51 of file AliVTrackSelection.h.
|
inline |
Definition at line 50 of file AliVTrackSelection.h.
|
protected |
List of track cut objects.
Definition at line 57 of file AliVTrackSelection.h.
Referenced by AddTrackCuts(), AliVTrackSelection(), GetNumberOfCutObjects(), GetTrackCuts(), AliESDTrackSelection::IsTrackAccepted(), AliAODTrackSelection::IsTrackAccepted(), operator=(), and ~AliVTrackSelection().
|
protected |
TClonesArray with accepted tracks' bit maps.
Definition at line 55 of file AliVTrackSelection.h.
Referenced by AliVTrackSelection(), GetAcceptedTrackBitmaps(), GetAcceptedTracks(), operator=(), and ~AliVTrackSelection().
|
protected |
TObjArray with accepted tracks.
Definition at line 54 of file AliVTrackSelection.h.
Referenced by AliVTrackSelection(), GetAcceptedTracks(), operator=(), and ~AliVTrackSelection().
|
protected |
Accept track if any of the cuts is fulfilled.
Definition at line 58 of file AliVTrackSelection.h.
Referenced by AliAODTrackSelection::IsTrackAccepted(), AliESDTrackSelection::IsTrackAccepted(), SetSelectionModeAll(), and SetSelectionModeAny().
|
protected |
Bitmap of last accepted/rejected track.
Definition at line 56 of file AliVTrackSelection.h.
Referenced by GetAcceptedTracks(), GetTrackBitmap(), AliAODTrackSelection::IsTrackAccepted(), and AliESDTrackSelection::IsTrackAccepted().