AliRoot Core  3dc7879 (3dc7879)
AliVTrackSelection Class Referenceabstract

Declartion of class AliVTrackSelection. More...

#include <AliVTrackSelection.h>

Inheritance diagram for AliVTrackSelection:

Public Member Functions

 AliVTrackSelection ()
 
 AliVTrackSelection (const AliVTrackSelection &ref)
 
AliVTrackSelectionoperator= (const AliVTrackSelection &ref)
 
virtual ~AliVTrackSelection ()
 
TObjArrayGetAcceptedTracks (const TClonesArray *const tracks)
 
TObjArrayGetAcceptedTracks (const AliVEvent *const event)
 
virtual bool IsTrackAccepted (AliVTrack *const trk)=0
 
void AddTrackCuts (AliVCuts *cuts)
 
void AddTrackCuts (TObjArray *cuts)
 
Int_t GetNumberOfCutObjects () const
 
AliVCutsGetTrackCuts (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

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:

  • GetAcceptedTracks (with TClonesArray and AliVEvent as parameters)
  • IsTrackAccepted (with AliVTrackCuts)
  • GenerateTrackCuts
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

Definition at line 31 of file AliVTrackSelection.h.

Constructor & Destructor Documentation

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

Parameters
ref

Definition at line 42 of file AliVTrackSelection.cxx.

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

Member Function Documentation

void AliVTrackSelection::AddTrackCuts ( AliVCuts cuts)

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

Parameters
cutsNew 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

Parameters
cutsNew cuts to add

Definition at line 107 of file AliVTrackSelection.cxx.

const TClonesArray* AliVTrackSelection::GetAcceptedTrackBitmaps ( ) const
inline

Definition at line 48 of file AliVTrackSelection.h.

TObjArray * AliVTrackSelection::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 143 of file AliVTrackSelection.cxx.

Referenced by AliAnalysisTaskSE::GetAcceptedTracks().

TObjArray * AliVTrackSelection::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 182 of file AliVTrackSelection.cxx.

Int_t AliVTrackSelection::GetNumberOfCutObjects ( ) const

Get the number of cut objects assigned.

Returns
The number of cut objects

Definition at line 120 of file AliVTrackSelection.cxx.

const TBits& AliVTrackSelection::GetTrackBitmap ( ) const
inline

Definition at line 47 of file AliVTrackSelection.h.

AliVCuts * AliVTrackSelection::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 130 of file AliVTrackSelection.cxx.

virtual bool AliVTrackSelection::IsTrackAccepted ( AliVTrack *const  trk)
pure virtual

Implemented in AliAODTrackSelection, and AliESDTrackSelection.

Referenced by GetAcceptedTracks().

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

Assingment operator, makes a flat copy

Parameters
refReference for the copy
Returns
Result of the copy

Definition at line 65 of file AliVTrackSelection.cxx.

void AliVTrackSelection::SetSelectionModeAll ( )
inline

Definition at line 51 of file AliVTrackSelection.h.

void AliVTrackSelection::SetSelectionModeAny ( )
inline

Definition at line 50 of file AliVTrackSelection.h.

Member Data Documentation

TClonesArray* AliVTrackSelection::fListOfTrackBitmaps
protected

TClonesArray with accepted tracks' bit maps.

Definition at line 55 of file AliVTrackSelection.h.

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

TObjArray* AliVTrackSelection::fListOfTracks
protected

TObjArray with accepted tracks.

Definition at line 54 of file AliVTrackSelection.h.

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

Bool_t AliVTrackSelection::fSelectionModeAny
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().

TBits AliVTrackSelection::fTrackBitmap
protected

Bitmap of last accepted/rejected track.

Definition at line 56 of file AliVTrackSelection.h.

Referenced by GetAcceptedTracks(), GetTrackBitmap(), AliAODTrackSelection::IsTrackAccepted(), and AliESDTrackSelection::IsTrackAccepted().


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