|
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 ()=default |
| Class destructor. | |
| int | getNumParticles () const |
| Get the number of particles (NUP) in the event. | |
| int | getProcessID () const |
| Get the ID of the physics process (IDRUP). | |
| double | getEventWeight () const |
| Get the event weight (XWGTUP). | |
| double | getScaleQ () const |
| Get the scale Q of parton distributions (SCALUP). | |
| double | getCouplingQed () const |
| Get the value of the QED coupling (AQEDUP). | |
| double | getCouplingQcd () const |
| Get the value of the QCD 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 (std::unique_ptr< LHEParticle > particle) |
| Add a particle to the event. | |
| const std::vector< std::unique_ptr< LHEParticle > > & | getParticles () const |
| Get the list of particles in the event. | |
Private Attributes | |
| int | num_particles_ |
| Number of particles. | |
| int | process_id_ |
| The physics process ID. | |
| double | event_weight_ |
| The event weight. | |
| double | scale_q_ |
| Scale Q of parton distributions. | |
| double | coupling_qed_ |
| QED coupling value. | |
| double | coupling_qcd_ |
| QCD coupling value. | |
| double | vtx_ [3] |
| Vertex location. | |
| double | vtxt_ {0.} |
| Vertex time. | |
| std::vector< std::unique_ptr< LHEParticle > > | particles_ |
| The list of particles. | |
LHE event with a list of particles and information from the header block.
Definition at line 37 of file LHEEvent.h.
| simcore::lhe::LHEEvent::LHEEvent | ( | std::string & | data | ) |
Class constructor.
| data | The string data of the event header. |
Definition at line 6 of file LHEEvent.cxx.
References coupling_qcd_, coupling_qed_, event_weight_, num_particles_, process_id_, scale_q_, and vtx_.
| void simcore::lhe::LHEEvent::addParticle | ( | std::unique_ptr< LHEParticle > | particle | ) |
Add a particle to the event.
@particle The particle to add.
Definition at line 55 of file LHEEvent.cxx.
References particles_.
| double simcore::lhe::LHEEvent::getCouplingQcd | ( | ) | const |
Get the value of the QCD coupling (AQCDUP).
Definition at line 49 of file LHEEvent.cxx.
References coupling_qcd_.
| double simcore::lhe::LHEEvent::getCouplingQed | ( | ) | const |
Get the value of the QED coupling (AQEDUP).
Definition at line 47 of file LHEEvent.cxx.
References coupling_qed_.
| double simcore::lhe::LHEEvent::getEventWeight | ( | ) | const |
Get the event weight (XWGTUP).
Definition at line 43 of file LHEEvent.cxx.
References event_weight_.
| int simcore::lhe::LHEEvent::getNumParticles | ( | ) | const |
Get the number of particles (NUP) in the event.
Definition at line 39 of file LHEEvent.cxx.
References num_particles_.
| const std::vector< std::unique_ptr< LHEParticle > > & simcore::lhe::LHEEvent::getParticles | ( | ) | const |
Get the list of particles in the event.
Definition at line 59 of file LHEEvent.cxx.
References particles_.
| int simcore::lhe::LHEEvent::getProcessID | ( | ) | const |
Get the ID of the physics process (IDRUP).
Definition at line 41 of file LHEEvent.cxx.
References process_id_.
| double simcore::lhe::LHEEvent::getScaleQ | ( | ) | const |
Get the scale Q of parton distributions (SCALUP).
Definition at line 45 of file LHEEvent.cxx.
References scale_q_.
| const double * simcore::lhe::LHEEvent::getVertex | ( | ) | const |
Get the vertex location (careful to match units as expected!)
Definition at line 51 of file LHEEvent.cxx.
References vtx_.
| double simcore::lhe::LHEEvent::getVertexTime | ( | ) | const |
Get the vertex time.
Definition at line 53 of file LHEEvent.cxx.
References vtxt_.
| 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 74 of file LHEEvent.cxx.
| void simcore::lhe::LHEEvent::setVertex | ( | double | x_, |
| double | y_, | ||
| double | z_ ) |
|
private |
QCD coupling value.
Definition at line 149 of file LHEEvent.h.
Referenced by getCouplingQcd(), and LHEEvent().
|
private |
QED coupling value.
Definition at line 144 of file LHEEvent.h.
Referenced by getCouplingQed(), and LHEEvent().
|
private |
The event weight.
Definition at line 134 of file LHEEvent.h.
Referenced by getEventWeight(), and LHEEvent().
|
private |
Number of particles.
Definition at line 124 of file LHEEvent.h.
Referenced by getNumParticles(), and LHEEvent().
|
private |
The list of particles.
Definition at line 164 of file LHEEvent.h.
Referenced by addParticle(), and getParticles().
|
private |
The physics process ID.
Definition at line 129 of file LHEEvent.h.
Referenced by getProcessID(), and LHEEvent().
|
private |
Scale Q of parton distributions.
Definition at line 139 of file LHEEvent.h.
Referenced by getScaleQ(), and LHEEvent().
|
private |
Vertex location.
Definition at line 154 of file LHEEvent.h.
Referenced by getVertex(), LHEEvent(), setVertex(), and setVertex().
|
private |
Vertex time.
Definition at line 159 of file LHEEvent.h.
Referenced by getVertexTime(), and setVertex().