AliRoot Core  ee782a0 (ee782a0)
AliAODMCParticle Class Reference

AliVParticle realisation for MC Particles in the AOD. More...

#include <AliAODMCParticle.h>

Inheritance diagram for AliAODMCParticle:

Public Types

enum  { kPrimary = 1<<0, kPhysicalPrim = 1<<1, kSecondaryFromWeakDecay = 1<<2, kSecondaryFromMaterial = 1 <<3 }
 

Public Member Functions

 AliAODMCParticle ()
 
 AliAODMCParticle (const AliMCParticle *part, Int_t label=0, Int_t flag=0)
 
virtual ~AliAODMCParticle ()
 
 AliAODMCParticle (const AliAODMCParticle &mcPart)
 
AliAODMCParticleoperator= (const AliAODMCParticle &mcPart)
 
virtual Double_t Px () const
 
virtual Double_t Py () const
 
virtual Double_t Pz () const
 
virtual Double_t Pt () const
 
virtual Double_t P () const
 
virtual Bool_t PxPyPz (Double_t p[3]) const
 
virtual void Momentum (TLorentzVector &lv)
 
virtual Double_t OneOverPt () const
 
virtual Double_t Phi () const
 
virtual Double_t Theta () const
 
virtual Double_t Xv () const
 
virtual Double_t Yv () const
 
virtual Double_t Zv () const
 
virtual Bool_t XvYvZv (Double_t x[3]) const
 
virtual Double_t T () const
 
virtual Double_t Tv () const
 
virtual Double_t E () const
 
virtual Double_t M () const
 
virtual Double_t Eta () const
 
virtual Double_t Y () const
 
virtual Short_t Charge () const
 
virtual Int_t Label () const
 
virtual Int_t GetLabel () const
 
virtual const Double_t * PID () const
 
virtual Double_t GetCalcMass () const
 
virtual void SetDaughter (Int_t i, Int_t id)
 
virtual Int_t GetDaughter (Int_t i) const
 
virtual Int_t GetDaughterLabel (Int_t i) const
 
virtual Int_t GetNDaughters () const
 
virtual void SetMother (Int_t im)
 
virtual Int_t GetMother () const
 
virtual Int_t GetFirstDaughter () const
 
virtual Int_t GetLastDaughter () const
 
virtual void Print (const Option_t *opt="") const
 
virtual Int_t GetPdgCode () const
 
virtual Int_t PdgCode () const
 
virtual void SetGeneratorIndex (Short_t i)
 
virtual Short_t GetGeneratorIndex () const
 
virtual void SetFlag (UInt_t flag)
 
virtual UInt_t GetFlag () const
 
void SetStatus (Int_t status)
 
virtual ULong64_t GetStatus () const
 
void SetMCStatusCode (Int_t status)
 
virtual UInt_t MCStatusCode () const
 
void SetPrimary (Bool_t b=kTRUE)
 
virtual Bool_t IsPrimary () const
 
void SetPhysicalPrimary (Bool_t b=kTRUE)
 
Bool_t IsPhysicalPrimary () const
 
void SetSecondaryFromWeakDecay (Bool_t b=kTRUE)
 
Bool_t IsSecondaryFromWeakDecay () const
 
void SetSecondaryFromMaterial (Bool_t b=kTRUE)
 
Bool_t IsSecondaryFromMaterial () const
 
void SetMCProcessCode (UInt_t mcProcess)
 
UInt_t GetMCProcessCode ()
 
- Public Member Functions inherited from AliVParticle
 AliVParticle ()
 
virtual ~AliVParticle ()
 
 AliVParticle (const AliVParticle &vPart)
 
AliVParticleoperator= (const AliVParticle &vPart)
 
 AliVParticle (AliVConstructorReinitialisationFlag)
 
virtual TParticle * Particle () const
 
Int_t Compare (const TObject *obj) const
 
Bool_t IsSortable () const
 
Bool_t Local2GlobalMomentum (Double_t p[3], Double_t alpha) const
 
Bool_t Local2GlobalPosition (Double_t r[3], Double_t alpha) const
 
Bool_t Global2LocalMomentum (Double_t p[3], Short_t charge, Double_t &alpha) const
 
Bool_t Global2LocalPosition (Double_t r[3], Double_t alpha) const
 

Static Public Member Functions

static const char * StdBranchName ()
 

Private Attributes

Int_t fPdgCode
 PDG code of the particle. More...
 
UInt_t fFlag
 Flag for indication of primary etc, Status code in the upper 16 bits 17-32, MC process id (AKA UniqueID) in bins 16-9) More...
 
Int_t fLabel
 Label of the original MCParticle. More...
 
Int_t fMother
 Index of the mother particles. More...
 
Int_t fDaughter [2]
 Indices of the daughter particles. More...
 
Double32_t fPx
 x component of momentum More...
 
Double32_t fPy
 y component of momentum More...
 
Double32_t fPz
 z component of momentum More...
 
Double32_t fE
 Energy. More...
 
Double32_t fVx
 x of production vertex More...
 
Double32_t fVy
 y of production vertex More...
 
Double32_t fVz
 z of production vertex More...
 
Double32_t fVt
 t of production vertex More...
 
Short_t fGeneratorIndex
 ! Index of generator in cocktail More...
 

Static Private Attributes

static TString fgkStdBranchName
 Standard branch name. More...
 

Detailed Description

AliVParticle realisation for MC Particles in the AOD.

Stripped dow AliMCParticle

Author
Christian Klein Bösing, CERN

Definition at line 28 of file AliAODMCParticle.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kPrimary 
kPhysicalPrim 
kSecondaryFromWeakDecay 
kSecondaryFromMaterial 

Definition at line 88 of file AliAODMCParticle.h.

Constructor & Destructor Documentation

AliAODMCParticle::AliAODMCParticle ( )

Default Constructor

Definition at line 29 of file AliAODMCParticle.cxx.

Referenced by ~AliAODMCParticle().

AliAODMCParticle::AliAODMCParticle ( const AliMCParticle part,
Int_t  label = 0,
Int_t  flag = 0 
)

Constructor

Definition at line 51 of file AliAODMCParticle.cxx.

virtual AliAODMCParticle::~AliAODMCParticle ( )
inlinevirtual

Definition at line 32 of file AliAODMCParticle.h.

AliAODMCParticle::AliAODMCParticle ( const AliAODMCParticle mcPart)

Copy constructor

Definition at line 74 of file AliAODMCParticle.cxx.

Member Function Documentation

Short_t AliAODMCParticle::Charge ( ) const
virtual

return tha charge

Implements AliVParticle.

Definition at line 136 of file AliAODMCParticle.cxx.

Referenced by Momentum().

Double_t AliAODMCParticle::E ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 211 of file AliAODMCParticle.h.

Referenced by GetCalcMass(), Momentum(), TestAOD(), and Y().

Double_t AliAODMCParticle::Eta ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 212 of file AliAODMCParticle.h.

Referenced by Momentum(), and TestAOD().

Double_t AliAODMCParticle::GetCalcMass ( ) const
inlinevirtual

Definition at line 233 of file AliAODMCParticle.h.

Referenced by M(), and PID().

virtual Int_t AliAODMCParticle::GetDaughter ( Int_t  i) const
inlinevirtual

Definition at line 74 of file AliAODMCParticle.h.

Referenced by GetDaughterLabel(), and AliAODHandler::StoreMCParticles().

virtual Int_t AliAODMCParticle::GetDaughterLabel ( Int_t  i) const
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 75 of file AliAODMCParticle.h.

virtual Int_t AliAODMCParticle::GetFirstDaughter ( ) const
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 80 of file AliAODMCParticle.h.

virtual UInt_t AliAODMCParticle::GetFlag ( ) const
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 90 of file AliAODMCParticle.h.

virtual Short_t AliAODMCParticle::GetGeneratorIndex ( ) const
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 87 of file AliAODMCParticle.h.

virtual Int_t AliAODMCParticle::GetLabel ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 66 of file AliAODMCParticle.h.

virtual Int_t AliAODMCParticle::GetLastDaughter ( ) const
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 81 of file AliAODMCParticle.h.

UInt_t AliAODMCParticle::GetMCProcessCode ( )
inline

Definition at line 141 of file AliAODMCParticle.h.

virtual Int_t AliAODMCParticle::GetMother ( ) const
inlinevirtual
virtual Int_t AliAODMCParticle::GetNDaughters ( ) const
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 76 of file AliAODMCParticle.h.

virtual Int_t AliAODMCParticle::GetPdgCode ( ) const
inlinevirtual

Definition at line 84 of file AliAODMCParticle.h.

Referenced by AliAODRecoDecay::MatchToMC(), and PdgCode().

virtual ULong64_t AliAODMCParticle::GetStatus ( ) const
inlinevirtual

bit shift by 16

Reimplemented from AliVParticle.

Definition at line 100 of file AliAODMCParticle.h.

Referenced by MCStatusCode(), and Print().

Bool_t AliAODMCParticle::IsPhysicalPrimary ( ) const
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 120 of file AliAODMCParticle.h.

Referenced by Print().

virtual Bool_t AliAODMCParticle::IsPrimary ( ) const
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 114 of file AliAODMCParticle.h.

Bool_t AliAODMCParticle::IsSecondaryFromMaterial ( ) const
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 132 of file AliAODMCParticle.h.

Bool_t AliAODMCParticle::IsSecondaryFromWeakDecay ( ) const
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 126 of file AliAODMCParticle.h.

Int_t AliAODMCParticle::Label ( ) const
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 231 of file AliAODMCParticle.h.

Referenced by GetLabel(), and Momentum().

Double_t AliAODMCParticle::M ( ) const
virtual

return the mass

Implements AliVParticle.

Definition at line 123 of file AliAODMCParticle.cxx.

Referenced by Momentum().

virtual UInt_t AliAODMCParticle::MCStatusCode ( ) const
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 107 of file AliAODMCParticle.h.

virtual void AliAODMCParticle::Momentum ( TLorentzVector &  lv)
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 44 of file AliAODMCParticle.h.

Double_t AliAODMCParticle::OneOverPt ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 201 of file AliAODMCParticle.h.

Referenced by Momentum().

AliAODMCParticle & AliAODMCParticle::operator= ( const AliAODMCParticle mcPart)

assignment operator

Definition at line 96 of file AliAODMCParticle.cxx.

Referenced by ~AliAODMCParticle().

Double_t AliAODMCParticle::P ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 200 of file AliAODMCParticle.h.

Referenced by Eta(), Theta(), and ~AliAODMCParticle().

virtual Int_t AliAODMCParticle::PdgCode ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 85 of file AliAODMCParticle.h.

Double_t AliAODMCParticle::Phi ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 203 of file AliAODMCParticle.h.

Referenced by Momentum(), and TestAOD().

virtual const Double_t* AliAODMCParticle::PID ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 69 of file AliAODMCParticle.h.

void AliAODMCParticle::Print ( const Option_t *  opt = "") const
virtual

Print particle information

Definition at line 148 of file AliAODMCParticle.cxx.

Referenced by GetLastDaughter().

Double_t AliAODMCParticle::Pt ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 199 of file AliAODMCParticle.h.

Referenced by OneOverPt(), and ~AliAODMCParticle().

Double_t AliAODMCParticle::Px ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 196 of file AliAODMCParticle.h.

Referenced by GetCalcMass(), AliAODRecoDecay::MatchToMC(), Momentum(), and ~AliAODMCParticle().

Bool_t AliAODMCParticle::PxPyPz ( Double_t  p[3]) const
inlinevirtual

Implements AliVParticle.

Definition at line 202 of file AliAODMCParticle.h.

Referenced by ~AliAODMCParticle().

Double_t AliAODMCParticle::Py ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 197 of file AliAODMCParticle.h.

Referenced by GetCalcMass(), AliAODRecoDecay::MatchToMC(), Momentum(), and ~AliAODMCParticle().

Double_t AliAODMCParticle::Pz ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 198 of file AliAODMCParticle.h.

Referenced by GetCalcMass(), AliAODRecoDecay::MatchToMC(), Momentum(), Y(), and ~AliAODMCParticle().

virtual void AliAODMCParticle::SetDaughter ( Int_t  i,
Int_t  id 
)
inlinevirtual

Definition at line 73 of file AliAODMCParticle.h.

Referenced by AliAODHandler::StoreMCParticles().

virtual void AliAODMCParticle::SetFlag ( UInt_t  flag)
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 89 of file AliAODMCParticle.h.

virtual void AliAODMCParticle::SetGeneratorIndex ( Short_t  i)
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 86 of file AliAODMCParticle.h.

void AliAODMCParticle::SetMCProcessCode ( UInt_t  mcProcess)
inline

Definition at line 135 of file AliAODMCParticle.h.

Referenced by AliAODHandler::StoreMCParticles().

void AliAODMCParticle::SetMCStatusCode ( Int_t  status)
inline

Definition at line 106 of file AliAODMCParticle.h.

virtual void AliAODMCParticle::SetMother ( Int_t  im)
inlinevirtual

Definition at line 77 of file AliAODMCParticle.h.

Referenced by AliAODHandler::StoreMCParticles().

void AliAODMCParticle::SetPhysicalPrimary ( Bool_t  b = kTRUE)
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 116 of file AliAODMCParticle.h.

void AliAODMCParticle::SetPrimary ( Bool_t  b = kTRUE)
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 110 of file AliAODMCParticle.h.

void AliAODMCParticle::SetSecondaryFromMaterial ( Bool_t  b = kTRUE)
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 128 of file AliAODMCParticle.h.

void AliAODMCParticle::SetSecondaryFromWeakDecay ( Bool_t  b = kTRUE)
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 122 of file AliAODMCParticle.h.

void AliAODMCParticle::SetStatus ( Int_t  status)
inline

Definition at line 94 of file AliAODMCParticle.h.

Referenced by SetMCStatusCode(), and AliAODHandler::StoreMCParticles().

static const char* AliAODMCParticle::StdBranchName ( )
inlinestatic
Double_t AliAODMCParticle::T ( ) const
inlinevirtual

Definition at line 209 of file AliAODMCParticle.h.

Referenced by Momentum().

Double_t AliAODMCParticle::Theta ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 204 of file AliAODMCParticle.h.

Referenced by Momentum().

Double_t AliAODMCParticle::Tv ( ) const
inlinevirtual

Reimplemented from AliVParticle.

Definition at line 210 of file AliAODMCParticle.h.

Referenced by Momentum().

Double_t AliAODMCParticle::Xv ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 205 of file AliAODMCParticle.h.

Referenced by Momentum().

Bool_t AliAODMCParticle::XvYvZv ( Double_t  x[3]) const
inlinevirtual

Implements AliVParticle.

Definition at line 208 of file AliAODMCParticle.h.

Referenced by Momentum().

Double_t AliAODMCParticle::Y ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 219 of file AliAODMCParticle.h.

Referenced by Momentum().

Double_t AliAODMCParticle::Yv ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 206 of file AliAODMCParticle.h.

Referenced by Momentum().

Double_t AliAODMCParticle::Zv ( ) const
inlinevirtual

Implements AliVParticle.

Definition at line 207 of file AliAODMCParticle.h.

Referenced by Momentum().

Member Data Documentation

Int_t AliAODMCParticle::fDaughter[2]
private

Indices of the daughter particles.

Definition at line 160 of file AliAODMCParticle.h.

Referenced by AliAODMCParticle(), GetDaughter(), GetFirstDaughter(), GetLastDaughter(), GetNDaughters(), operator=(), Print(), and SetDaughter().

Double32_t AliAODMCParticle::fE
private

Energy.

Definition at line 164 of file AliAODMCParticle.h.

Referenced by E(), and operator=().

UInt_t AliAODMCParticle::fFlag
private

Flag for indication of primary etc, Status code in the upper 16 bits 17-32, MC process id (AKA UniqueID) in bins 16-9)

Definition at line 157 of file AliAODMCParticle.h.

Referenced by GetFlag(), GetMCProcessCode(), GetStatus(), IsPhysicalPrimary(), IsPrimary(), IsSecondaryFromMaterial(), IsSecondaryFromWeakDecay(), operator=(), SetFlag(), SetMCProcessCode(), SetPhysicalPrimary(), SetPrimary(), SetSecondaryFromMaterial(), SetSecondaryFromWeakDecay(), and SetStatus().

Short_t AliAODMCParticle::fGeneratorIndex
private

! Index of generator in cocktail

Definition at line 174 of file AliAODMCParticle.h.

Referenced by GetGeneratorIndex(), operator=(), and SetGeneratorIndex().

TString AliAODMCParticle::fgkStdBranchName
staticprivate

Standard branch name.

Definition at line 153 of file AliAODMCParticle.h.

Referenced by StdBranchName().

Int_t AliAODMCParticle::fLabel
private

Label of the original MCParticle.

Definition at line 158 of file AliAODMCParticle.h.

Referenced by Label(), and operator=().

Int_t AliAODMCParticle::fMother
private

Index of the mother particles.

Definition at line 159 of file AliAODMCParticle.h.

Referenced by GetMother(), operator=(), Print(), and SetMother().

Int_t AliAODMCParticle::fPdgCode
private

PDG code of the particle.

Definition at line 156 of file AliAODMCParticle.h.

Referenced by Charge(), GetPdgCode(), M(), operator=(), and Print().

Double32_t AliAODMCParticle::fPx
private

x component of momentum

Definition at line 161 of file AliAODMCParticle.h.

Referenced by operator=(), P(), Phi(), Print(), Pt(), Px(), and PxPyPz().

Double32_t AliAODMCParticle::fPy
private

y component of momentum

Definition at line 162 of file AliAODMCParticle.h.

Referenced by operator=(), P(), Phi(), Print(), Pt(), PxPyPz(), and Py().

Double32_t AliAODMCParticle::fPz
private

z component of momentum

Definition at line 163 of file AliAODMCParticle.h.

Referenced by Eta(), operator=(), P(), Print(), PxPyPz(), Pz(), and Theta().

Double32_t AliAODMCParticle::fVt
private

t of production vertex

Definition at line 173 of file AliAODMCParticle.h.

Referenced by operator=(), Print(), T(), and Tv().

Double32_t AliAODMCParticle::fVx
private

x of production vertex

Definition at line 167 of file AliAODMCParticle.h.

Referenced by operator=(), Print(), Xv(), and XvYvZv().

Double32_t AliAODMCParticle::fVy
private

y of production vertex

Definition at line 169 of file AliAODMCParticle.h.

Referenced by operator=(), Print(), XvYvZv(), and Yv().

Double32_t AliAODMCParticle::fVz
private

z of production vertex

Definition at line 171 of file AliAODMCParticle.h.

Referenced by operator=(), Print(), XvYvZv(), and Zv().


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