AliPhysics  v5-06-11-01 (156c7f3)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD Class Reference

Implement virtual track selection for AOD analysis. More...

#include <AliEMCalPtTaskTrackSelectionAOD.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD:

Public Member Functions

 AliEMCalPtTaskTrackSelectionAOD ()
 
 AliEMCalPtTaskTrackSelectionAOD (AliESDtrackCuts *cuts, UInt_t filterbits)
 
 AliEMCalPtTaskTrackSelectionAOD (const AliEMCalPtTaskTrackSelectionAOD &ref)
 
AliEMCalPtTaskTrackSelectionAODoperator= (const AliEMCalPtTaskTrackSelectionAOD &ref)
 
virtual ~AliEMCalPtTaskTrackSelectionAOD ()
 
virtual TObjArray * GetAcceptedTracks (const TClonesArray *const tracks)
 
virtual TObjArray * GetAcceptedTracks (const AliVEvent *const event)
 
virtual bool IsTrackAccepted (AliVTrack *const trk)
 
virtual TObject * GetTrackCuts ()
 
void AddFilterBit (UInt_t filterbits)
 
void SetTrackCuts (AliESDtrackCuts *trackCuts)
 
- Public Member Functions inherited from EMCalTriggerPtAnalysis::AliEMCalPtTaskVTrackSelection
 AliEMCalPtTaskVTrackSelection ()
 
 AliEMCalPtTaskVTrackSelection (const AliEMCalPtTaskVTrackSelection &ref)
 
AliEMCalPtTaskVTrackSelectionoperator= (const AliEMCalPtTaskVTrackSelection &ref)
 
virtual ~AliEMCalPtTaskVTrackSelection ()
 

Private Attributes

AliESDtrackCuts * fTrackCuts
 Track cuts. More...
 
UInt_t fFilterBits
 Track filter bits. More...
 

Additional Inherited Members

- Protected Member Functions inherited from EMCalTriggerPtAnalysis::AliEMCalPtTaskVTrackSelection
 ClassDef (AliEMCalPtTaskVTrackSelection, 1)
 
- Protected Attributes inherited from EMCalTriggerPtAnalysis::AliEMCalPtTaskVTrackSelection
TObjArray * fListOfTracks
 

Detailed Description

Implement virtual track selection for AOD analysis.

Implementation of track selection in case the analysis runs on AODs For the moment it uses the AliESDtrackCuts and converts AOD tracks to ESD tracks, which might change in the future when an AOD track selection framework becomes available.

Definition at line 36 of file AliEMCalPtTaskTrackSelectionAOD.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD::AliEMCalPtTaskTrackSelectionAOD ( )

Main constructor, initialises fields with 0 (or NULL). For ROOT I/O, not intended to be used by the users.

Definition at line 34 of file AliEMCalPtTaskTrackSelectionAOD.cxx.

EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD::AliEMCalPtTaskTrackSelectionAOD ( AliESDtrackCuts *  cuts,
UInt_t  filterbits 
)

Main Constructor, initalising also track cuts and filter bits. In case the initial cuts is a nullpointer, only filter bits are used for the track selection. This constructor is intended to be used by the users.

Parameters
cutsInital track cut object (of type AliESDtrackCuts, can be a nullpointer)
filterbitsFilter bits required

Definition at line 49 of file AliEMCalPtTaskTrackSelectionAOD.cxx.

EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD::AliEMCalPtTaskTrackSelectionAOD ( const AliEMCalPtTaskTrackSelectionAOD ref)

Copy constructor, performs a deep copy of the underlying track cuts (if reference object has those).

Parameters
refAOD track selection as basis for the copy

Definition at line 62 of file AliEMCalPtTaskTrackSelectionAOD.cxx.

EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD::~AliEMCalPtTaskTrackSelectionAOD ( )
virtual

Destructor, removes the track cuts and the TObjArray of output tracks (if created)

Definition at line 92 of file AliEMCalPtTaskTrackSelectionAOD.cxx.

Member Function Documentation

void EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD::AddFilterBit ( UInt_t  filterbits)
inline

Add a new filter bit to the track selection. Multiple filter bits can be set at the same time (via the bitwise or operator |).

Parameters
filterbits

Definition at line 61 of file AliEMCalPtTaskTrackSelectionAOD.h.

TObjArray * EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD::GetAcceptedTracks ( const TClonesArray *const  tracks)
virtual

Select tracks from a list (TClonesArray) of tracks. The actual selection process is delegated to the function IsTrack selected. This function collects all the tracks which are accepted and puts them into a TObjArray. Note that this class keeps ownership over the resulting TObjArray.

Parameters
tracksTClonesArray of input tracks, under which we select the appropriate ones
Returns
TObjArray of selected tracks

Implements EMCalTriggerPtAnalysis::AliEMCalPtTaskVTrackSelection.

Definition at line 106 of file AliEMCalPtTaskTrackSelectionAOD.cxx.

TObjArray * EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD::GetAcceptedTracks ( const AliVEvent *const  event)
virtual

Select tracks from an input event. The actual selection process is delegated to the function IsTrack selected. This function collects all the tracks which are accepted and puts them into a TObjArray. Note that this class keeps ownership over the resulting TObjArray.

Parameters
eventInput event under which we select the appropriate tracks
Returns
TObjArray of selected tracks

Implements EMCalTriggerPtAnalysis::AliEMCalPtTaskVTrackSelection.

Definition at line 126 of file AliEMCalPtTaskTrackSelectionAOD.cxx.

virtual TObject* EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD::GetTrackCuts ( )
inlinevirtual

Get the track cuts.

Returns
The track cuts (NULL if not defined).

Implements EMCalTriggerPtAnalysis::AliEMCalPtTaskVTrackSelection.

Definition at line 53 of file AliEMCalPtTaskTrackSelectionAOD.h.

bool EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD::IsTrackAccepted ( AliVTrack *const  trk)
virtual

Function checks whether track is accepted under the given track selection cuts. The function can handle AliAODTrack and AliPicoTrack, while for AliPico track an AliAODTrack is expected to be the underlying structure. If it is not possible to access an AOD track from the input track, the object will not be selected. Otherwise first the status bits are checked (if requested), and if further track cuts (of type AliESDtrackCuts) are provided, the track is converted to an ESD track for further checks.

Parameters
trkTrack to check
Returns
true if selected, false otherwise

Implements EMCalTriggerPtAnalysis::AliEMCalPtTaskVTrackSelection.

Definition at line 152 of file AliEMCalPtTaskTrackSelectionAOD.cxx.

Referenced by GetAcceptedTracks().

AliEMCalPtTaskTrackSelectionAOD & EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD::operator= ( const AliEMCalPtTaskTrackSelectionAOD ref)

Asignment operator, creates a deep copy of the track cuts(if set)

Parameters
refAOD track selection as basis for the copy
Returns
: reference to this cut object

Definition at line 76 of file AliEMCalPtTaskTrackSelectionAOD.cxx.

void EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD::SetTrackCuts ( AliESDtrackCuts *  trackCuts)
inline

Set the track cuts object (of type AliESDtrackCuts)

Parameters
trackCuts

Definition at line 68 of file AliEMCalPtTaskTrackSelectionAOD.h.

Member Data Documentation

UInt_t EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD::fFilterBits
private

Track filter bits.

Definition at line 72 of file AliEMCalPtTaskTrackSelectionAOD.h.

Referenced by AddFilterBit(), IsTrackAccepted(), and operator=().

AliESDtrackCuts* EMCalTriggerPtAnalysis::AliEMCalPtTaskTrackSelectionAOD::fTrackCuts
private

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