 |
Belle II Software
release-05-02-19
|
1 #ifndef _PhotosHEPEVTParticle_h_included_
2 #define _PhotosHEPEVTParticle_h_included_
24 #include "PhotosParticle.h"
25 #include "PhotosHEPEVTEvent.h"
29 class PhotosHEPEVTEvent;
38 PhotosHEPEVTParticle(
int pdgid,
int status,
double px,
double py,
double pz,
double e,
double m,
int ms,
int me,
int ds,
int de);
44 void setMothers(std::vector<PhotosParticle*> mothers);
47 void setDaughters(std::vector<PhotosParticle*> daughters);
120 void setPx(
double px);
123 void setPy(
double py);
126 void setPz(
double pz);
186 vector<PhotosHEPEVTParticle*>
cache;
~PhotosHEPEVTParticle()
Default destructor.
void setMass(double mass)
Set the mass of this particle.
std::vector< PhotosParticle * > getMothers()
Returns the mothers of this particle via a vector of PhotosParticle.
void setEvent(PhotosHEPEVTEvent *event)
Set event of this particle.
std::vector< PhotosParticle * > getAllDecayProducts()
Returns all particles in the decay tree of this particle via a vector of PhotosParticle.
int getPdgID()
Get the PDG ID code of this particle.
void setDaughters(std::vector< PhotosParticle * > daughters)
Set the daughters of this particle via a vector of PhotosParticle.
void setPdgID(int pdg_id)
Set the PDG ID code of this particle.
void setPz(double pz)
Set the pz component of the four vector.
int m_status
Status (stable, decayed)
int getFirstMotherIndex()
Get index of first mother.
PhotosHEPEVTEvent * m_event
Event from which this particle is taken.
void setStatus(int statu)
Set the status of this particle.
bool isMotherOf(PhotosHEPEVTParticle *p)
Check if particle 'p' is mother of this particle.
void setDaughterRangeStart(int i)
Set index of first daughter.
void createSelfDecayVertex(PhotosParticle *out)
Create a self-decay vertex for this particle with 'out' being the outgoing particle in new vertex.
int getBarcode()
Get the barcode (position in list) of this particle.
bool checkMomentumConservation()
Check that the 4 momentum in conserved in the decay of this particle.
int m_first_mother
Indexes of mothers (-1 if do not have mothers)
void addDaughter(PhotosParticle *daughter)
Add a new daughter to this particle.
int getSecondMotherIndex()
Get index of second mother.
void setDaughterRangeEnd(int i)
Set index of last daughter.
void print()
Print information on this particle into standard output.
vector< PhotosHEPEVTParticle * > cache
List of created particles - if they are not in the event, they will be deleted when no longer needed.
double getPz()
Returns the pz component of the four vector.
double getPx()
Returns the px component of the four vector.
int getStatus()
Get the status of this particle.
double m_generated_mass
Mass saved at generation step.
bool isDaughterOf(PhotosHEPEVTParticle *p)
Check if particle 'p' is daughter of this particle.
void createHistoryEntry()
Creating history entries not implemented in HEPEVT.
PhotosHEPEVTParticle(int pdgid, int status, double px, double py, double pz, double e, double m, int ms, int me, int ds, int de)
Default constructor.
double getMass()
Get the mass stored (i.e.
void setMothers(std::vector< PhotosParticle * > mothers)
Set the mothers of this particle via a vector of PhotosParticle.
void setPx(double px)
Set the px component of the four vector.
double getE()
Returns the energy component of the four vector.
double getPy()
Returns the py component of the four vector.
std::vector< PhotosParticle * > getDaughters()
Returns the daughters of this particle via a vector of PhotosParticle.
PhotosHEPEVTParticle * createNewParticle(int pdg_id, int status, double mass, double px, double py, double pz, double e)
Creates a new particle of type PhotosHEPEVTParticle, with the given properties.
void setBarcode(int barcode)
Set barcode (position in list) of this particle.
int getDaughterRangeStart()
Get index of first daughter.
void setE(double e)
Set the energy component of the four vector.
int getDaughterRangeEnd()
Get index of last daughter.
void setPy(double py)
Set the px component of the four vector.
int m_barcode
Position in the event record.
int m_daughter_start
Range of indexes of daughters (-1 if do not have daughters)