LDMX Software
|
LHE event with a list of particles and information from the header block. More...
#include <LHEEvent.h>
Public Member Functions | |
LHEEvent (std::string &data) | |
Class constructor. | |
virtual | ~LHEEvent () |
Class destructor. | |
int | getNUP () const |
Get the number of particles (NUP) in the event. | |
int | getIDPRUP () const |
Get the ID of the physics process (IDRUP). | |
double | getXWGTUP () const |
Get the event weight (XWGTUP). | |
double | getSCALUP () const |
Get the scale Q of parton distributions (SCALUP). | |
double | getAQEDUP () const |
Get the value of the QED coupling (AQEDUP). | |
double | getAQCDUP () const |
Get the value of the QED coupling (AQCDUP). | |
void | setVertex (double x, double y, double z) |
Set the vertex location (careful to match units as expected!) | |
void | setVertex (const std::string &line) |
Parse the vertex from a line of the form "#vertex [x] [y] [z]". | |
const double * | getVertex () const |
Get the vertex location (careful to match units as expected!) | |
double | getVertexTime () const |
Get the vertex time. | |
void | addParticle (LHEParticle *particle) |
Add a particle to the event. | |
const std::vector< LHEParticle * > & | getParticles () |
Get the list of particles in the event. | |
Private Attributes | |
int | nup_ |
Number of particles. | |
int | idprup_ |
The physics process ID. | |
double | xwgtup_ |
The event weight. | |
double | scalup_ |
Scale Q of parton distributions. | |
double | aqedup_ |
QCD coupling value. | |
double | aqcdup_ |
QCD coupling value. | |
double | vtx_ [3] |
Vertex location. | |
double | vtxt_ {0.} |
Vertex time. | |
std::vector< LHEParticle * > | particles_ |
The list of particles. | |
LHE event with a list of particles and information from the header block.
Definition at line 29 of file LHEEvent.h.
simcore::lhe::LHEEvent::LHEEvent | ( | std::string & | data | ) |
Class constructor.
data | The string data of the event header. |
Definition at line 14 of file LHEEvent.cxx.
References aqcdup_, aqedup_, idprup_, nup_, scalup_, vtx_, and xwgtup_.
|
virtual |
Class destructor.
Definition at line 42 of file LHEEvent.cxx.
References particles_.
void simcore::lhe::LHEEvent::addParticle | ( | LHEParticle * | particle | ) |
Add a particle to the event.
@particle The particle to add.
Definition at line 66 of file LHEEvent.cxx.
References particles_.
Referenced by simcore::lhe::LHEReader::readNextEvent().
double simcore::lhe::LHEEvent::getAQCDUP | ( | ) | const |
Get the value of the QED coupling (AQCDUP).
Definition at line 60 of file LHEEvent.cxx.
References aqcdup_.
double simcore::lhe::LHEEvent::getAQEDUP | ( | ) | const |
Get the value of the QED coupling (AQEDUP).
Definition at line 58 of file LHEEvent.cxx.
References aqedup_.
int simcore::lhe::LHEEvent::getIDPRUP | ( | ) | const |
Get the ID of the physics process (IDRUP).
Definition at line 52 of file LHEEvent.cxx.
References idprup_.
int simcore::lhe::LHEEvent::getNUP | ( | ) | const |
Get the number of particles (NUP) in the event.
Definition at line 50 of file LHEEvent.cxx.
References nup_.
const std::vector< LHEParticle * > & simcore::lhe::LHEEvent::getParticles | ( | ) |
Get the list of particles in the event.
Definition at line 70 of file LHEEvent.cxx.
References particles_.
Referenced by simcore::generators::LHEPrimaryGenerator::GeneratePrimaryVertex(), and simcore::lhe::LHEReader::readNextEvent().
double simcore::lhe::LHEEvent::getSCALUP | ( | ) | const |
Get the scale Q of parton distributions (SCALUP).
Definition at line 56 of file LHEEvent.cxx.
References scalup_.
const double * simcore::lhe::LHEEvent::getVertex | ( | ) | const |
Get the vertex location (careful to match units as expected!)
Definition at line 62 of file LHEEvent.cxx.
References vtx_.
Referenced by simcore::generators::LHEPrimaryGenerator::GeneratePrimaryVertex().
double simcore::lhe::LHEEvent::getVertexTime | ( | ) | const |
Get the vertex time.
Definition at line 64 of file LHEEvent.cxx.
References vtxt_.
double simcore::lhe::LHEEvent::getXWGTUP | ( | ) | const |
Get the event weight (XWGTUP).
Definition at line 54 of file LHEEvent.cxx.
References xwgtup_.
Referenced by simcore::generators::LHEPrimaryGenerator::GeneratePrimaryVertex().
void simcore::lhe::LHEEvent::setVertex | ( | const std::string & | line | ) |
Parse the vertex from a line of the form "#vertex [x] [y] [z]".
Parse the vertex from a line of the form "#vertex [x] [y] [z] [t]" Where [t] is assumed zero if not specified.
Definition at line 82 of file LHEEvent.cxx.
void simcore::lhe::LHEEvent::setVertex | ( | double | x, |
double | y, | ||
double | z | ||
) |
Set the vertex location (careful to match units as expected!)
Definition at line 72 of file LHEEvent.cxx.
References vtx_.
Referenced by simcore::lhe::LHEReader::readNextEvent().
|
private |
QCD coupling value.
Definition at line 141 of file LHEEvent.h.
Referenced by getAQCDUP(), and LHEEvent().
|
private |
QCD coupling value.
Definition at line 136 of file LHEEvent.h.
Referenced by getAQEDUP(), and LHEEvent().
|
private |
The physics process ID.
Definition at line 121 of file LHEEvent.h.
Referenced by getIDPRUP(), and LHEEvent().
|
private |
Number of particles.
Definition at line 116 of file LHEEvent.h.
Referenced by getNUP(), and LHEEvent().
|
private |
The list of particles.
Definition at line 156 of file LHEEvent.h.
Referenced by addParticle(), getParticles(), and ~LHEEvent().
|
private |
Scale Q of parton distributions.
Definition at line 131 of file LHEEvent.h.
Referenced by getSCALUP(), and LHEEvent().
|
private |
Vertex location.
Definition at line 146 of file LHEEvent.h.
Referenced by getVertex(), LHEEvent(), setVertex(), and setVertex().
|
private |
Vertex time.
Definition at line 151 of file LHEEvent.h.
Referenced by getVertexTime(), and setVertex().
|
private |
The event weight.
Definition at line 126 of file LHEEvent.h.
Referenced by getXWGTUP(), and LHEEvent().