1 #ifndef AliAODMCPARTICLE_H 2 #define AliAODMCPARTICLE_H 15 #include <TParticlePDG.h> 37 virtual Double_t
Px()
const;
38 virtual Double_t
Py()
const;
39 virtual Double_t
Pz()
const;
40 virtual Double_t
Pt()
const;
41 virtual Double_t
P()
const;
42 virtual Bool_t
PxPyPz(Double_t
p[3])
const;
44 virtual void Momentum(TLorentzVector & lv) { lv.SetPxPyPzE(
Px(),
Py(),
Pz(),
E()) ; }
47 virtual Double_t
Phi()
const;
48 virtual Double_t
Theta()
const;
50 virtual Double_t
Xv()
const;
51 virtual Double_t
Yv()
const;
52 virtual Double_t
Zv()
const;
53 virtual Bool_t
XvYvZv(Double_t x[3])
const;
54 virtual Double_t
T()
const;
55 virtual Double_t
Tv()
const;
57 virtual Double_t
E()
const;
58 virtual Double_t
M()
const;
60 virtual Double_t
Eta()
const;
61 virtual Double_t
Y()
const;
63 virtual Short_t
Charge()
const;
65 virtual Int_t
Label()
const;
69 virtual const Double_t *
PID()
const {
return 0;}
83 virtual void Print(
const Option_t *opt =
"")
const;
97 fFlag |= (((UInt_t)status)<<16);
103 return ULong64_t(
fFlag>>16);
136 if(mcProcess>1<<7)
return;
138 fFlag |= (mcProcess<<8);
142 return ((
fFlag&0xff00)>>8);
214 if (pmom != TMath::Abs(
fPz))
return 0.5*TMath::Log((pmom+
fPz)/(pmom-
fPz));
224 if (e > TMath::Abs(pz)) {
225 return 0.5*TMath::Log((e+pz)/(e-pz));
237 return TMath::Sqrt(m2);
virtual Int_t GetMother() const
static TString fgkStdBranchName
Standard branch name.
virtual Double_t P() const
virtual Double_t M() const
Double32_t fPx
x component of momentum
Int_t fPdgCode
PDG code of the particle.
virtual const Double_t * PID() const
virtual Double_t Yv() const
virtual Double_t E() const
Bool_t IsPhysicalPrimary() const
virtual void Print(const Option_t *opt="") const
Double32_t fPy
y component of momentum
virtual UInt_t MCStatusCode() const
virtual Double_t Zv() const
Double32_t fVz
z of production vertex
virtual Double_t Px() const
virtual Double_t Pz() const
virtual Int_t GetFirstDaughter() const
void SetMCProcessCode(UInt_t mcProcess)
virtual Int_t GetLabel() const
virtual Bool_t PxPyPz(Double_t p[3]) const
virtual Double_t T() const
static const char * StdBranchName()
Double32_t fPz
z component of momentum
virtual void SetFlag(UInt_t flag)
AliVParticle realisation for MC Particles in the AOD.
virtual Int_t GetDaughter(Int_t i) const
virtual Double_t Theta() const
virtual UInt_t GetFlag() const
Double32_t fVy
y of production vertex
Double32_t fVt
t of production vertex
virtual Int_t GetDaughterLabel(Int_t i) const
void SetMCStatusCode(Int_t status)
Int_t fDaughter[2]
Indices of the daughter particles.
void SetSecondaryFromMaterial(Bool_t b=kTRUE)
virtual Double_t Tv() const
virtual Double_t Eta() const
virtual Short_t GetGeneratorIndex() const
virtual void SetMother(Int_t im)
virtual Double_t Pt() const
virtual Int_t PdgCode() const
UInt_t fFlag
Flag for indication of primary etc, Status code in the upper 16 bits 17-32, MC process id (AKA Unique...
void SetPrimary(Bool_t b=kTRUE)
Int_t fMother
Index of the mother particles.
virtual Int_t GetLastDaughter() const
void SetStatus(Int_t status)
virtual ULong64_t GetStatus() const
Short_t fGeneratorIndex
! Index of generator in cocktail
virtual Double_t OneOverPt() const
virtual void SetDaughter(Int_t i, Int_t id)
UInt_t GetMCProcessCode()
virtual Bool_t IsPrimary() const
virtual Bool_t XvYvZv(Double_t x[3]) const
AliAODMCParticle & operator=(const AliAODMCParticle &mcPart)
Double32_t fVx
x of production vertex
virtual Double_t Phi() const
virtual Int_t GetNDaughters() const
virtual Double_t Py() const
virtual Int_t GetPdgCode() const
Bool_t IsSecondaryFromWeakDecay() const
Int_t fLabel
Label of the original MCParticle.
virtual ~AliAODMCParticle()
virtual void Momentum(TLorentzVector &lv)
virtual void SetGeneratorIndex(Short_t i)
virtual Int_t Label() const
Bool_t IsSecondaryFromMaterial() const
virtual Short_t Charge() const
virtual Double_t Xv() const
virtual Double_t Y() const
void SetPhysicalPrimary(Bool_t b=kTRUE)
virtual Double_t GetCalcMass() const
void SetSecondaryFromWeakDecay(Bool_t b=kTRUE)