HepMC3 event record library
|
An interface to HEPEVT common block.
Definition at line 80 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 bool | check_hepevt_consistency (std::ostream &ostr=std::cout) |
Check for problems with HEPEVT common block. More... | |
static void | zero_everything () |
Set all entries in HEPEVT to zero. 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 |
Check for problems with HEPEVT common block.
<
Definition at line 173 of file HEPEVT_Wrapper.h.
|
inlinestatic |
Tries to fix list of daughters.
Definition at line 240 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 190 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::jdahep.
|
inlinestatic |
Get number of children by counting.
Definition at line 195 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, HEPEVT::jmohep, and HEPEVT::nhep.
|
inlinestatic |
Get number of parents.
Definition at line 185 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::jmohep.
|
inlinestatic |
Print information from HEPEVT common block.
Definition at line 147 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, HEPEVT::nevhep, HEPEVT::nhep, and HEPEVT_Wrapper::print_hepevt_particle().
|
inlinestatic |
Print particle information.
Definition at line 157 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, HEPEVT::idhep, HEPEVT::jdahep, HEPEVT::jmohep, and HEPEVT::phep.
|
inlinestatic |
Set children.
Definition at line 211 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::jdahep.
|
inlinestatic |
Set mass.
Definition at line 225 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::phep.
|
inlinestatic |
Set 4-momentum.
Definition at line 217 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::phep.
|
inlinestatic |
Set parents.
Definition at line 205 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::jmohep.
|
inlinestatic |
Set position in time-space.
Definition at line 230 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::vhep.
|
inlinestatic |
Set all entries in HEPEVT to zero.
Definition at line 180 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr.