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. | |
static void | print_hepevt_particle (int index, std::ostream &ostr=std::cout) |
Print particle information. | |
static bool | check_hepevt_consistency (std::ostream &ostr=std::cout) |
Check for problems with HEPEVT common block. | |
static void | zero_everything () |
Set all entries in HEPEVT to zero. | |
static bool | GenEvent_to_HEPEVT (const GenEvent *evt) |
Convert GenEvent to HEPEVT. | |
static bool | HEPEVT_to_GenEvent (GenEvent *evt) |
Convert HEPEVT to GenEvent. | |
static bool | fix_daughters () |
Tries to fix list of daughters. | |
static void | set_hepevt_address (char *c) |
Set Fortran block address. | |
static int | max_number_entries () |
Block size. | |
static int | event_number () |
Get event number. | |
static int | number_entries () |
Get number of entries. | |
static int | status (const int &index) |
Get status code. | |
static int | id (const int &index) |
Get PDG particle id. | |
static int | first_parent (const int &index) |
Get index of 1st mother. | |
static int | last_parent (const int &index) |
Get index of last mother. | |
static int | first_child (const int &index) |
Get index of 1st daughter. | |
static int | last_child (const int &index) |
Get index of last daughter. | |
static double | px (const int &index) |
Get X momentum. | |
static double | py (const int &index) |
Get Y momentum. | |
static double | pz (const int &index) |
Get Z momentum. | |
static double | e (const int &index) |
Get Energy. | |
static double | m (const int &index) |
Get generated mass. | |
static double | x (const int &index) |
Get X Production vertex. | |
static double | y (const int &index) |
Get Y Production vertex. | |
static double | z (const int &index) |
Get Z Production vertex. | |
static double | t (const int &index) |
Get production time. | |
static int | number_parents (const int &index) |
Get number of parents. | |
static int | number_children (const int &index) |
Get number of children from the range of daughters. | |
static int | number_children_exact (const int &index) |
Get number of children by counting. | |
static void | set_event_number (const int &evtno) |
Set event number. | |
static void | set_number_entries (const int &noentries) |
Set number of entries. | |
static void | set_status (const int &index, const int &status) |
Set status code. | |
static void | set_id (const int &index, const int &id) |
Set PDG particle id. | |
static void | set_parents (const int &index, const int &firstparent, const int &lastparent) |
Set parents. | |
static void | set_children (const int &index, const int &firstchild, const int &lastchild) |
Set children. | |
static void | set_momentum (const int &index, const double &px, const double &py, const double &pz, const double &e) |
Set 4-momentum. | |
static void | set_mass (const int &index, double mass) |
Set mass. | |
static void | set_position (const int &index, const double &x, const double &y, const double &z, const double &t) |
Set position in time-space. | |
|
inlinestatic |
Check for problems with HEPEVT common block.
<
Definition at line 173 of file HEPEVT_Wrapper.h.
|
inlinestatic |
Get Energy.
Definition at line 123 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::phep.
|
inlinestatic |
Get event number.
Definition at line 112 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::nevhep.
|
inlinestatic |
Get index of 1st daughter.
Definition at line 118 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::jdahep.
|
inlinestatic |
Get index of 1st mother.
Definition at line 116 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::jmohep.
|
inlinestatic |
Tries to fix list of daughters.
Definition at line 240 of file HEPEVT_Wrapper.h.
References HEPEVT_Wrapper::first_child(), HEPEVT_Wrapper::first_parent(), HEPEVT_Wrapper::last_child(), HEPEVT_Wrapper::last_parent(), HEPEVT_Wrapper::number_children(), HEPEVT_Wrapper::number_children_exact(), HEPEVT_Wrapper::number_entries(), 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(), GenEvent::event_number(), HEPEVT_Wrapper::m(), HEPEVT_Wrapper::max_number_entries(), HEPEVT_Wrapper::set_children(), HEPEVT_Wrapper::set_event_number(), HEPEVT_Wrapper::set_id(), HEPEVT_Wrapper::set_mass(), HEPEVT_Wrapper::set_momentum(), HEPEVT_Wrapper::set_number_entries(), HEPEVT_Wrapper::set_parents(), HEPEVT_Wrapper::set_position(), HEPEVT_Wrapper::set_status(), HEPEVT_Wrapper::status(), 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(), HEPEVT_Wrapper::e(), HEPEVT_Wrapper::event_number(), HEPEVT_Wrapper::first_parent(), HEPEVT_Wrapper::id(), HEPEVT_Wrapper::last_parent(), HEPEVT_Wrapper::m(), HEPEVT_Wrapper::number_entries(), HEPEVT_Wrapper::px(), HEPEVT_Wrapper::py(), HEPEVT_Wrapper::pz(), GenEvent::set_event_number(), HEPEVT_Wrapper::status(), HEPEVT_Wrapper::t(), HEPEVT_Wrapper::x(), HEPEVT_Wrapper::y(), and HEPEVT_Wrapper::z().
|
inlinestatic |
Get PDG particle id.
Definition at line 115 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::idhep.
|
inlinestatic |
Get index of last daughter.
Definition at line 119 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::jdahep.
|
inlinestatic |
Get index of last mother.
Definition at line 117 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::jmohep.
|
inlinestatic |
Get generated mass.
Definition at line 124 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::phep.
|
inlinestatic |
|
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 entries.
Definition at line 113 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, 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 |
Get X momentum.
Definition at line 120 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::phep.
|
inlinestatic |
Get Y momentum.
Definition at line 121 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::phep.
|
inlinestatic |
Get Z momentum.
Definition at line 122 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::phep.
|
inlinestatic |
Set children.
Definition at line 211 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::jdahep.
|
inlinestatic |
Set event number.
Definition at line 133 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::nevhep.
|
inlinestatic |
Set Fortran block address.
Definition at line 110 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr.
|
inlinestatic |
Set PDG particle id.
Definition at line 136 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, HEPEVT_Wrapper::id(), and HEPEVT::idhep.
|
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 HEPEVT_Wrapper::e(), HepMC3::hepevtptr, HEPEVT::phep, HEPEVT_Wrapper::px(), HEPEVT_Wrapper::py(), and HEPEVT_Wrapper::pz().
|
inlinestatic |
Set number of entries.
Definition at line 134 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::nhep.
|
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, HEPEVT_Wrapper::t(), HEPEVT::vhep, HEPEVT_Wrapper::x(), HEPEVT_Wrapper::y(), and HEPEVT_Wrapper::z().
|
inlinestatic |
Set status code.
Definition at line 135 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, HEPEVT::isthep, and HEPEVT_Wrapper::status().
|
inlinestatic |
Get status code.
Definition at line 114 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::isthep.
|
inlinestatic |
Get production time.
Definition at line 128 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::vhep.
|
inlinestatic |
Get X Production vertex.
Definition at line 125 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::vhep.
|
inlinestatic |
Get Y Production vertex.
Definition at line 126 of file HEPEVT_Wrapper.h.
References HepMC3::hepevtptr, and HEPEVT::vhep.
|
inlinestatic |
Get Z Production vertex.
Definition at line 127 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.