LDMX Software
LHEParticle.h
Go to the documentation of this file.
1
7#ifndef SIMCORE_LHEPARTICLE_H_
8#define SIMCORE_LHEPARTICLE_H_
9
10// STL
11#include <string>
12#include <vector>
13
14namespace simcore::lhe {
15
21 public:
26 LHEParticle(std::string& data);
27
32 int getIDUP() const;
33
38 int getISTUP() const;
39
44 int getMOTHUP(int) const;
45
50 int getICOLUP(int) const;
51
57 double getPUP(int) const;
58
63 double getVTIMUP() const;
64
69 double getSPINUP() const;
70
76 void setMother(int i, LHEParticle* particle);
77
82 LHEParticle* getMother(int) const;
83
88 void print(std::ostream& stream) const;
89
95 friend std::ostream& operator<<(std::ostream& stream,
96 const LHEParticle& particle);
97
98 private:
103
107 int idup_;
108
113
117 int mothup_[2];
118
122 int icolup_[2];
123
127 double pup_[5];
128
132 double vtimup_;
133
138};
139
140} // namespace simcore::lhe
141
142#endif
Single particle record in an LHE event.
Definition LHEParticle.h:20
int getMOTHUP(int) const
Get a mother particle index (MOTHUP) by index.
double getPUP(int) const
Get a momentum component (PUP) by index.
int idup_
The PDG code.
void setMother(int i, LHEParticle *particle)
Set a mother particle by index.
LHEParticle * mothers_[2]
The mother particles.
int istup_
The status code.
double getSPINUP() const
Get the particle's spin (SPINUP).
int spinup_
The particle's spin.
double getVTIMUP() const
Get the proper lifetime (VTIMUP).
int icolup_[2]
The particle color.
int mothup_[2]
The mother particle indices.
friend std::ostream & operator<<(std::ostream &stream, const LHEParticle &particle)
Overloaded stream operator.
void print(std::ostream &stream) const
Print particle information to an output stream.
int getISTUP() const
Get the status code (ISTUP).
LHEParticle * getMother(int) const
Get a mother particle by index.
double pup_[5]
The momentum components.
int getIDUP() const
Get the PDG code (IDUP).
int getICOLUP(int) const
Get the particle color (ICOLUP) by index.
double vtimup_
The proper time.