Belle II Software light-2406-ragdoll
EvtGenParticlePDG Class Reference

Helper class for setting additional TParticlePDG members and storing the ones it doesn't have yet. More...

#include <EvtGenParticlePDG.h>

Inheritance diagram for EvtGenParticlePDG:
Collaboration diagram for EvtGenParticlePDG:

Public Member Functions

 EvtGenParticlePDG (const char *name, const char *title, Double_t mass, Bool_t stable, Double_t width, Double_t charge, const char *ParticleClass, Int_t PDGcode, Int_t Anti, Int_t TrackingCode, Double_t Lifetime, Double_t Spin, Double_t maxWidth, int pythiaID)
 Construct with all values.
 
Double_t MaxWidth () const
 Return max width (max_Dm in evt.pdl)
 
Int_t PythiaID () const
 Return pythia id of this particle.
 
std::string __repr__ () const
 Return a string repesentation of this particle to be used when printing the particle in python.
 

Protected Member Functions

 ClassDef (EvtGenParticlePDG, 1)
 ROOT Dictionary.
 

Protected Attributes

Double_t m_maxWidth {0}
 max width of the particle (max_Dm in evt.pdl)
 
Int_t m_pythiaID {0}
 pythia id of the particle
 

Detailed Description

Helper class for setting additional TParticlePDG members and storing the ones it doesn't have yet.

ROOT defines the members for lifteme a but has no way to set them, so let's make a class which has. Also we need a few additional members to represent all data in evtgen/evt.pdl

Definition at line 22 of file EvtGenParticlePDG.h.

Constructor & Destructor Documentation

◆ EvtGenParticlePDG()

EvtGenParticlePDG ( const char *  name,
const char *  title,
Double_t  mass,
Bool_t  stable,
Double_t  width,
Double_t  charge,
const char *  ParticleClass,
Int_t  PDGcode,
Int_t  Anti,
Int_t  TrackingCode,
Double_t  Lifetime,
Double_t  Spin,
Double_t  maxWidth,
int  pythiaID 
)
inline

Construct with all values.

Definition at line 25 of file EvtGenParticlePDG.h.

27 :
28 TParticlePDG(name, title, mass, stable, width, charge, ParticleClass, PDGcode, Anti, TrackingCode),
29 m_maxWidth(maxWidth), m_pythiaID(pythiaID)
30 {
31 // override members in base class
32 fLifetime = Lifetime;
33 fSpin = Spin;
34 }
Double_t m_maxWidth
max width of the particle (max_Dm in evt.pdl)
Int_t m_pythiaID
pythia id of the particle

Member Function Documentation

◆ MaxWidth()

Double_t MaxWidth ( ) const
inline

Return max width (max_Dm in evt.pdl)

Definition at line 36 of file EvtGenParticlePDG.h.

36{ return m_maxWidth; }

◆ PythiaID()

Int_t PythiaID ( ) const
inline

Return pythia id of this particle.

Definition at line 38 of file EvtGenParticlePDG.h.

38{ return m_pythiaID; }

Member Data Documentation

◆ m_maxWidth

Double_t m_maxWidth {0}
protected

max width of the particle (max_Dm in evt.pdl)

Definition at line 43 of file EvtGenParticlePDG.h.

◆ m_pythiaID

Int_t m_pythiaID {0}
protected

pythia id of the particle

Definition at line 45 of file EvtGenParticlePDG.h.


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