Definition at line 36 of file PhotosHepMC3Particle.h.
|
void | clear (std::vector< PhotosParticle *> v) |
|
◆ PhotosHepMC3Particle() [1/3]
◆ PhotosHepMC3Particle() [2/3]
Constructor which keeps a pointer to the GenParticle
◆ PhotosHepMC3Particle() [3/3]
Constructor which creates a new GenParticle and sets the properties pdg_id, statu and mass.
◆ ~PhotosHepMC3Particle()
◆ addDaughter()
void addDaughter |
( |
PhotosParticle * |
daughter | ) |
|
Add a new daughter to the end vertex of this particle
◆ checkMomentumConservation()
bool checkMomentumConservation |
( |
| ) |
|
check that the 4 momentum in conserved at the vertices producing and ending this particle
◆ clear()
void clear |
( |
std::vector< PhotosParticle *> |
v | ) |
|
|
private |
Internal function used to clear particles from the vector
◆ createHistoryEntry()
void createHistoryEntry |
( |
| ) |
|
Create history entry for HepMC event record. Creates copy of this particle with status = 3
◆ createNewParticle()
PhotosHepMC3Particle* createNewParticle |
( |
int |
pdg_id, |
|
|
int |
status, |
|
|
double |
mass, |
|
|
double |
px, |
|
|
double |
py, |
|
|
double |
pz, |
|
|
double |
e |
|
) |
| |
◆ createSelfDecayVertex()
void createSelfDecayVertex |
( |
PhotosParticle * |
out | ) |
|
Create a self-decay vertex for this particle with 'out' being the outgoing particle in new vertex
◆ getAllDecayProducts()
std::vector<PhotosParticle*> getAllDecayProducts |
( |
| ) |
|
Returns all particles in the decay tree of this particle via a vector of PhotosParticle
◆ getBarcode()
Get the barcode of this particle
◆ getDaughters()
std::vector<PhotosParticle*> getDaughters |
( |
| ) |
|
Returns the daughters of this particle via a vector of PhotosParticle IMPORTANT: this method will remeber list from the first call. Particles (e.g. photons) added later will be ignored
◆ getE()
Returns the energy component of the four vector
◆ getHepMC3()
GenParticlePtr getHepMC3 |
( |
| ) |
|
return the GenParticlePtr
◆ getMass()
Returns the mass taken from event record
◆ getMothers()
std::vector<PhotosParticle*> getMothers |
( |
| ) |
|
Returns the mothers of this particle via a vector of PhotosParticle
◆ getPdgID()
Get the PDG ID code of this particle
◆ getPx()
Returns the px component of the four vector
◆ getPy()
Returns the py component of the four vector
◆ getPz()
Returns the pz component of the four vector
◆ getStatus()
Get the status of this particle
◆ print()
Print some information about this particle to standard output
◆ setDaughters()
void setDaughters |
( |
std::vector< PhotosParticle *> |
daughters | ) |
|
Set the daughters of this particle via a vector of PhotosParticle
◆ setE()
Set the energy component of the four vector
◆ setMass()
void setMass |
( |
double |
mass | ) |
|
Set the mass of this particle
◆ setMothers()
void setMothers |
( |
std::vector< PhotosParticle *> |
mothers | ) |
|
Set the mothers of this particle via a vector of PhotosParticle
◆ setPdgID()
void setPdgID |
( |
int |
pdg_id | ) |
|
Set the PDG ID code of this particle
◆ setPx()
Set the px component of the four vector
◆ setPy()
Set the px component of the four vector
◆ setPz()
Set the pz component of the four vector
◆ setStatus()
void setStatus |
( |
int |
statu | ) |
|
Set the status of this particle
◆ m_created_particles
std::vector<PhotosParticle*> m_created_particles |
|
private |
list to keep track of new particles which have been created from this one, so we can call their destructor later
Definition at line 165 of file PhotosHepMC3Particle.h.
◆ m_daughters
std::vector<PhotosParticle*> m_daughters |
|
private |
◆ m_decay_products
std::vector<PhotosParticle*> m_decay_products |
|
private |
◆ m_mothers
std::vector<PhotosParticle*> m_mothers |
|
private |
◆ m_particle
GenParticlePtr m_particle |
|
private |
The documentation for this class was generated from the following file: