HepMC3 event record library
|
An interface to HEPEVT common block.
Definition at line 96 of file HEPEVT_Wrapper.h.
#include <HEPEVT_Wrapper.h>
Static Public Member Functions | |
static void | print_hepevt (std::ostream &ostr=std::cout) |
Print information from HEPEVT common block. More... | |
static void | print_hepevt_particle (int index, std::ostream &ostr=std::cout) |
Print particle information. More... | |
static void | zero_everything () |
Check for problems with HEPEVT common block. More... | |
static bool | GenEvent_to_HEPEVT (const GenEvent *evt) |
Convert GenEvent to HEPEVT. More... | |
static bool | HEPEVT_to_GenEvent (GenEvent *evt) |
Convert HEPEVT to GenEvent. More... | |
static bool | fix_daughters () |
Tries to fix list of daughters. More... | |
static int | number_parents (const int &index) |
Get number of parents. More... | |
static int | number_children (const int &index) |
Get number of children from the range of daughters. More... | |
static int | number_children_exact (const int &index) |
Get number of children by counting. More... | |
static void | set_parents (const int &index, const int &firstparent, const int &lastparent) |
Set parents. More... | |
static void | set_children (const int &index, const int &firstchild, const int &lastchild) |
Set children. More... | |
static void | set_momentum (const int &index, const double &px, const double &py, const double &pz, const double &e) |
Set 4-momentum. More... | |
static void | set_mass (const int &index, double mass) |
Set mass. More... | |
static void | set_position (const int &index, const double &x, const double &y, const double &z, const double &t) |
Set position in time-space. More... | |
|
inlinestatic |
Tries to fix list of daughters.
Definition at line 259 of file HEPEVT_Wrapper.h.
References HEPEVT_Wrapper::number_children(), HEPEVT_Wrapper::number_children_exact(), and HEPEVT_Wrapper::set_children().
|
static |
This writes an event out to the HEPEVT common block. The daughters field is NOT filled, because it is possible to contruct graphs for which the mothers and daughters cannot both be make sequential. This is consistent with how pythia fills HEPEVT (daughters are not necessarily filled properly) and how IO_HEPEVT reads HEPEVT.
Definition at line 176 of file HEPEVT_Wrapper.cc.
References HepMC3::calculate_longest_path_to_top(), FourVector::e(), GenEvent::event_number(), FourVector::px(), FourVector::py(), FourVector::pz(), HEPEVT_Wrapper::set_children(), HEPEVT_Wrapper::set_mass(), HEPEVT_Wrapper::set_momentum(), HEPEVT_Wrapper::set_parents(), HEPEVT_Wrapper::set_position(), FourVector::t(), GenEvent::vertices(), FourVector::x(), FourVector::y(), and FourVector::z().
|
static |
Definition at line 107 of file HEPEVT_Wrapper.cc.
References GenEvent::add_tree(), and GenEvent::set_event_number().
|
inlinestatic |
Get number of children from the range of daughters.
Definition at line 209 of file HEPEVT_Wrapper.h.
|
inlinestatic |
Get number of children by counting.
Definition at line 214 of file HEPEVT_Wrapper.h.
|
inlinestatic |
Get number of parents.
Definition at line 204 of file HEPEVT_Wrapper.h.
|
inlinestatic |
Print information from HEPEVT common block.
Definition at line 164 of file HEPEVT_Wrapper.h.
|
static |
Print particle information.
|
inlinestatic |
Set children.
Definition at line 230 of file HEPEVT_Wrapper.h.
|
inlinestatic |
|
inlinestatic |
Set 4-momentum.
Definition at line 236 of file HEPEVT_Wrapper.h.
|
inlinestatic |
Set parents.
Definition at line 224 of file HEPEVT_Wrapper.h.
|
inlinestatic |
Set position in time-space.
Definition at line 249 of file HEPEVT_Wrapper.h.
|
inlinestatic |
Check for problems with HEPEVT common block.
<
Set all entries in HEPEVT to zero
Definition at line 199 of file HEPEVT_Wrapper.h.