1 #ifndef _PhotosHEPEVTParticle_h_included_
2 #define _PhotosHEPEVTParticle_h_included_
24 #include "PhotosParticle.h"
25 #include "PhotosHEPEVTEvent.h"
30 class PhotosHEPEVTEvent;
39 PhotosHEPEVTParticle(
int pdgid,
int status,
double px,
double py,
double pz,
double e,
double m,
int ms,
int me,
int ds,
int de);
45 void setMothers(std::vector<PhotosParticle*> mothers);
48 void setDaughters(std::vector<PhotosParticle*> daughters);
121 void setPx(
double px );
124 void setPy(
double py );
127 void setPz(
double pz );
130 void setE(
double e );
139 void setEvent(PhotosHEPEVTEvent *event);
156 void setDaughterRangeStart(
int i) { m_daughter_start=i; }
159 void setDaughterRangeEnd(
int i) { m_daughter_end =i; }
162 PhotosHEPEVTEvent *m_event;
168 int m_first_mother, m_second_mother;
171 int m_daughter_start, m_daughter_end;
180 double m_px, m_py, m_pz, m_e;
183 double m_generated_mass;
187 vector<PhotosHEPEVTParticle*> cache;
PhotosHEPEVTParticle * createNewParticle(int pdg_id, int status, double mass, double px, double py, double pz, double e)
int getDaughterRangeStart()
bool checkMomentumConservation()
void setEvent(PhotosHEPEVTEvent *event)
std::vector< PhotosParticle * > getMothers()
void setStatus(int statu)
std::vector< PhotosParticle * > getAllDecayProducts()
int getFirstMotherIndex()
std::vector< PhotosParticle * > getDaughters()
bool isMotherOf(PhotosHEPEVTParticle *p)
void createHistoryEntry()
void setDaughters(std::vector< PhotosParticle * > daughters)
Abstract base class for particle in the event. This class also handles boosting.
int getDaughterRangeEnd()
int getSecondMotherIndex()
void setMass(double mass)
void setMothers(std::vector< PhotosParticle * > mothers)
PhotosHEPEVTParticle(int pdgid, int status, double px, double py, double pz, double e, double m, int ms, int me, int ds, int de)
void setBarcode(int barcode)
bool isDaughterOf(PhotosHEPEVTParticle *p)
void createSelfDecayVertex(PhotosParticle *out)
void setPdgID(int pdg_id)
void addDaughter(PhotosParticle *daughter)
Single particle of HEPEVT event record.