#include <MTruthParticle.h>
Inheritance diagram for manchester::MTruthParticle:
Public Member Functions | |
MTruthParticle () | |
Default Jet Constructor. | |
MTruthParticle (Double_t px, Double_t py, Double_t pz, Double_t E, Int_t status, Int_t pdg) | |
Constructor for the 4 vector. Optionally takes the status code and PDG ID also. | |
MTruthParticle (const TLorentzVector &vec) | |
Constructor for TLorentzVector. | |
MTruthParticle (const MTruthParticle &tp) | |
Copy Constuctor. | |
void | SetStatusCode (Int_t inp) |
Set the Status Code for this particle. | |
Int_t | GetStatusCode () const |
Get hold of the Status Code for this Particle. | |
void | SetPDGID (Int_t inp) |
Set the PDG ID for this Truth Particle. | |
Int_t | GetPDGID () const |
Get hold of the PDG ID for this Truth Particle. | |
void | SetBarcode (Int_t bc) |
Set the barcode for this Truth Particle. | |
Int_t | GetBarcode () const |
Get the barcode for this Truth Particle. | |
void | AddDaughter (MTruthParticle *part) |
Add a daughter. | |
Int_t | GetNDaughters () const |
Get number of daughters. | |
MTruthParticle * | GetDaughter (Int_t i) const |
Get a daughter. | |
UInt_t | GetMCType () const |
Get type of MC particle. | |
UInt_t | GetMCOrigin () const |
Get Origin of MC particle. | |
virtual std::string | Type () const |
So we know what type of particle this is at run time. | |
Protected Member Functions | |
virtual void | Reset () |
Reset function. |
MTruthParticle::MTruthParticle | ( | Double_t | px, | |
Double_t | py, | |||
Double_t | pz, | |||
Double_t | E, | |||
Int_t | status = 0 , |
|||
Int_t | pdg = 0 | |||
) |
Constructor for the 4 vector. Optionally takes the status code and PDG ID also.
Constructor where the user can define the four momentum components. Also it optionally takes the status code and PDG ID of the particle.
MTruthParticle::MTruthParticle | ( | const MTruthParticle & | tp | ) |
Copy Constuctor.
Copy constructor.
UInt_t MTruthParticle::GetMCOrigin | ( | ) | const |
Get Origin of MC particle.
Return MC origin see ParticleOrigin in http://alxr.usatlas.bnl.gov/lxr/source/atlas/PhysicsAnalysis/MCTruthClassifier/MCTruthClassifier/MCTruthClassifierDefs.h for definition
UInt_t MTruthParticle::GetMCType | ( | ) | const |
Get type of MC particle.
Return MC type see ParticleType in http://alxr.usatlas.bnl.gov/lxr/source/atlas/PhysicsAnalysis/MCTruthClassifier/MCTruthClassifier/MCTruthClassifierDefs.h for definition
string MTruthParticle::Type | ( | ) | const [virtual] |
So we know what type of particle this is at run time.
At run time we may have a vector<MParticle*> which could for example contain both electrons and muons. This function lets you know which particle it is.
Reimplemented from manchester::MParticle.