AliPhysics  5a28df1 (5a28df1)
AliHFTrackContainer Class Reference

Select tracks based on specific prescriptions of HF analysis. More...

#include <AliHFTrackContainer.h>

Inheritance diagram for AliHFTrackContainer:

Public Member Functions

 AliHFTrackContainer ()
 This is the default constructor, used for ROOT I/O purposes. More...
 
 AliHFTrackContainer (const char *name)
 
void SetDMesonCandidate (AliAODRecoDecay *c)
 
virtual Bool_t ApplyTrackCuts (const AliVTrack *vp, UInt_t &rejectionReason) const
 
void GenerateDaughterList ()
 Generate the list of the daughters of the D meson candidate. More...
 
const TObjArrayGetDaughterList () const
 
- Public Member Functions inherited from AliTrackContainer
 AliTrackContainer ()
 
 AliTrackContainer (const char *name, const char *period="")
 
virtual ~AliTrackContainer ()
 
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
 

Protected Member Functions

void AddDaughters (const AliAODRecoDecay *cand)
 
Bool_t IsDMesonDaughter (const AliAODTrack *track) const
 
- Protected Member Functions inherited from AliTrackContainer
virtual TString GetDefaultArrayName (const AliVEvent *const ev) const
 
PWG::EMCAL::AliEmcalTrackSelResultHybrid::HybridType_t GetHybridDefinition (const PWG::EMCAL::AliEmcalTrackSelResultPtr &selectionResult) const
 

Protected Attributes

AliAODRecoDecay * fDMesonCandidate
 Exclude daughters of this D meson candidate. More...
 
TObjArray fDaughterList
 Daughters of the D meson candidate. More...
 
- Protected Attributes inherited from AliTrackContainer
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...
 

Private Member Functions

 AliHFTrackContainer (const AliHFTrackContainer &)
 
AliHFTrackContaineroperator= (const AliHFTrackContainer &)
 

Additional Inherited Members

- Public Types inherited from AliTrackContainer
enum  ETrackType_t {
  kRejected = -1, kUndefined = 0, kHybridGlobal = 0, kHybridConstrained = 1,
  kHybridConstrainedNoITSrefit = 2
}
 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
}
 
- Static Public Member Functions inherited from AliTrackContainer
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 inherited from AliTrackContainer
static const std::map< std::string, AliEmcalTrackSelection::ETrackFilterType_tfgkTrackFilterTypeMap
 Relates string to the track filter enumeration for YAML configuration. More...
 
- Static Protected Attributes inherited from AliTrackContainer
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...
 

Detailed Description

Select tracks based on specific prescriptions of HF analysis.

This class derives from AliParticleContainer. It allows to select tracks based on specific prescriptions of HF analysis. In particular it will reject tracks that are daughters of a specified D meson candidate

Author
Salvatore Aiola salva.nosp@m.tore.nosp@m..aiol.nosp@m.a@ce.nosp@m.rn.ch, Yale University
Date
Feb 10, 2016

Definition at line 36 of file AliHFTrackContainer.h.

Constructor & Destructor Documentation

AliHFTrackContainer::AliHFTrackContainer ( )

This is the default constructor, used for ROOT I/O purposes.

Definition at line 29 of file AliHFTrackContainer.cxx.

AliHFTrackContainer::AliHFTrackContainer ( const char *  name)

This is the standard named constructor.

Parameters
nameName of the particle collection

Definition at line 44 of file AliHFTrackContainer.cxx.

AliHFTrackContainer::AliHFTrackContainer ( const AliHFTrackContainer )
private

Member Function Documentation

void AliHFTrackContainer::AddDaughters ( const AliAODRecoDecay *  cand)
protected
Parameters
candA pointer to an AliAODRecoDecay object

Definition at line 109 of file AliHFTrackContainer.cxx.

Referenced by GenerateDaughterList(), and GetDaughterList().

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

First check whether the particle is a daughter of the D meson candidate (in which case the particle is rejected); then calls the base class AcceptTrack(AliVTrack*) method.

Parameters
iIndex of the particle to be checked.
Returns
kTRUE if the particle is accepted, kFALSE otherwise.

Reimplemented from AliTrackContainer.

Definition at line 63 of file AliHFTrackContainer.cxx.

void AliHFTrackContainer::GenerateDaughterList ( )

Generate the list of the daughters of the D meson candidate.

Definition at line 100 of file AliHFTrackContainer.cxx.

Referenced by SetDMesonCandidate().

const TObjArray& AliHFTrackContainer::GetDaughterList ( ) const
inline
Bool_t AliHFTrackContainer::IsDMesonDaughter ( const AliAODTrack *  track) const
protected

Check if particle it's a daughter of the D meson candidate

Parameters
trackPointer to a valid AliAODTrack object
Returns
kTRUE if it is a daughter of the D meson candidate, kFALSE otherwise

Definition at line 80 of file AliHFTrackContainer.cxx.

Referenced by ApplyTrackCuts(), and GetDaughterList().

AliHFTrackContainer& AliHFTrackContainer::operator= ( const AliHFTrackContainer )
private
void AliHFTrackContainer::SetDMesonCandidate ( AliAODRecoDecay *  c)

Set the D meson candidate pointer and generate the list of daughters

Parameters
candA pointer to an AliAODRecoDecay object

Definition at line 92 of file AliHFTrackContainer.cxx.

Referenced by AliAnalysisTaskDmesonJets::AnalysisEngine::FindJet(), and AliAnalysisTaskDmesonJets::AnalysisEngine::RunDetectorLevelAnalysis().

Member Data Documentation

TObjArray AliHFTrackContainer::fDaughterList
protected

Daughters of the D meson candidate.

Definition at line 53 of file AliHFTrackContainer.h.

Referenced by AddDaughters(), AliHFTrackContainer(), GenerateDaughterList(), GetDaughterList(), and IsDMesonDaughter().

AliAODRecoDecay* AliHFTrackContainer::fDMesonCandidate
protected

Exclude daughters of this D meson candidate.

Definition at line 52 of file AliHFTrackContainer.h.

Referenced by GenerateDaughterList(), IsDMesonDaughter(), and SetDMesonCandidate().


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