manchester::MTruthParticle Class Reference

Truth Particle Class. More...

#include <MTruthParticle.h>

Inheritance diagram for manchester::MTruthParticle:

Inheritance graph
[legend]
Collaboration diagram for manchester::MTruthParticle:

Collaboration graph
[legend]
List of all members.

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.
MTruthParticleGetDaughter (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.

Detailed Description

Truth Particle Class.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
Generated on Thu Jun 30 11:40:32 2011 for manTreeSFrame by  doxygen 1.4.7