LDMX Software
LHEParticle.h
Go to the documentation of this file.
1
8#ifndef SIMCORE_LHEPARTICLE_H_
9#define SIMCORE_LHEPARTICLE_H_
10
11// LDMX
12
13// STL
14#include <stdlib.h>
15
16#include <iostream>
17#include <string>
18
19// Geant4
20
21namespace simcore {
22namespace lhe {
23
29 public:
34 LHEParticle(std::string& data);
35
40 int getPdgId() const;
41
46 int getStatus() const;
47
52 int getMother(int) const;
53
58 int getColor(int) const;
59
65 double getMomentum(int) const;
66
71 double getLifetime() const;
72
77 double getSpin() const;
78
84 void setMother(int i, LHEParticle* particle);
85
91
95 void print() const;
96
102 friend std::ostream& operator<<(std::ostream& stream,
103 const LHEParticle& particle);
104
105 private:
110
115
120
124 int mother_[2];
125
129 int color_[2];
130
134 double momentum_[5];
135
139 double lifetime_;
140
144 int spin_;
145};
146
147} // namespace lhe
148} // namespace simcore
149
150#endif
Single particle record in an LHE event.
Definition LHEParticle.h:28
double lifetime_
The proper time.
int getColor(int) const
Get the particle color (ICOLUP) by index_.
int spin_
The particle's spin.
int getMother(int) const
Get a mother particle index (MOTHUP) by index_.
double getSpin() const
Get the particle's spin (SPINUP).
LHEParticle(std::string &data)
Class constructor.
void setMother(int i, LHEParticle *particle)
Set a mother particle by index_.
int color_[2]
The particle color.
LHEParticle * mothers_[2]
The mother particles.
void print() const
Print particle information to an output stream.
double momentum_[5]
The momentum components.
double getLifetime() const
Get the proper lifetime (VTIMUP).
LHEParticle * getMotherParticle(int) const
Get a mother particle by index_.
double getMomentum(int) const
Get a momentum component (PUP) by index_.
friend std::ostream & operator<<(std::ostream &stream, const LHEParticle &particle)
Overloaded stream operator.
int getPdgId() const
Get the PDG code (IDUP).
int pdg_id_
The PDG code.
int getStatus() const
Get the status code (ISTUP).
int status_
The status code.
int mother_[2]
The mother particle indices.
Dynamically loadable photonuclear models either from SimCore or external libraries implementing this ...