#include <MyTruthParticle.h>
Inheritance diagram for MyTruthParticle:
Public Member Functions | |
MyTruthParticle (void) | |
Default constructor: all private variables are set to 0. | |
MyTruthParticle (const TLorentzVector &p, const double &charge, const int &pdgId, const int &barcode, const int &status, const int &nParents, const int &nDaughters, const int &mother0_barcode, const int &mother0_pdgId, const int &index) | |
int | barcode (void) const |
> Constructor: store the fourmomentum p of the TruthParticle. get the barcode | |
int | status (void) const |
< get the PDG-ID get the status | |
int | nParents (void) const |
int | nDaughters (void) const |
int | mother0_barcode (void) const |
int | mother0_pdgId (void) const |
double | Et_in_cone (const int &delta_R_index) const |
void | set_Et_in_cone (const double Et_cone[8]) |
set the transverse energy in a cone | |
void | PrintParticle (std::string option="") |
print truthparticle properties | |
Private Member Functions | |
void | init (const TLorentzVector &p, const double &charge, const int &pdgId, const int &barcode, const int &status, const int &nParents, const int &nDaughters, const int &mother0_barcode, const int &mother0_pdgId, const int &index) |
Private Attributes | |
int | m_barcode |
int | m_status |
int | m_nParents |
int | m_nDaughters |
int | m_mother0_barcode |
int | m_mother0_pdgId |
double | m_Et_cone [5] |
Definition at line 34 of file MyTruthParticle.h.
int MyTruthParticle::nParents | ( | void | ) | const [inline] |
get the number of Parents this particle was made from
Definition at line 90 of file MyTruthParticle.ixx.
int MyTruthParticle::nDaughters | ( | void | ) | const [inline] |
get the number of Daughters this particle decayed to
Definition at line 102 of file MyTruthParticle.ixx.
int MyTruthParticle::mother0_barcode | ( | void | ) | const [inline] |
get the barcode of the first mother particle
Definition at line 114 of file MyTruthParticle.ixx.
int MyTruthParticle::mother0_pdgId | ( | void | ) | const [inline] |
get the PDG-ID of the first mother particle
Definition at line 126 of file MyTruthParticle.ixx.
double MyTruthParticle::Et_in_cone | ( | const int & | delta_R_index | ) | const [inline] |
get the transverse energy in a cone; delta_R_index = 0: a cone of 0.1, delta_R_index = 1: a cone of 0.2, delta_R_index = 2: a cone of 0.3, delta_R_index = 3: a cone of 0.4, delta_R_index = 4: a cone of 0.45,
Definition at line 138 of file MyTruthParticle.ixx.