PhotosHepMC3Particle Class Reference
Inheritance diagram for PhotosHepMC3Particle:
Inheritance graph
Collaboration diagram for PhotosHepMC3Particle:
Collaboration graph

Public Member Functions

 PhotosHepMC3Particle ()
 
 PhotosHepMC3Particle (GenParticlePtr particle)
 
 PhotosHepMC3Particle (int pdg_id, int status, double mass)
 
 ~PhotosHepMC3Particle ()
 
GenParticlePtr getHepMC3 ()
 
void setMothers (std::vector< PhotosParticle * > mothers)
 
void setDaughters (std::vector< PhotosParticle * > daughters)
 
void addDaughter (PhotosParticle *daughter)
 
std::vector< PhotosParticle * > getMothers ()
 
std::vector< PhotosParticle * > getDaughters ()
 
std::vector< PhotosParticle * > getAllDecayProducts ()
 
void setPdgID (int pdg_id)
 
void setStatus (int statu)
 
void setMass (double mass)
 
int getPdgID ()
 
int getStatus ()
 
int getBarcode ()
 
bool checkMomentumConservation ()
 
PhotosHepMC3ParticlecreateNewParticle (int pdg_id, int status, double mass, double px, double py, double pz, double e)
 
void createHistoryEntry ()
 
void createSelfDecayVertex (PhotosParticle *out)
 
void print ()
 
double getPx ()
 
double getPy ()
 
double getPz ()
 
double getE ()
 
double getMass ()
 
void setPx (double px)
 
void setPy (double py)
 
void setPz (double pz)
 
void setE (double e)
 
 PhotosHepMC3Particle ()
 
 PhotosHepMC3Particle (GenParticlePtr particle)
 
 PhotosHepMC3Particle (int pdg_id, int status, double mass)
 
 ~PhotosHepMC3Particle ()
 
GenParticlePtr getHepMC3 ()
 
void setMothers (std::vector< PhotosParticle * > mothers)
 
void setDaughters (std::vector< PhotosParticle * > daughters)
 
void addDaughter (PhotosParticle *daughter)
 
std::vector< PhotosParticle * > getMothers ()
 
std::vector< PhotosParticle * > getDaughters ()
 
std::vector< PhotosParticle * > getAllDecayProducts ()
 
void setPdgID (int pdg_id)
 
void setStatus (int statu)
 
void setMass (double mass)
 
int getPdgID ()
 
int getStatus ()
 
int getBarcode ()
 
bool checkMomentumConservation ()
 
PhotosHepMC3ParticlecreateNewParticle (int pdg_id, int status, double mass, double px, double py, double pz, double e)
 
void createHistoryEntry ()
 
void createSelfDecayVertex (PhotosParticle *out)
 
void print ()
 
double getPx ()
 
double getPy ()
 
double getPz ()
 
double getE ()
 
double getMass ()
 
void setPx (double px)
 
void setPy (double py)
 
void setPz (double pz)
 
void setE (double e)
 
bool hasDaughters ()
 
bool hasDaughters ()
 
PhotosParticlefindLastSelf ()
 
PhotosParticlefindLastSelf ()
 
std::vector< PhotosParticle * > findProductionMothers ()
 
std::vector< PhotosParticle * > findProductionMothers ()
 
std::vector< PhotosParticle * > getDecayTree ()
 
std::vector< PhotosParticle * > getDecayTree ()
 
void boostToRestFrame (PhotosParticle *boost)
 
void boostToRestFrame (PhotosParticle *boost)
 
void boostDaughtersToRestFrame (PhotosParticle *boost)
 
void boostDaughtersToRestFrame (PhotosParticle *boost)
 
void boostFromRestFrame (PhotosParticle *boost)
 
void boostFromRestFrame (PhotosParticle *boost)
 
void boostDaughtersFromRestFrame (PhotosParticle *boost)
 
void boostDaughtersFromRestFrame (PhotosParticle *boost)
 
void boostAlongZ (double pz, double e)
 
void boostAlongZ (double pz, double e)
 
void rotate (int axis, double phi, int second_axis=Z_AXIS)
 
void rotate (int axis, double phi, int second_axis=Z_AXIS)
 
void rotateDaughters (int axis, double phi, int second_axis=Z_AXIS)
 
void rotateDaughters (int axis, double phi, int second_axis=Z_AXIS)
 
double getRotationAngle (int axis, int second_axis=Z_AXIS)
 
double getRotationAngle (int axis, int second_axis=Z_AXIS)
 
double getP ()
 
double getP (int axis)
 
double getP ()
 
double getP (int axis)
 
void setP (int axis, double p_component)
 
void setP (int axis, double p_component)
 
virtual double getVirtuality ()
 
virtual double getVirtuality ()
 

Static Public Attributes

static const int STABLE =1
 
static const int DECAYED =2
 
static const int HISTORY =3
 
static const int X_AXIS =1
 
static const int Y_AXIS =2
 
static const int Z_AXIS =3
 
static const int Z0 = 23
 
static const int HIGGS = 25
 
static const int HIGGS_H = 35
 
static const int HIGGS_A = 36
 
static const int HIGGS_PLUS = 37
 
static const int HIGGS_MINUS = -37
 
static const int W_PLUS = 24
 
static const int W_MINUS = -24
 
static const int GAMMA = 22
 
static const int TAU_PLUS = -15
 
static const int TAU_MINUS = 15
 
static const int TAU_NEUTRINO = 16
 
static const int TAU_ANTINEUTRINO = -16
 
static const int MUON_PLUS = -13
 
static const int MUON_MINUS = 13
 
static const int MUON_NEUTRINO = 14
 
static const int MUON_ANTINEUTRINO = -14
 
static const int POSITRON = -11
 
static const int ELECTRON = 11
 
static const int ELECTRON_NEUTRINO = 12
 
static const int ELECTRON_ANTINEUTRINO = -12
 
static const int UP = 2
 
static const int ANTIUP = -2
 
static const int DOWN = 1
 
static const int ANTIDOWN = -1
 
static const int OTHER = 0
 

Private Member Functions

void clear (std::vector< PhotosParticle * > v)
 
void clear (std::vector< PhotosParticle * > v)
 

Private Attributes

GenParticlePtr m_particle
 
std::vector< PhotosParticle * > m_mothers
 
std::vector< PhotosParticle * > m_daughters
 
std::vector< PhotosParticle * > m_decay_products
 
std::vector< PhotosParticle * > m_created_particles
 

Detailed Description

Constructor & Destructor Documentation

◆ PhotosHepMC3Particle() [1/6]

General constructor

Definition at line 14 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ PhotosHepMC3Particle() [2/6]

PhotosHepMC3Particle ( GenParticlePtr particle)

Constructor which keeps a pointer to the GenParticle

Definition at line 25 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ PhotosHepMC3Particle() [3/6]

PhotosHepMC3Particle ( int pdg_id,
int status,
double mass )

Constructor which creates a new GenParticle and sets the properties pdg_id, statu and mass.

Definition at line 18 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ ~PhotosHepMC3Particle() [1/2]

Destructor

Definition at line 29 of file PhotosHepMC3Particle.cxx.

References clear(), m_daughters, and m_mothers.

◆ PhotosHepMC3Particle() [4/6]

General constructor

◆ PhotosHepMC3Particle() [5/6]

PhotosHepMC3Particle ( GenParticlePtr particle)

Constructor which keeps a pointer to the GenParticle

◆ PhotosHepMC3Particle() [6/6]

PhotosHepMC3Particle ( int pdg_id,
int status,
double mass )

Constructor which creates a new GenParticle and sets the properties pdg_id, statu and mass.

◆ ~PhotosHepMC3Particle() [2/2]

Destructor

Member Function Documentation

◆ addDaughter() [1/2]

void addDaughter ( PhotosParticle * daughter)
virtual

Add a new daughter to the end vertex of this particle

Implements PhotosParticle.

Definition at line 96 of file PhotosHepMC3Particle.cxx.

References Log::Fatal(), getHepMC3(), m_daughters, m_particle, and PhotosHepMC3Particle().

◆ addDaughter() [2/2]

void addDaughter ( PhotosParticle * daughter)
virtual

Add a new daughter to the end vertex of this particle

Implements PhotosParticle.

◆ boostAlongZ() [1/2]

void boostAlongZ ( double boost_pz,
double boost_e )
inherited

Do a Lorenz transformation along the Z axis.

Boost this vector along the Z direction. Assume no momentum components in the X or Y directions.

Definition at line 155 of file PhotosParticle.cxx.

References getE(), getPz(), setE(), and setPz().

◆ boostAlongZ() [2/2]

void boostAlongZ ( double pz,
double e )
inherited

Do a Lorenz transformation along the Z axis.

◆ boostDaughtersFromRestFrame() [1/2]

void boostDaughtersFromRestFrame ( PhotosParticle * boost)
inherited

Transform this particles four momentum from the lab frame to the rest frame of the parameter PhotosParticle.

Definition at line 63 of file PhotosParticle.cxx.

References getAllDecayProducts(), and hasDaughters().

◆ boostDaughtersFromRestFrame() [2/2]

void boostDaughtersFromRestFrame ( PhotosParticle * boost)
inherited

Transform this particles four momentum from the lab frame to the rest frame of the parameter PhotosParticle.

◆ boostDaughtersToRestFrame() [1/2]

void boostDaughtersToRestFrame ( PhotosParticle * boost)
inherited

Transform the four momentum of all the daughters recursively into the frame of the "particle" PhotosParticle.

Definition at line 80 of file PhotosParticle.cxx.

References getAllDecayProducts(), and hasDaughters().

◆ boostDaughtersToRestFrame() [2/2]

void boostDaughtersToRestFrame ( PhotosParticle * boost)
inherited

Transform the four momentum of all the daughters recursively into the frame of the "particle" PhotosParticle.

◆ boostFromRestFrame() [1/2]

void boostFromRestFrame ( PhotosParticle * boost)
inherited

Transform this particles four momentum from the rest frame of the paramter PhotosParticle, back into the lab frame.

Definition at line 114 of file PhotosParticle.cxx.

References boostAlongZ(), getE(), getP(), getRotationAngle(), rotate(), X_AXIS, and Y_AXIS.

◆ boostFromRestFrame() [2/2]

void boostFromRestFrame ( PhotosParticle * boost)
inherited

Transform this particles four momentum from the rest frame of the paramter PhotosParticle, back into the lab frame.

◆ boostToRestFrame() [1/2]

void boostToRestFrame ( PhotosParticle * boost)
inherited

Transform this particles four momentum from the lab frome into the rest frame of the paramter PhotosParticle.

Definition at line 98 of file PhotosParticle.cxx.

References boostAlongZ(), getE(), getP(), getRotationAngle(), rotate(), X_AXIS, and Y_AXIS.

◆ boostToRestFrame() [2/2]

void boostToRestFrame ( PhotosParticle * boost)
inherited

Transform this particles four momentum from the lab frome into the rest frame of the paramter PhotosParticle.

◆ checkMomentumConservation() [1/2]

bool checkMomentumConservation ( )
virtual

check that the 4 momentum in conserved at the vertices producing and ending this particle

Implements PhotosParticle.

Definition at line 219 of file PhotosHepMC3Particle.cxx.

References Photos::isStatusCodeIgnored(), m_particle, Photos::momentum_conservation_threshold, Log::RedirectOutput(), and Log::RevertOutput().

◆ checkMomentumConservation() [2/2]

bool checkMomentumConservation ( )
virtual

check that the 4 momentum in conserved at the vertices producing and ending this particle

Implements PhotosParticle.

◆ clear() [1/2]

void clear ( std::vector< PhotosParticle * > v)
private

Internal function used to clear particles from the vector

Definition at line 37 of file PhotosHepMC3Particle.cxx.

◆ clear() [2/2]

void clear ( std::vector< PhotosParticle * > v)
private

Internal function used to clear particles from the vector

References m_created_particles, m_daughters, m_decay_products, m_mothers, and m_particle.

◆ createHistoryEntry() [1/2]

void createHistoryEntry ( )
virtual

Create history entry for HepMC event record. Creates copy of this particle with status = 3

Implements PhotosParticle.

Definition at line 291 of file PhotosHepMC3Particle.cxx.

References Photos::historyEntriesStatus, and m_particle.

◆ createHistoryEntry() [2/2]

void createHistoryEntry ( )
virtual

Create history entry for HepMC event record. Creates copy of this particle with status = 3

Implements PhotosParticle.

◆ createNewParticle() [1/2]

PhotosHepMC3Particle * createNewParticle ( int pdg_id,
int status,
double mass,
double px,
double py,
double pz,
double e )
virtual

Create a new particle of type PhotosHepMC3Particle, with the given properties. The new particle bares no relations to this particle, but it provides a way of creating a instance of this derived class. eg. createNewParticle() is used inside filhep_() so that a PhotosHepMC3Particle can be created without the method having explicit knowledge of the PhotosHepMC3Particle class

Implements PhotosParticle.

Definition at line 275 of file PhotosHepMC3Particle.cxx.

References getHepMC3(), m_created_particles, and PhotosHepMC3Particle().

◆ createNewParticle() [2/2]

PhotosHepMC3Particle * createNewParticle ( int pdg_id,
int status,
double mass,
double px,
double py,
double pz,
double e )
virtual

Create a new particle of type PhotosHepMC3Particle, with the given properties. The new particle bares no relations to this particle, but it provides a way of creating a instance of this derived class. eg. createNewParticle() is used inside filhep_() so that a PhotosHepMC3Particle can be created without the method having explicit knowledge of the PhotosHepMC3Particle class

Implements PhotosParticle.

References PhotosHepMC3Particle().

◆ createSelfDecayVertex() [1/2]

void createSelfDecayVertex ( PhotosParticle * out)
virtual

Create a self-decay vertex for this particle with 'out' being the outgoing particle in new vertex

Implements PhotosParticle.

Definition at line 304 of file PhotosHepMC3Particle.cxx.

References getHepMC3(), getStatus(), m_particle, PhotosHepMC3Particle(), and setStatus().

◆ createSelfDecayVertex() [2/2]

void createSelfDecayVertex ( PhotosParticle * out)
virtual

Create a self-decay vertex for this particle with 'out' being the outgoing particle in new vertex

Implements PhotosParticle.

◆ findLastSelf() [1/2]

PhotosParticle * findLastSelf ( )
inherited

Traverse the event structure and find the final version of this particle which does not have a particle of it's own type as it's daughter. eg. Generally the final stable copy

Definition at line 16 of file PhotosParticle.cxx.

References getDaughters().

◆ findLastSelf() [2/2]

PhotosParticle * findLastSelf ( )
inherited

Traverse the event structure and find the final version of this particle which does not have a particle of it's own type as it's daughter. eg. Generally the final stable copy

◆ findProductionMothers() [1/2]

vector< PhotosParticle * > findProductionMothers ( )
inherited

Traverse the event structure and find the first set of mothers which are not of the same type as this particle.

Definition at line 31 of file PhotosParticle.cxx.

References getMothers().

◆ findProductionMothers() [2/2]

std::vector< PhotosParticle * > findProductionMothers ( )
inherited

Traverse the event structure and find the first set of mothers which are not of the same type as this particle.

◆ getAllDecayProducts() [1/2]

std::vector< PhotosParticle * > getAllDecayProducts ( )
virtual

Returns all particles in the decay tree of this particle via a vector of PhotosParticle

Implements PhotosParticle.

Definition at line 180 of file PhotosHepMC3Particle.cxx.

References getBarcode(), getDaughters(), PhotosParticle::hasDaughters(), and m_decay_products.

◆ getAllDecayProducts() [2/2]

std::vector< PhotosParticle * > getAllDecayProducts ( )
virtual

Returns all particles in the decay tree of this particle via a vector of PhotosParticle

Implements PhotosParticle.

◆ getBarcode() [1/2]

int getBarcode ( )
virtual

Get the barcode of this particle

Implements PhotosParticle.

Definition at line 270 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ getBarcode() [2/2]

int getBarcode ( )
virtual

Get the barcode of this particle

Implements PhotosParticle.

◆ getDaughters() [1/2]

std::vector< PhotosParticle * > getDaughters ( )
virtual

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

Implements PhotosParticle.

Definition at line 164 of file PhotosHepMC3Particle.cxx.

References Photos::isStatusCodeIgnored(), m_daughters, m_particle, and PhotosHepMC3Particle().

◆ getDaughters() [2/2]

std::vector< PhotosParticle * > getDaughters ( )
virtual

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

Implements PhotosParticle.

◆ getDecayTree() [1/2]

vector< PhotosParticle * > getDecayTree ( )
inherited

Return whole decay tree starting from this particle

Definition at line 45 of file PhotosParticle.cxx.

References getBarcode(), getDaughters(), getDecayTree(), and getMothers().

◆ getDecayTree() [2/2]

std::vector< PhotosParticle * > getDecayTree ( )
inherited

Return whole decay tree starting from this particle

◆ getE() [1/2]

double getE ( )
virtual

Returns the energy component of the four vector

Implements PhotosParticle.

Definition at line 353 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ getE() [2/2]

double getE ( )
virtual

Returns the energy component of the four vector

Implements PhotosParticle.

◆ getHepMC3() [1/2]

GenParticlePtr getHepMC3 ( )

return the GenParticlePtr

Definition at line 45 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ getHepMC3() [2/2]

GenParticlePtr getHepMC3 ( )

return the GenParticlePtr

◆ getMass() [1/2]

double getMass ( )
virtual

Returns the mass taken from event record

Implements PhotosParticle.

Definition at line 385 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ getMass() [2/2]

double getMass ( )
virtual

Returns the mass taken from event record

Implements PhotosParticle.

◆ getMothers() [1/2]

std::vector< PhotosParticle * > getMothers ( )
virtual

Returns the mothers of this particle via a vector of PhotosParticle

Implements PhotosParticle.

Definition at line 153 of file PhotosHepMC3Particle.cxx.

References m_mothers, m_particle, and PhotosHepMC3Particle().

◆ getMothers() [2/2]

std::vector< PhotosParticle * > getMothers ( )
virtual

Returns the mothers of this particle via a vector of PhotosParticle

Implements PhotosParticle.

◆ getP() [1/4]

double getP ( )
inherited

Get scalar momentum

Definition at line 202 of file PhotosParticle.cxx.

References getPx(), getPy(), and getPz().

◆ getP() [2/4]

double getP ( )
inherited

Get scalar momentum

◆ getP() [3/4]

double getP ( int axis)
inherited

Get momentum component in the direction of "axis" (x,y,z)

Definition at line 207 of file PhotosParticle.cxx.

References getPx(), getPy(), getPz(), X_AXIS, Y_AXIS, and Z_AXIS.

◆ getP() [4/4]

double getP ( int axis)
inherited

Get momentum component in the direction of "axis" (x,y,z)

◆ getPdgID() [1/2]

int getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements PhotosParticle.

Definition at line 262 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ getPdgID() [2/2]

int getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements PhotosParticle.

◆ getPx() [1/2]

double getPx ( )
inlinevirtual

Returns the px component of the four vector

Implements PhotosParticle.

Definition at line 341 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ getPx() [2/2]

double getPx ( )
virtual

Returns the px component of the four vector

Implements PhotosParticle.

◆ getPy() [1/2]

double getPy ( )
inlinevirtual

Returns the py component of the four vector

Implements PhotosParticle.

Definition at line 345 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ getPy() [2/2]

double getPy ( )
virtual

Returns the py component of the four vector

Implements PhotosParticle.

◆ getPz() [1/2]

double getPz ( )
virtual

Returns the pz component of the four vector

Implements PhotosParticle.

Definition at line 349 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ getPz() [2/2]

double getPz ( )
virtual

Returns the pz component of the four vector

Implements PhotosParticle.

◆ getRotationAngle() [1/2]

double getRotationAngle ( int axis,
int second_axis = Z_AXIS )
inherited

Returns the angle around the axis "axis" needed to rotate the four momenum is such a way that the non-Z component disappears and Z>0. This is used to in rotating the coordinate system into a frame with only a Z component before calling boostAlongZ().

Get the angle needed to rotate the 4 momentum vector so that the x (y) component disapears. (and the Z component is > 0)

if(getP(axis)==0){ if(getPz()>0) return 0; //no rotaion required else return M_PI; }

Definition at line 135 of file PhotosParticle.cxx.

References getP().

◆ getRotationAngle() [2/2]

double getRotationAngle ( int axis,
int second_axis = Z_AXIS )
inherited

Returns the angle around the axis "axis" needed to rotate the four momenum is such a way that the non-Z component disappears and Z>0. This is used to in rotating the coordinate system into a frame with only a Z component before calling boostAlongZ().

References Z_AXIS.

◆ getStatus() [1/2]

int getStatus ( )
virtual

Get the status of this particle

Implements PhotosParticle.

Definition at line 266 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ getStatus() [2/2]

int getStatus ( )
virtual

Get the status of this particle

Implements PhotosParticle.

◆ getVirtuality() [1/2]

double getVirtuality ( )
virtualinherited

Get sqrt(e^2-p^2)

Definition at line 193 of file PhotosParticle.cxx.

References getE(), and getP().

◆ getVirtuality() [2/2]

virtual double getVirtuality ( )
virtualinherited

Get sqrt(e^2-p^2)

◆ hasDaughters() [1/2]

bool hasDaughters ( )
inherited

Return whether the particle has any chidren

Definition at line 10 of file PhotosParticle.cxx.

References getDaughters().

◆ hasDaughters() [2/2]

bool hasDaughters ( )
inherited

Return whether the particle has any chidren

◆ print() [1/2]

void print ( )
virtual

Print some information about this particle to standard output

Implements PhotosParticle.

Definition at line 334 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ print() [2/2]

void print ( )
virtual

Print some information about this particle to standard output

Implements PhotosParticle.

◆ rotate() [1/2]

void rotate ( int axis,
double theta,
int second_axis = Z_AXIS )
inherited

rotate this particles 4-momentum by an angle phi from the axisis "axis" towards the axis "second_axis".

Rotation around an axis X or Y

Definition at line 168 of file PhotosParticle.cxx.

References getP(), and setP().

◆ rotate() [2/2]

void rotate ( int axis,
double phi,
int second_axis = Z_AXIS )
inherited

rotate this particles 4-momentum by an angle phi from the axisis "axis" towards the axis "second_axis".

References Z_AXIS.

◆ rotateDaughters() [1/2]

void rotateDaughters ( int axis,
double phi,
int second_axis = Z_AXIS )
inherited

rotate 4-momentum of daughters of this particle by an angle phi from the axisis "axis" towards the axis "second_axis".

Definition at line 176 of file PhotosParticle.cxx.

References getDaughters(), and hasDaughters().

◆ rotateDaughters() [2/2]

void rotateDaughters ( int axis,
double phi,
int second_axis = Z_AXIS )
inherited

rotate 4-momentum of daughters of this particle by an angle phi from the axisis "axis" towards the axis "second_axis".

References Z_AXIS.

◆ setDaughters() [1/2]

void setDaughters ( std::vector< PhotosParticle * > daughters)
virtual

Set the daughters of this particle via a vector of PhotosParticle

Implements PhotosParticle.

References PhotosHepMC3Particle().

◆ setDaughters() [2/2]

void setDaughters ( std::vector< PhotosParticle * > daughters)
virtual

Set the daughters of this particle via a vector of PhotosParticle

Implements PhotosParticle.

◆ setE() [1/2]

void setE ( double e)
virtual

Set the energy component of the four vector

Implements PhotosParticle.

Definition at line 379 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ setE() [2/2]

void setE ( double e)
virtual

Set the energy component of the four vector

Implements PhotosParticle.

◆ setMass() [1/2]

void setMass ( double mass)
virtual

Set the mass of this particle

Implements PhotosParticle.

Definition at line 254 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ setMass() [2/2]

void setMass ( double mass)
virtual

Set the mass of this particle

Implements PhotosParticle.

◆ setMothers() [1/2]

void setMothers ( std::vector< PhotosParticle * > mothers)
virtual

Set the mothers of this particle via a vector of PhotosParticle

Implements PhotosParticle.

◆ setMothers() [2/2]

void setMothers ( std::vector< PhotosParticle * > mothers)
virtual

Set the mothers of this particle via a vector of PhotosParticle

Implements PhotosParticle.

◆ setP() [1/2]

void setP ( int axis,
double p_component )
inherited

Set momentum component in the direction of "axis" (x,y,z)

Definition at line 215 of file PhotosParticle.cxx.

References setPx(), setPy(), setPz(), X_AXIS, Y_AXIS, and Z_AXIS.

◆ setP() [2/2]

void setP ( int axis,
double p_component )
inherited

Set momentum component in the direction of "axis" (x,y,z)

◆ setPdgID() [1/2]

void setPdgID ( int pdg_id)
virtual

Set the PDG ID code of this particle

Implements PhotosParticle.

Definition at line 250 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ setPdgID() [2/2]

void setPdgID ( int pdg_id)
virtual

Set the PDG ID code of this particle

Implements PhotosParticle.

◆ setPx() [1/2]

void setPx ( double px)
virtual

Set the px component of the four vector

Implements PhotosParticle.

Definition at line 357 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ setPx() [2/2]

void setPx ( double px)
virtual

Set the px component of the four vector

Implements PhotosParticle.

◆ setPy() [1/2]

void setPy ( double py)
virtual

Set the px component of the four vector

Implements PhotosParticle.

Definition at line 366 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ setPy() [2/2]

void setPy ( double py)
virtual

Set the px component of the four vector

Implements PhotosParticle.

◆ setPz() [1/2]

void setPz ( double pz)
virtual

Set the pz component of the four vector

Implements PhotosParticle.

Definition at line 373 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ setPz() [2/2]

void setPz ( double pz)
virtual

Set the pz component of the four vector

Implements PhotosParticle.

◆ setStatus() [1/2]

void setStatus ( int statu)
virtual

Set the status of this particle

Implements PhotosParticle.

Definition at line 258 of file PhotosHepMC3Particle.cxx.

References m_particle.

◆ setStatus() [2/2]

void setStatus ( int statu)
virtual

Set the status of this particle

Implements PhotosParticle.

Field Documentation

◆ ANTIDOWN

static const int ANTIDOWN = -1
staticinherited

anti-down quark

Definition at line 119 of file include/Photos/PhotosParticle.h.

◆ ANTIUP

static const int ANTIUP = -2
staticinherited

anti-up quark

Definition at line 113 of file include/Photos/PhotosParticle.h.

◆ DECAYED

static const int DECAYED =2
staticinherited

Decayed particle status

Definition at line 32 of file include/Photos/PhotosParticle.h.

◆ DOWN

static const int DOWN = 1
staticinherited

down quark

Definition at line 116 of file include/Photos/PhotosParticle.h.

◆ ELECTRON

static const int ELECTRON = 11
staticinherited

e- particle

Definition at line 101 of file include/Photos/PhotosParticle.h.

◆ ELECTRON_ANTINEUTRINO

static const int ELECTRON_ANTINEUTRINO = -12
staticinherited

e antineutrino particle

Definition at line 107 of file include/Photos/PhotosParticle.h.

◆ ELECTRON_NEUTRINO

static const int ELECTRON_NEUTRINO = 12
staticinherited

e neutrino particle

Definition at line 104 of file include/Photos/PhotosParticle.h.

◆ GAMMA

static const int GAMMA = 22
staticinherited

photon

Definition at line 71 of file include/Photos/PhotosParticle.h.

◆ HIGGS

static const int HIGGS = 25
staticinherited

H particle

Definition at line 50 of file include/Photos/PhotosParticle.h.

◆ HIGGS_A

static const int HIGGS_A = 36
staticinherited

A0 particle

Definition at line 56 of file include/Photos/PhotosParticle.h.

◆ HIGGS_H

static const int HIGGS_H = 35
staticinherited

H0 particle

Definition at line 53 of file include/Photos/PhotosParticle.h.

◆ HIGGS_MINUS

static const int HIGGS_MINUS = -37
staticinherited

H- particle

Definition at line 62 of file include/Photos/PhotosParticle.h.

◆ HIGGS_PLUS

static const int HIGGS_PLUS = 37
staticinherited

H+ particle

Definition at line 59 of file include/Photos/PhotosParticle.h.

◆ HISTORY

static const int HISTORY =3
staticinherited

History particle status

Definition at line 35 of file include/Photos/PhotosParticle.h.

◆ 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 157 of file include/Photos/PhotosHepMC3Particle.h.

◆ m_daughters

std::vector< PhotosParticle * > m_daughters
private

A vector of this particles daughters

Definition at line 150 of file include/Photos/PhotosHepMC3Particle.h.

◆ m_decay_products

std::vector< PhotosParticle * > m_decay_products
private

A vector of all decay products of this particle

Definition at line 153 of file include/Photos/PhotosHepMC3Particle.h.

◆ m_mothers

std::vector< PhotosParticle * > m_mothers
private

A vector of this particles mothers

Definition at line 147 of file include/Photos/PhotosHepMC3Particle.h.

◆ m_particle

GenParticlePtr m_particle
private

A pointer to the GenParticle particle

Definition at line 144 of file include/Photos/PhotosHepMC3Particle.h.

◆ MUON_ANTINEUTRINO

static const int MUON_ANTINEUTRINO = -14
staticinherited

muon antineutrino particle

Definition at line 95 of file include/Photos/PhotosParticle.h.

◆ MUON_MINUS

static const int MUON_MINUS = 13
staticinherited

muon- particle

Definition at line 89 of file include/Photos/PhotosParticle.h.

◆ MUON_NEUTRINO

static const int MUON_NEUTRINO = 14
staticinherited

muon neutrino particle

Definition at line 92 of file include/Photos/PhotosParticle.h.

◆ MUON_PLUS

static const int MUON_PLUS = -13
staticinherited

muon+ particle

Definition at line 86 of file include/Photos/PhotosParticle.h.

◆ OTHER

static const int OTHER = 0
staticinherited

All other particle types

Definition at line 122 of file include/Photos/PhotosParticle.h.

◆ POSITRON

static const int POSITRON = -11
staticinherited

e+ particle

Definition at line 98 of file include/Photos/PhotosParticle.h.

◆ STABLE

static const int STABLE =1
staticinherited

Stable particle status

Definition at line 29 of file include/Photos/PhotosParticle.h.

◆ TAU_ANTINEUTRINO

static const int TAU_ANTINEUTRINO = -16
staticinherited

tau antineutrino particle

Definition at line 83 of file include/Photos/PhotosParticle.h.

◆ TAU_MINUS

static const int TAU_MINUS = 15
staticinherited

tau- particle

Definition at line 77 of file include/Photos/PhotosParticle.h.

◆ TAU_NEUTRINO

static const int TAU_NEUTRINO = 16
staticinherited

tau neutrino particle

Definition at line 80 of file include/Photos/PhotosParticle.h.

◆ TAU_PLUS

static const int TAU_PLUS = -15
staticinherited

tau+ particle

Definition at line 74 of file include/Photos/PhotosParticle.h.

◆ UP

static const int UP = 2
staticinherited

up quark

Definition at line 110 of file include/Photos/PhotosParticle.h.

◆ W_MINUS

static const int W_MINUS = -24
staticinherited

W- particle

Definition at line 68 of file include/Photos/PhotosParticle.h.

◆ W_PLUS

static const int W_PLUS = 24
staticinherited

W+ particle

Definition at line 65 of file include/Photos/PhotosParticle.h.

◆ X_AXIS

static const int X_AXIS =1
staticinherited

X Axis

Definition at line 38 of file include/Photos/PhotosParticle.h.

◆ Y_AXIS

static const int Y_AXIS =2
staticinherited

Y Axis

Definition at line 41 of file include/Photos/PhotosParticle.h.

◆ Z0

static const int Z0 = 23
staticinherited

Z0 particle

Definition at line 47 of file include/Photos/PhotosParticle.h.

◆ Z_AXIS

static const int Z_AXIS =3
staticinherited

Z Axis

Definition at line 44 of file include/Photos/PhotosParticle.h.


The documentation for this class was generated from the following files: