|
void | clear (std::vector< PhotosParticle * > v) |
|
Definition at line 34 of file PhotosHepMC3Particle.h.
Constructor which keeps a pointer to the GenParticle
Constructor which creates a new GenParticle and sets the properties pdg_id, statu and mass.
void addDaughter |
( |
PhotosParticle * |
daughter | ) |
|
Add a new daughter to the end vertex of this particle
bool checkMomentumConservation |
( |
| ) |
|
check that the 4 momentum in conserved at the vertices producing and ending this particle
void clear |
( |
std::vector< PhotosParticle * > |
v | ) |
|
|
private |
Internal function used to clear particles from the vector
void createHistoryEntry |
( |
| ) |
|
Create history entry for HepMC event record. Creates copy of this particle with status = 3
PhotosHepMC3Particle* createNewParticle |
( |
int |
pdg_id, |
|
|
int |
status, |
|
|
double |
mass, |
|
|
double |
px, |
|
|
double |
py, |
|
|
double |
pz, |
|
|
double |
e |
|
) |
| |
void createSelfDecayVertex |
( |
PhotosParticle * |
out | ) |
|
Create a self-decay vertex for this particle with 'out' being the outgoing particle in new vertex
std::vector<PhotosParticle*> getAllDecayProducts |
( |
| ) |
|
Returns all particles in the decay tree of this particle via a vector of PhotosParticle
Get the barcode of this particle
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
Returns the energy component of the four vector
GenParticlePtr getHepMC3 |
( |
| ) |
|
return the GenParticlePtr
Returns the mass taken from event record
std::vector<PhotosParticle*> getMothers |
( |
| ) |
|
Returns the mothers of this particle via a vector of PhotosParticle
Get the PDG ID code of this particle
Returns the px component of the four vector
Returns the py component of the four vector
Returns the pz component of the four vector
Get the status of this particle
Print some information about this particle to standard output
void setDaughters |
( |
std::vector< PhotosParticle * > |
daughters | ) |
|
Set the daughters of this particle via a vector of PhotosParticle
Set the energy component of the four vector
void setMass |
( |
double |
mass | ) |
|
Set the mass of this particle
void setMothers |
( |
std::vector< PhotosParticle * > |
mothers | ) |
|
Set the mothers of this particle via a vector of PhotosParticle
void setPdgID |
( |
int |
pdg_id | ) |
|
Set the PDG ID code of this particle
Set the px component of the four vector
Set the px component of the four vector
Set the pz component of the four vector
void setStatus |
( |
int |
statu | ) |
|
Set the status of this particle
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 163 of file PhotosHepMC3Particle.h.
std::vector<PhotosParticle*> m_daughters |
|
private |
std::vector<PhotosParticle*> m_decay_products |
|
private |
std::vector<PhotosParticle*> m_mothers |
|
private |
GenParticlePtr m_particle |
|
private |
The documentation for this class was generated from the following file: