![]() |
AliPhysics
c0d7b22 (c0d7b22)
|
Interface for virtual track selection. More...
#include <AliEmcalTrackSelection.h>
Public Types | |
enum | ETrackFilterType_t { kNoTrackFilter = 0, kCustomTrackFilter, kHybridTracks, kTPCOnlyTracks } |
Public Member Functions | |
AliEmcalTrackSelection () | |
AliEmcalTrackSelection (const AliEmcalTrackSelection &ref) | |
AliEmcalTrackSelection & | operator= (const AliEmcalTrackSelection &ref) |
virtual | ~AliEmcalTrackSelection () |
TObjArray * | GetAcceptedTracks (const TClonesArray *const tracks) |
TObjArray * | GetAcceptedTracks (const AliVEvent *const event) |
virtual bool | IsTrackAccepted (AliVTrack *const trk)=0 |
virtual void | GenerateTrackCuts (ETrackFilterType_t type, const char *period="")=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... | |
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:
The usage of the virtual track selection is described here: VirtualTrackSelection
Definition at line 32 of file AliEmcalTrackSelection.h.
Enumerator | |
---|---|
kNoTrackFilter | |
kCustomTrackFilter | |
kHybridTracks | |
kTPCOnlyTracks |
Definition at line 34 of file AliEmcalTrackSelection.h.
AliEmcalTrackSelection::AliEmcalTrackSelection | ( | ) |
Default consturctor, initialising objects with NULL, sets acception mode to ALL
Definition at line 30 of file AliEmcalTrackSelection.cxx.
AliEmcalTrackSelection::AliEmcalTrackSelection | ( | const AliEmcalTrackSelection & | ref | ) |
Copy constructor, performing a flat copy
ref |
Definition at line 44 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 87 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 97 of file AliEmcalTrackSelection.cxx.
Referenced by AliEmcalESDTrackCutsGenerator::AddHybridTrackCuts(), AliEmcalESDTrackCutsGenerator::AddTPCOnlyTrackCuts(), AddTrackCuts(), AliEmcalTrackSelectionAOD::AliEmcalTrackSelectionAOD(), AliEmcalTrackSelectionESD::AliEmcalTrackSelectionESD(), ClassImp(), and AliTrackContainer::SetArray().
void AliEmcalTrackSelection::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 109 of file AliEmcalTrackSelection.cxx.
|
pure virtual |
Implemented in AliEmcalTrackSelectionAOD, and AliEmcalTrackSelectionESD.
|
inline |
Definition at line 57 of file AliEmcalTrackSelection.h.
Referenced by AliTrackContainer::NextEvent().
TObjArray * AliEmcalTrackSelection::GetAcceptedTracks | ( | const TClonesArray *const | tracks | ) |
Select tracks from a TClonesArray of input tracks
tracks | TClonesArray of tracks (must not be null) |
Definition at line 145 of file AliEmcalTrackSelection.cxx.
Referenced by AliTrackContainer::NextEvent(), and EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::Run().
TObjArray * AliEmcalTrackSelection::GetAcceptedTracks | ( | const AliVEvent *const | event | ) |
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 184 of file AliEmcalTrackSelection.cxx.
Int_t AliEmcalTrackSelection::GetNumberOfCutObjects | ( | ) | const |
Get the number of cut objects assigned.
Definition at line 122 of file AliEmcalTrackSelection.cxx.
|
inline |
Definition at line 56 of file AliEmcalTrackSelection.h.
AliVCuts * AliEmcalTrackSelection::GetTrackCuts | ( | Int_t | icut | ) |
Access to track cuts at a given position
icut | Cut at position in array |
Definition at line 132 of file AliEmcalTrackSelection.cxx.
Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::UserCreateOutputObjects().
|
pure virtual |
Implemented in AliEmcalTrackSelectionAOD, and AliEmcalTrackSelectionESD.
Referenced by AliAnalysisTaskParticleInJet::AcceptTrack(), GetAcceptedTracks(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::GetParticleMultiplicity(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecTrackAnalysisComponent::Process(), EMCalTriggerPtAnalysis::AliEMCalTriggerRecJetAnalysisComponent::Process(), EMCalTriggerPtAnalysis::AliAnalysisTaskTrackDensityData::Run(), EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRef::UserExec(), and EMCalTriggerPtAnalysis::AliAnalysisTaskChargedParticlesRefMC::UserExec().
AliEmcalTrackSelection & AliEmcalTrackSelection::operator= | ( | const AliEmcalTrackSelection & | ref | ) |
Assingment operator, makes a flat copy
ref | Reference for the copy |
Definition at line 67 of file AliEmcalTrackSelection.cxx.
|
inline |
Definition at line 60 of file AliEmcalTrackSelection.h.
Referenced by AliTrackContainer::SetArray().
|
inline |
Definition at line 59 of file AliEmcalTrackSelection.h.
Referenced by AliTrackContainer::SetArray().
|
protected |
List of track cut objects.
Definition at line 66 of file AliEmcalTrackSelection.h.
Referenced by AddTrackCuts(), AliEmcalTrackSelection(), AliEmcalTrackSelectionESD::GenerateTrackCuts(), AliEmcalTrackSelectionAOD::GenerateTrackCuts(), GetNumberOfCutObjects(), GetTrackCuts(), AliEmcalTrackSelectionESD::IsTrackAccepted(), AliEmcalTrackSelectionAOD::IsTrackAccepted(), operator=(), and ~AliEmcalTrackSelection().
|
protected |
TClonesArray with accepted tracks' bit maps.
Definition at line 64 of file AliEmcalTrackSelection.h.
Referenced by AliEmcalTrackSelection(), GetAcceptedTrackBitmaps(), GetAcceptedTracks(), operator=(), and ~AliEmcalTrackSelection().
|
protected |
TObjArray with accepted tracks.
Definition at line 63 of file AliEmcalTrackSelection.h.
Referenced by AliEmcalTrackSelection(), GetAcceptedTracks(), operator=(), and ~AliEmcalTrackSelection().
|
protected |
Accept track if any of the cuts is fulfilled.
Definition at line 67 of file AliEmcalTrackSelection.h.
Referenced by AliEmcalTrackSelectionESD::GenerateTrackCuts(), AliEmcalTrackSelectionAOD::GenerateTrackCuts(), AliEmcalTrackSelectionESD::IsTrackAccepted(), AliEmcalTrackSelectionAOD::IsTrackAccepted(), SetSelectionModeAll(), and SetSelectionModeAny().
|
protected |
Bitmap of last accepted/rejected track.
Definition at line 65 of file AliEmcalTrackSelection.h.
Referenced by GetAcceptedTracks(), GetTrackBitmap(), AliEmcalTrackSelectionESD::IsTrackAccepted(), and AliEmcalTrackSelectionAOD::IsTrackAccepted().