AliPhysics  c7b8e89 (c7b8e89)
AliTrackContainer Class Reference

Container with name, TClonesArray and cuts for particles. More...

#include <AliTrackContainer.h>

Inheritance diagram for AliTrackContainer:

Classes

class  TrackOwnerHandler
 Unique_ptr implementation for ROOT5 compatibility. More...
 

Public Types

enum  ETrackType_t {
  kRejected = -1, kUndefined = 0, kHybridGlobal = 0, kHybridConstrainedTrue = 1,
  kHybridConstrainedFake = 2, kHybridConstrainedNoITSrefit = 3
}
 Status of a track after track selection. More...
 
typedef AliEmcalTrackSelection::ETrackFilterType_t ETrackFilterType_t
 
- Public Types inherited from AliParticleContainer
enum  EChargeCut_t {
  kNoChargeCut, kCharged, kNeutral, kPositiveCharge,
  kNegativeCharge
}
 

Public Member Functions

 AliTrackContainer ()
 
 AliTrackContainer (const char *name, const char *period="")
 
virtual ~AliTrackContainer ()
 
virtual Bool_t ApplyTrackCuts (const AliVTrack *vp, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptObject (Int_t i, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptObject (const TObject *obj, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptParticle (Int_t i, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptParticle (const AliVParticle *vp, UInt_t &rejectionReason) const
 
virtual AliVParticle * GetParticle (Int_t i=-1) const
 
virtual AliVParticle * GetAcceptParticle (Int_t i=-1) const
 
virtual AliVParticle * GetNextAcceptParticle ()
 
virtual AliVParticle * GetNextParticle ()
 
virtual Bool_t AcceptTrack (const AliVTrack *vp, UInt_t &rejectionReason) const
 
virtual Bool_t AcceptTrack (Int_t i, UInt_t &rejectionReason) const
 
virtual AliVTrack * GetLeadingTrack (const char *opt="")
 
virtual AliVTrack * GetTrack (Int_t i=-1) const
 
virtual AliVTrack * GetAcceptTrack (Int_t i=-1) const
 
virtual AliVTrack * GetNextAcceptTrack ()
 
virtual AliVTrack * GetNextTrack ()
 
Char_t GetTrackType (const AliVTrack *track) const
 
virtual Bool_t GetMomentumFromTrack (TLorentzVector &mom, const AliVTrack *track, Double_t mass) const
 
virtual Bool_t GetMomentumFromTrack (TLorentzVector &mom, const AliVTrack *track) const
 
virtual Bool_t GetMomentum (TLorentzVector &mom, Int_t i) const
 
virtual Bool_t GetAcceptMomentum (TLorentzVector &mom, Int_t i) const
 
virtual Bool_t GetNextMomentum (TLorentzVector &mom)
 
virtual Bool_t GetNextAcceptMomentum (TLorentzVector &mom)
 
Int_t GetNTracks () const
 
Int_t GetNAcceptedTracks ()
 
ETrackFilterType_t GetTrackFilterType () const
 
Char_t GetTrackType (Int_t i) const
 
void SetArray (const AliVEvent *event)
 
void SetTrackFilterType (ETrackFilterType_t f)
 
void SetFilterHybridTracks (Bool_t f)
 
void SetITSHybridTrackDistinction (Bool_t doUse)
 
void SetTrackCutsPeriod (const char *period)
 
void AddTrackCuts (AliVCuts *cuts)
 
Int_t GetNumberOfCutObjects () const
 
AliVCuts * GetTrackCuts (Int_t icut)
 
void SetAODFilterBits (UInt_t bits)
 
void AddAODFilterBit (UInt_t bit)
 
UInt_t GetAODFilterBits () const
 
Bool_t IsHybridTrackSelection () const
 
void SetSelectionModeAny ()
 
void SetSelectionModeAll ()
 
void NextEvent (const AliVEvent *event)
 
const char * GetTitle () const
 
Bool_t CheckArrayConsistency () const
 Test function checking whether the entries in the track array are the same as in the input array. More...
 
const AliTrackIterableContainer all () const
 
const AliTrackIterableContainer accepted () const
 
const AliTrackIterableMomentumContainer all_momentum () const
 
const AliTrackIterableMomentumContainer accepted_momentum () const
 
- Public Member Functions inherited from AliParticleContainer
 AliParticleContainer ()
 
 AliParticleContainer (const char *name)
 
virtual ~AliParticleContainer ()
 
virtual TObjectoperator[] (int index) const
 
virtual Bool_t ApplyParticleCuts (const AliVParticle *vp, UInt_t &rejectionReason) const
 
virtual Bool_t ApplyKinematicCuts (const AliTLorentzVector &mom, UInt_t &rejectionReason) const
 
Double_t GetParticlePtCut () const
 
Double_t GetParticleEtaMin () const
 
Double_t GetParticleEtaMax () const
 
Double_t GetParticlePhiMin () const
 
Double_t GetParticlePhiMax () const
 
void SetParticlePtCut (Double_t cut)
 
void SetParticleEtaLimits (Double_t min, Double_t max)
 
void SetParticlePhiLimits (Double_t min, Double_t max)
 
virtual AliVParticle * GetLeadingParticle (const char *opt="")
 
virtual Bool_t GetMomentumFromParticle (TLorentzVector &mom, const AliVParticle *part, Double_t mass) const
 
virtual Bool_t GetMomentumFromParticle (TLorentzVector &mom, const AliVParticle *part) const
 
Int_t GetNParticles () const
 
Int_t GetNAcceptedParticles () const
 
void SetMinDistanceTPCSectorEdge (Double_t min)
 
void SetCharge (EChargeCut_t c)
 
void SelectHIJING (Bool_t s)
 
void SetGeneratorIndex (Short_t i)
 
void SetArray (const AliVEvent *event)
 
const char * GetTitle () const
 
const AliParticleIterableContainer all () const
 
const AliParticleIterableContainer accepted () const
 
const AliParticleIterableMomentumContainer all_momentum () const
 
const AliParticleIterableMomentumContainer accepted_momentum () const
 

Static Public Member Functions

static void SetDefTrackCutsPeriod (const char *period)
 
static TString GetDefTrackCutsPeriod ()
 
- Static Public Member Functions inherited from AliParticleContainer
static const AliEmcalContainerIndexMap< TClonesArray, AliVParticle > & GetEmcalContainerIndexMap ()
 Get the EMCal container utils associated with particle containers. More...
 

Static Public Attributes

static const std::map< std::string, AliEmcalTrackSelection::ETrackFilterType_tfgkTrackFilterTypeMap
 Relates string to the track filter enumeration for YAML configuration. More...
 

Protected Member Functions

virtual TString GetDefaultArrayName (const AliVEvent *const ev) const
 
PWG::EMCAL::AliEmcalTrackSelResultHybrid::HybridType_t GetHybridDefinition (const PWG::EMCAL::AliEmcalTrackSelResultPtr &selectionResult) const
 

Protected Attributes

ETrackFilterType_t fTrackFilterType
 track filter type More...
 
TObjArrayfListOfCuts
 list of track cut objects More...
 
Bool_t fSelectionModeAny
 accept track if any of the cuts is fulfilled More...
 
Bool_t fITSHybridTrackDistinction
 Distinct hybrid tracks via SPD information. More...
 
UInt_t fAODFilterBits
 track filter bits More...
 
TString fTrackCutsPeriod
 period string used to generate track cuts More...
 
AliEmcalTrackSelectionfEmcalTrackSelection
 ! track selection object More...
 
TrackOwnerHandler fFilteredTracks
 ! tracks filtered using fEmcalTrackSelection More...
 
TArrayC fTrackTypes
 ! track types More...
 
- Protected Attributes inherited from AliParticleContainer
Double_t fMinDistanceTPCSectorEdge
 require minimum distance to edge of TPC sector edge More...
 
EChargeCut_t fChargeCut
 select particles according to their charge More...
 
Short_t fGeneratorIndex
 select MC particles with generator index (default = -1 = switch off selection) More...
 

Static Protected Attributes

static TString fgDefTrackCutsPeriod = ""
 ! default period string used to generate track cuts More...
 
- Static Protected Attributes inherited from AliParticleContainer
static AliEmcalContainerIndexMap< TClonesArray, AliVParticle > fgEmcalContainerIndexMap
 ! Mapping from containers to indices More...
 

Private Member Functions

 AliTrackContainer (const AliTrackContainer &obj)
 
AliTrackContaineroperator= (const AliTrackContainer &other)
 

Detailed Description

Container with name, TClonesArray and cuts for particles.

Author
Marta Verweij
Salvatore Aiola salva.nosp@m.tore.nosp@m..aiol.nosp@m.a@ya.nosp@m.le.ed.nosp@m.u, Yale University

Definition at line 56 of file AliTrackContainer.h.

Member Typedef Documentation

Member Enumeration Documentation

Status of a track after track selection.

Enumerator
kRejected 

Track rejected.

kUndefined 

Track status undefined.

kHybridGlobal 

Track selected under the global hybrid track cuts.

kHybridConstrainedTrue 

Track selected under the constrained hybrid track cuts (true constrained)

kHybridConstrainedFake 

Track selected under the constrained hybrid track cuts (fake constrained)

kHybridConstrainedNoITSrefit 

Track selected under the constrained hybrid track cuts without ITS refit.

Definition at line 104 of file AliTrackContainer.h.

Constructor & Destructor Documentation

AliTrackContainer::AliTrackContainer ( )

Default constructor.

Definition at line 68 of file AliTrackContainer.cxx.

AliTrackContainer::AliTrackContainer ( const char *  name,
const char *  period = "" 
)

Standard constructor.

Parameters
[in]nameName of the container (= name of the array operated on)
[in]periodName of the period, needed for track cut selection

Definition at line 90 of file AliTrackContainer.cxx.

virtual AliTrackContainer::~AliTrackContainer ( )
inlinevirtual

Definition at line 115 of file AliTrackContainer.h.

AliTrackContainer::AliTrackContainer ( const AliTrackContainer obj)
private

Member Function Documentation

const AliTrackIterableContainer AliTrackContainer::accepted ( ) const

Create an iterable container interface over accepted objects in the EMCAL container.

Returns
iterable container over accepted objects in the EMCAL container

Definition at line 695 of file AliTrackContainer.cxx.

Referenced by AliAnalysisTaskIDFragmentationFunction::FillHistograms(), and GetDefTrackCutsPeriod().

virtual Bool_t AliTrackContainer::AcceptObject ( Int_t  i,
UInt_t rejectionReason 
) const
inlinevirtual

Reimplemented from AliParticleContainer.

Definition at line 118 of file AliTrackContainer.h.

virtual Bool_t AliTrackContainer::AcceptObject ( const TObject obj,
UInt_t rejectionReason 
) const
inlinevirtual

Reimplemented from AliParticleContainer.

Definition at line 119 of file AliTrackContainer.h.

virtual Bool_t AliTrackContainer::AcceptParticle ( Int_t  i,
UInt_t rejectionReason 
) const
inlinevirtual

Perform full particle selection consisting of kinematical and particle property selection on the \( i^{th} \) particle in the array. In case the particle is rejected, the reason for the rejection is encoded in the bitmap rejectionReason.

Parameters
[in]iIndex of the particle to select.
[out]rejectionReasonBitmap with the reason why the particle was accepted. Note: The value is not set to 0 in the function in order to combine the information with other selection steps.
Returns
True if the particle was accepted, false otherwise

Reimplemented from AliParticleContainer.

Definition at line 120 of file AliTrackContainer.h.

Referenced by AliAnalysisTaskJetV3::PassesCuts().

virtual Bool_t AliTrackContainer::AcceptParticle ( const AliVParticle *  vp,
UInt_t rejectionReason 
) const
inlinevirtual

Perform full particle selection consisting of kinematical and particle property selection on the particle provided. In case the particle is rejected, the reason for the rejection is encoded in the bitmap rejectionReason.

Parameters
vpParticle for which to perform the selection
rejectionReasonBitmap with the reason why the particle was accepted. Note: The value is not set to 0 in the function in order to combine the information with other selection steps.
Returns
True if the particle is accepted, false otherwise.

Reimplemented from AliParticleContainer.

Definition at line 121 of file AliTrackContainer.h.

Bool_t AliTrackContainer::AcceptTrack ( const AliVTrack *  vp,
UInt_t rejectionReason 
) const
virtual

Perform full track selection for the particle vp, consisting of kinematical track selection and track quality cut provided by the cuts assigned to this container

Parameters
[in]vpTrack to be checked
[in]rejectionReasonBitmap encoding the reason why the track was rejected. Note: The variable is not set to NULL inside this function before changing its value.
Returns
True if the track is accepted, false otherwise

Definition at line 537 of file AliTrackContainer.cxx.

Referenced by AcceptObject(), AcceptParticle(), GetAcceptTrack(), and GetNextParticle().

Bool_t AliTrackContainer::AcceptTrack ( Int_t  i,
UInt_t rejectionReason 
) const
virtual

Perform full track selection for the particle in the container stored at position i, consisting of kinematical track selection and track quality cut provided by the cuts assigned to this container

Parameters
[in]iIndex of the track to check
[in]rejectionReasonBitmap encoding the reason why the track was rejected. Note: The variable is not set to NULL inside this function before changing its value.
Returns
True if the track is accepted, false otherwise

Definition at line 559 of file AliTrackContainer.cxx.

void AliTrackContainer::AddAODFilterBit ( UInt_t  bit)
inline

Definition at line 156 of file AliTrackContainer.h.

void AliTrackContainer::AddTrackCuts ( AliVCuts *  cuts)

Add new track cuts to the container.

Parameters
[in]cutsCuts to be added

Definition at line 589 of file AliTrackContainer.cxx.

Referenced by SetTrackCutsPeriod().

const AliTrackIterableContainer AliTrackContainer::all ( ) const

Create an iterable container interface over all objects in the EMCAL container.

Returns
iterable container over all objects in the EMCAL container

Definition at line 686 of file AliTrackContainer.cxx.

Referenced by GetDefTrackCutsPeriod().

const AliTrackIterableMomentumContainer AliTrackContainer::all_momentum ( ) const

Create an iterable container interface over all objects in the EMCAL container.

Returns
iterable container over all objects in the EMCAL container

Definition at line 704 of file AliTrackContainer.cxx.

Referenced by GetDefTrackCutsPeriod().

Bool_t AliTrackContainer::ApplyTrackCuts ( const AliVTrack *  vp,
UInt_t rejectionReason 
) const
virtual

Perform track quality selection of the track vp using the track cuts assigned to this container.

Parameters
[in]vpTrack to be checked
[out]rejectionReasonBitmap encoding the reason why the track was rejected. Note: The variable is not set to NULL inside this function before changing its value.
Returns
True if the particle was accepted, false otherwise

Reimplemented in AliTrackContainerV0, and AliHFTrackContainer.

Definition at line 580 of file AliTrackContainer.cxx.

Referenced by AcceptTrack(), AliHFTrackContainer::ApplyTrackCuts(), AliTrackContainerV0::ApplyTrackCuts(), and ~AliTrackContainer().

Bool_t AliTrackContainer::CheckArrayConsistency ( ) const

Test function checking whether the entries in the track array are the same as in the input array.

Returns
Bool_t CheckArrayConsistency

Definition at line 650 of file AliTrackContainer.cxx.

Referenced by GetDefTrackCutsPeriod().

Bool_t AliTrackContainer::GetAcceptMomentum ( TLorentzVector &  mom,
Int_t  i 
) const
virtual

Fills a TLorentzVector with the monentum infomation of the \( i^{th} \) accepted particle in the container, using a global mass hypothesis. In case the provided index is out of range, or the particle under the index is not accepted, false is returned as return value.

Parameters
[out]momMomentum vector of the accepted particle
[in]iIndex to check
Returns
True if the request was successfull, false otherwise

Reimplemented from AliParticleContainer.

Reimplemented in AliTrackContainerToyModel.

Definition at line 464 of file AliTrackContainer.cxx.

Referenced by AliTrackContainerToyModel::GetAcceptMomentum(), and GetLeadingTrack().

virtual AliVParticle* AliTrackContainer::GetAcceptParticle ( Int_t  i = -1) const
inlinevirtual

Get \( i^{th} \) particle in the container if it is accepted. In case it is not accepted a nullpointer is returned.

Parameters
[in]iIndex of the particle
Returns
Particle at the index if it is accepted, NULL otherwise

Reimplemented from AliParticleContainer.

Definition at line 123 of file AliTrackContainer.h.

Referenced by AliAnalysisTaskHFSubstructure::FillHistograms().

AliVTrack * AliTrackContainer::GetAcceptTrack ( Int_t  i = -1) const
virtual
UInt_t AliTrackContainer::GetAODFilterBits ( ) const
inline

Definition at line 157 of file AliTrackContainer.h.

TString AliTrackContainer::GetDefaultArrayName ( const AliVEvent *const  ev) const
protectedvirtual

Create default array name for the track container. The default array name will be

  • tracks in case of AOD event
  • Tracks in case of ESD event
    Parameters
    [in]evInput event, used for data type selection
    Returns
    Appropriate default array name

Definition at line 730 of file AliTrackContainer.cxx.

Referenced by GetDefTrackCutsPeriod().

static TString AliTrackContainer::GetDefTrackCutsPeriod ( )
inlinestatic
PWG::EMCAL::AliEmcalTrackSelResultHybrid::HybridType_t AliTrackContainer::GetHybridDefinition ( const PWG::EMCAL::AliEmcalTrackSelResultPtr selectionResult) const
protected

Definition at line 631 of file AliTrackContainer.cxx.

Referenced by GetDefTrackCutsPeriod(), and NextEvent().

virtual AliVTrack* AliTrackContainer::GetLeadingTrack ( const char *  opt = "")
inlinevirtual

Definition at line 128 of file AliTrackContainer.h.

Bool_t AliTrackContainer::GetMomentum ( TLorentzVector &  mom,
Int_t  i 
) const
virtual

Fills a TLorentzVector with the momentum information of the \( i^{th} \) particle in the container, using a global mass hypothesis. In case the provided index is out of range, false is returned as return value.

Parameters
[out]momMomentum vector of the \( i^{th} \) particle in the array
[in]iIndex of the particle to check
Returns
True if the request was successful, false otherwise

Reimplemented from AliParticleContainer.

Reimplemented in AliTrackContainerToyModel.

Definition at line 394 of file AliTrackContainer.cxx.

Referenced by AcceptTrack(), GetLeadingTrack(), and AliTrackContainerToyModel::GetMomentum().

Bool_t AliTrackContainer::GetMomentumFromTrack ( TLorentzVector &  mom,
const AliVTrack *  track,
Double_t  mass 
) const
virtual

Retrieve momentum information of a track and fill a TLorentzVector with it. In case the optional parameter mass is provided, it is used as mass hypothesis, otherwise the mass hypothesis from the particle itself is used.

Parameters
[out]momMomentum vector to be filled
[in]trackTrack from which the momentum information is obtained.
[in]mass(Optional) Mass hypothesis
Returns

Reimplemented in AliTrackContainerToyModel.

Definition at line 344 of file AliTrackContainer.cxx.

Referenced by AcceptTrack(), GetLeadingTrack(), AliTrackContainerToyModel::GetMomentumFromTrack(), and GetMomentumFromTrack().

Bool_t AliTrackContainer::GetMomentumFromTrack ( TLorentzVector &  mom,
const AliVTrack *  part 
) const
virtual

Fills a TLorentzVector with the momentum information of the track provided under a global mass hypothesis.

Parameters
[out]momMomentum vector of the particle provided
[in]trackTrack from which to obtain the momentum information
Returns
Always true

Definition at line 380 of file AliTrackContainer.cxx.

Bool_t AliTrackContainer::GetNextAcceptMomentum ( TLorentzVector &  mom)
virtual

Fills a TLorentzVector with the monentum infomation of the next accepted particle in the container, using a global mass hypothesis. In case the iteration reached the end of the array, false is returned as return value.

Deprecated:
Old style iterator - use accept_iterator instead
Parameters
[out]momMomentum vector of the next particle in the array
Returns
True if the request was successfull, false (no more entries) otherwise

Reimplemented from AliParticleContainer.

Reimplemented in AliTrackContainerToyModel.

Definition at line 501 of file AliTrackContainer.cxx.

Referenced by GetLeadingTrack(), and AliTrackContainerToyModel::GetNextAcceptMomentum().

virtual AliVParticle* AliTrackContainer::GetNextAcceptParticle ( )
inlinevirtual

Iterator over accepted particles in the container. Get the next accepted particle in the array. If the end is reached, NULL is returned.

Deprecated:
Only for backward compatibility - use accept_iterator instead
Returns
Next accepted particle in the array (NULL if the end is reached)

Reimplemented from AliParticleContainer.

Definition at line 124 of file AliTrackContainer.h.

Referenced by AliAnalysisTaskChargedJetsHadronCF::AddEventToTree(), AliAnalysisTaskJetV3::CalculateRandomCone(), AliAnalysisTaskJetV3::CorrectRho(), AliAnalysisTaskV0sInJetsEmcal::FillHistograms(), AliAnalysisTaskChargedJetsHadronCF::Run(), and AliAnalysisTaskEmcalJetHadEPpid::Run().

AliVTrack * AliTrackContainer::GetNextAcceptTrack ( )
virtual

Get next accepted particle in the container selected using the track cuts provided.

Deprecated:
Old style iterator - for compatibility reasons, use AliParticleContainer::accept_iterator instead
Returns
Next accepted particle (NULL if the end of the array is reached)

Definition at line 287 of file AliTrackContainer.cxx.

Referenced by GetLeadingTrack(), GetNextAcceptMomentum(), and GetNextAcceptParticle().

Bool_t AliTrackContainer::GetNextMomentum ( TLorentzVector &  mom)
virtual

Fills a TLorentzVector with the momentum information of the next particle in the container, using a global mass hypothesis. In case the iterator reached the end of the array, false is returned as return value.

Deprecated:
Old style iterator - use all_iterator instead
Parameters
[out]momMomentum vector of the next particle
Returns
True if the request was successful, false otherwise

Reimplemented from AliParticleContainer.

Reimplemented in AliTrackContainerToyModel.

Definition at line 429 of file AliTrackContainer.cxx.

Referenced by GetLeadingTrack(), and AliTrackContainerToyModel::GetNextMomentum().

virtual AliVParticle* AliTrackContainer::GetNextParticle ( )
inlinevirtual

Iterator over all particles in the container. Get the next particle in the array. If the end is reached, NULL is returned.

Deprecated:
Only for backward compatibility - use all_iterator instead.
Returns
Next particle in the array (NULL if the end is reached)

Reimplemented from AliParticleContainer.

Definition at line 125 of file AliTrackContainer.h.

AliVTrack * AliTrackContainer::GetNextTrack ( )
virtual

Get next particle in the container

Deprecated:
Old style iterator - for compatibility reasons, use AliParticleContainer::all_iterator instead
Returns
Next track in the container (NULL if end of the container is reached)

Definition at line 305 of file AliTrackContainer.cxx.

Referenced by GetLeadingTrack(), GetNextMomentum(), and GetNextParticle().

Int_t AliTrackContainer::GetNumberOfCutObjects ( ) const

Get number of track cut objects assigned to this container.

Returns
Number of track cut objects

Definition at line 602 of file AliTrackContainer.cxx.

Referenced by SetTrackCutsPeriod().

virtual AliVParticle* AliTrackContainer::GetParticle ( Int_t  i = -1) const
inlinevirtual

Get \( i^{th} \) particle in the container.

Parameters
[in]iIndex of the particle to access
Returns
Parrticle at the given index (NULL if the index is out of range)

Reimplemented from AliParticleContainer.

Definition at line 122 of file AliTrackContainer.h.

Referenced by AliAnalysisTaskJetV3::CalculateEventPlaneTPC().

const char * AliTrackContainer::GetTitle ( ) const

Build title of the container consisting of the container name and a string encoding the minimum \( p_{t} \) cut applied in the kinematic track selection.

Returns
Title of the container

Definition at line 723 of file AliTrackContainer.cxx.

Referenced by GetDefTrackCutsPeriod().

AliVTrack * AliTrackContainer::GetTrack ( Int_t  i = -1) const
virtual

Get track at index in the container

Parameters
[in]iIndex of the particle in the container
Returns
pointer to particle if particle is accepted, NULL otherwise

Definition at line 255 of file AliTrackContainer.cxx.

Referenced by AcceptTrack(), GetAcceptTrack(), GetLeadingTrack(), GetMomentum(), GetNextTrack(), and GetParticle().

AliVCuts * AliTrackContainer::GetTrackCuts ( Int_t  icut)

Get the cut object at index (icut) assigned to this container.

Parameters
[in]icutIndex of the cut in the container
Returns
Cut object at the index if existing, NULL otherwise

Definition at line 613 of file AliTrackContainer.cxx.

Referenced by SetTrackCutsPeriod().

ETrackFilterType_t AliTrackContainer::GetTrackFilterType ( ) const
inline

Definition at line 142 of file AliTrackContainer.h.

Referenced by AliAnalysisTaskEmcalJetQA::DoTrackLoop().

Char_t AliTrackContainer::GetTrackType ( const AliVTrack *  track) const

Retrieve the track type using the IndexOf method of the TClonesArray to retrieve the index of the provided track.

Parameters
trackTrack for which the type is requested.
Returns
The track type from fTrackTypes

Definition at line 324 of file AliTrackContainer.cxx.

Referenced by AliAnalysisTaskEmcalJetQA::DoTrackLoop(), AliEmcalTrackingQATask::FillHistograms(), AliAnalysisTaskPWGJEQA::FillTrackHistograms(), GetLeadingTrack(), and GetMomentumFromTrack().

Char_t AliTrackContainer::GetTrackType ( Int_t  i) const
inline

Definition at line 143 of file AliTrackContainer.h.

bool AliTrackContainer::IsHybridTrackSelection ( ) const
void AliTrackContainer::NextEvent ( const AliVEvent *  event)

Preparation for the next event: Run the track selection of all bit and store the pointers to selected tracks in a separate array.

Definition at line 184 of file AliTrackContainer.cxx.

Referenced by AliTrackContainerV0::NextEvent(), and SetSelectionModeAll().

AliTrackContainer& AliTrackContainer::operator= ( const AliTrackContainer other)
private
void AliTrackContainer::SetAODFilterBits ( UInt_t  bits)
inline
void AliTrackContainer::SetArray ( const AliVEvent *  event)

Get array from event. Also creating the virtual track selection for the period provided in the constructor.

Parameters
[in]eventEvent from which the data is read

Definition at line 118 of file AliTrackContainer.cxx.

Referenced by GetTrackType(), and AliTrackContainerV0::SetArray().

static void AliTrackContainer::SetDefTrackCutsPeriod ( const char *  period)
inlinestatic

Definition at line 165 of file AliTrackContainer.h.

void AliTrackContainer::SetFilterHybridTracks ( Bool_t  f)
inline
void AliTrackContainer::SetITSHybridTrackDistinction ( Bool_t  doUse)
inline

Definition at line 149 of file AliTrackContainer.h.

void AliTrackContainer::SetSelectionModeAll ( )
inline

Definition at line 161 of file AliTrackContainer.h.

void AliTrackContainer::SetSelectionModeAny ( )
inline

Definition at line 160 of file AliTrackContainer.h.

void AliTrackContainer::SetTrackCutsPeriod ( const char *  period)
inline
void AliTrackContainer::SetTrackFilterType ( ETrackFilterType_t  f)
inline

Member Data Documentation

UInt_t AliTrackContainer::fAODFilterBits
protected

track filter bits

Definition at line 204 of file AliTrackContainer.h.

Referenced by AddAODFilterBit(), GetAODFilterBits(), SetAODFilterBits(), and SetArray().

AliEmcalTrackSelection* AliTrackContainer::fEmcalTrackSelection
protected

! track selection object

Definition at line 206 of file AliTrackContainer.h.

Referenced by NextEvent(), and SetArray().

TrackOwnerHandler AliTrackContainer::fFilteredTracks
protected

! tracks filtered using fEmcalTrackSelection

Definition at line 207 of file AliTrackContainer.h.

Referenced by CheckArrayConsistency(), GetTrack(), GetTrackType(), and NextEvent().

TString AliTrackContainer::fgDefTrackCutsPeriod = ""
staticprotected

! default period string used to generate track cuts

Definition at line 198 of file AliTrackContainer.h.

Referenced by AliTrackContainer(), GetDefTrackCutsPeriod(), and SetDefTrackCutsPeriod().

const std::map< std::string, AliEmcalTrackSelection::ETrackFilterType_t > AliTrackContainer::fgkTrackFilterTypeMap
static
Initial value:

Relates string to the track filter enumeration for YAML configuration.

!

Definition at line 98 of file AliTrackContainer.h.

Referenced by AliEmcalCorrectionTask::SetupContainer().

Bool_t AliTrackContainer::fITSHybridTrackDistinction
protected

Distinct hybrid tracks via SPD information.

Definition at line 203 of file AliTrackContainer.h.

Referenced by SetITSHybridTrackDistinction().

TObjArray* AliTrackContainer::fListOfCuts
protected

list of track cut objects

Definition at line 201 of file AliTrackContainer.h.

Referenced by AddTrackCuts(), GetNumberOfCutObjects(), GetTrackCuts(), and SetArray().

Bool_t AliTrackContainer::fSelectionModeAny
protected

accept track if any of the cuts is fulfilled

Definition at line 202 of file AliTrackContainer.h.

Referenced by SetArray(), SetSelectionModeAll(), and SetSelectionModeAny().

TString AliTrackContainer::fTrackCutsPeriod
protected

period string used to generate track cuts

Definition at line 205 of file AliTrackContainer.h.

Referenced by AliTrackContainer(), SetArray(), and SetTrackCutsPeriod().

ETrackFilterType_t AliTrackContainer::fTrackFilterType
protected
TArrayC AliTrackContainer::fTrackTypes
protected

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