1 #ifndef ALICALOTRACKMCREADER_H 2 #define ALICALOTRACKMCREADER_H 29 #include "AliMCEvent.h" 64 if (
GetMC() )
return GetMC()->GenEventHeader();
140 #endif //ALICALOTRACKMCREADER_H
void SwitchOffStatusSelection()
virtual AliMCEvent * GetMC() const
TLorentzVector fGamDecayMom2
! Gamma decay 2 momentum
virtual ~AliCaloTrackMCReader()
Destructor.
void InitParameters()
Initialize the parameters of the analysis.
void SetCaloClusterPID(Int_t pdgCode, AliVCluster *calo) const
Give a PID weight for CaloClusters equal to 1 depending on the particle type.
void SwitchOffOnlyGeneratorParticles()
TLorentzVector fGamDecayMom1
! Gamma decay 1 momentum
AliCaloTrackMCReader & operator=(const AliCaloTrackMCReader &r)
Assignment operator not implemented.
Bool_t fOnlyGeneratorParticles
Use particles only generated by PYTHIA/HERWIG/... and not by the MC tranport G3/G4/FLUKA ...
void AddChargedParticlesArray(TArrayI &array)
Double_t * GetVertex(Int_t evtIndex) const
void SwitchOnOverlapCheck()
void CheckOverlap(Float_t anglethres, Int_t imom, Int_t &iPrimary, Int_t &index, Int_t &pdg)
Check overlap of decay photons.
AliGenEventHeader * GetGenEventHeader() const
void SetInputOutputMCEvent(AliVEvent *esd, AliAODEvent *aod, AliMCEvent *mc)
Connect the input data pointer.
void SwitchOffOverlapCheck()
Bool_t SkipNeutralParticles(Int_t pdg) const
Double_t ** fVertex
! Vertex array 3 dim for each mixed event buffer.
Bool_t fDecayPi0
If not decayed, decay pi0 by hand.
void SetPHOSOverlapAngle(Float_t angle)
AliCaloTrackMCReader()
Default constructor. Initialize parameters.
TArrayI * GetStatusArray() const
TLorentzVector fMomentum
! Momentum
void SetEMCALOverlapAngle(Float_t angle)
TLorentzVector fPi0Momentum
! Pi0 momentum
Float_t fPHOSOverlapAngle
Aperture angle of photons from decay that is not resolved by PHOS, in radians.
Int_t fIndex2ndPhoton
Check overlap of first decay photon already done, internal use.
Bool_t FillInputEvent(Int_t iEntry, const char *currentFileName)
Fill the event counter and input lists that are needed, called by AliAnaCaloTrackCorrMaker.
Class for filtering generated MC particles and prepare them as input for the analysis.
void SwitchOnOnlyGeneratorParticles()
Int_t IsPi0DecaySwitchedOn() const
Base class for event, clusters and tracks filtering and preparation for the analysis.
Bool_t KeepParticleWithStatus(Int_t status) const
void SwitchOnStatusSelection()
void SetTrackChargeAndPID(Int_t pdgCode, AliAODTrack *track) const
Give a PID weight for tracks equal to 1 depending on the particle type.
void AddNeutralParticlesArray(TArrayI &array)
TArrayI * fNeutralParticlesArray
Do not keep neutral particles of this list in calorimeter.
void AddStatusArray(TArrayI &array)
void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
Float_t fEMCALOverlapAngle
Aperture angle of photons from decay that is not resolved by EMCAL, in radians.
Float_t GetEMCALOverlapAngle() const
Float_t GetPHOSOverlapAngle() const
TArrayI * fChargedParticlesArray
Keep charged particles of this list in calorimeter.
Bool_t fCheckOverlap
Check of overlapped photons from pi0 enter the calorimeter.
AliVEvent * GetInputEvent() const
void GetVertex(Double_t v[3]) const
Bool_t fKeepAllStatus
Do or do not select particles depending on their status code.
void FillCalorimeters(Int_t &iParticle, Int_t motherIndex, Int_t pdg)
Fill CaloClusters or AliVParticles lists of PHOS or EMCAL.
TArrayI * GetNeutralParticlesArray() const
TArrayI * fStatusArray
Keep particles with status of the list.
void GetVertex(Double_t vertex[3], Int_t evtIndex) const
Bool_t KeepChargedParticles(Int_t pdg) const
TArrayI * GetChargedParticlesArray() const