AliPhysics  97344c9 (97344c9)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalTrackSelection Class Referenceabstract

Interface for virtual track selection. More...

#include <AliEmcalTrackSelection.h>

Inheritance diagram for AliEmcalTrackSelection:

Public Types

enum  ETrackFilterType_t { kNoTrackFilter = 0, kCustomTrackFilter, kHybridTracks, kTPCOnlyTracks }
 

Public Member Functions

 AliEmcalTrackSelection ()
 
 AliEmcalTrackSelection (const AliEmcalTrackSelection &ref)
 
AliEmcalTrackSelectionoperator= (const AliEmcalTrackSelection &ref)
 
virtual ~AliEmcalTrackSelection ()
 
TObjArrayGetAcceptedTracks (const TClonesArray *const tracks)
 
TObjArrayGetAcceptedTracks (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

TObjArrayfListOfTracks
 TObjArray with accepted tracks. More...
 
TClonesArray * fListOfTrackBitmaps
 TClonesArray with accepted tracks' bit maps. More...
 
TBits fTrackBitmap
 Bitmap of last accepted/rejected track. More...
 
TObjArrayfListOfCuts
 List of track cut objects. More...
 
Bool_t fSelectionModeAny
 Accept track if any of the cuts is fulfilled. More...
 

Detailed Description

Interface for virtual track selection.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Lawrence Berkeley National Laboratory
Salvatore Aiola salva.nosp@m.tore.nosp@m..aiol.nosp@m.a@ce.nosp@m.rn.ch, Yale University
Date
Jan 30, 2016

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:

  • GetAcceptedTracks (with TClonesArray and AliVEvent as parameters)
  • IsTrackAccepted (with AliVTrackCuts)
  • GenerateTrackCuts

The usage of the virtual track selection is described here: VirtualTrackSelection

Definition at line 32 of file AliEmcalTrackSelection.h.

Member Enumeration Documentation

Enumerator
kNoTrackFilter 
kCustomTrackFilter 
kHybridTracks 
kTPCOnlyTracks 

Definition at line 34 of file AliEmcalTrackSelection.h.

Constructor & Destructor Documentation

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

Parameters
ref

Definition at line 44 of file AliEmcalTrackSelection.cxx.

AliEmcalTrackSelection::~AliEmcalTrackSelection ( )
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=().

Member Function Documentation

void AliEmcalTrackSelection::AddTrackCuts ( TObjArray cuts)

Add new track cuts to the list of cuts. Takes ownership over the cuts

Parameters
cutsNew cuts to add

Definition at line 109 of file AliEmcalTrackSelection.cxx.

virtual void AliEmcalTrackSelection::GenerateTrackCuts ( ETrackFilterType_t  type,
const char *  period = "" 
)
pure virtual
const TClonesArray* AliEmcalTrackSelection::GetAcceptedTrackBitmaps ( ) const
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

Parameters
tracksTClonesArray of tracks (must not be null)
Returns
: TObjArray of selected tracks

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

Parameters
eventAliESDEvent, via interface of virtual event (must not be null)
Returns
TObjArray of selected tracks

Definition at line 184 of file AliEmcalTrackSelection.cxx.

Int_t AliEmcalTrackSelection::GetNumberOfCutObjects ( ) const

Get the number of cut objects assigned.

Returns
The number of cut objects

Definition at line 122 of file AliEmcalTrackSelection.cxx.

const TBits& AliEmcalTrackSelection::GetTrackBitmap ( ) const
inline

Definition at line 56 of file AliEmcalTrackSelection.h.

AliVCuts * AliEmcalTrackSelection::GetTrackCuts ( Int_t  icut)

Access to track cuts at a given position

Parameters
icutCut at position in array
Returns
The cuts (NULL for invalid positions)

Definition at line 132 of file AliEmcalTrackSelection.cxx.

Referenced by EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::UserCreateOutputObjects().

AliEmcalTrackSelection & AliEmcalTrackSelection::operator= ( const AliEmcalTrackSelection ref)

Assingment operator, makes a flat copy

Parameters
refReference for the copy
Returns
Result of the copy

Definition at line 67 of file AliEmcalTrackSelection.cxx.

void AliEmcalTrackSelection::SetSelectionModeAll ( )
inline

Definition at line 60 of file AliEmcalTrackSelection.h.

Referenced by AliTrackContainer::SetArray().

void AliEmcalTrackSelection::SetSelectionModeAny ( )
inline

Definition at line 59 of file AliEmcalTrackSelection.h.

Referenced by AliTrackContainer::SetArray().

Member Data Documentation

TClonesArray* AliEmcalTrackSelection::fListOfTrackBitmaps
protected

TClonesArray with accepted tracks' bit maps.

Definition at line 64 of file AliEmcalTrackSelection.h.

Referenced by AliEmcalTrackSelection(), GetAcceptedTrackBitmaps(), GetAcceptedTracks(), operator=(), and ~AliEmcalTrackSelection().

TObjArray* AliEmcalTrackSelection::fListOfTracks
protected

TObjArray with accepted tracks.

Definition at line 63 of file AliEmcalTrackSelection.h.

Referenced by AliEmcalTrackSelection(), GetAcceptedTracks(), operator=(), and ~AliEmcalTrackSelection().

TBits AliEmcalTrackSelection::fTrackBitmap
protected

The documentation for this class was generated from the following files: