HepMC event record
|
An interface to HEPEVT common block.
Definition at line 80 of file build/outputs/include/HepMC/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 void | set_hepevt_address (char *c) |
Set Fortran block address. More... | |
static int | max_number_entries () |
Block size. More... | |
static int | event_number () |
Get event number. More... | |
static int | number_entries () |
Get number of entries. More... | |
static int | status (int index) |
Get status code. More... | |
static int | id (int index) |
Get PDG particle id. More... | |
static int | first_parent (int index) |
Get index of 1st mother. More... | |
static int | last_parent (int index) |
Get index of last mother. More... | |
static int | first_child (int index) |
Get index of 1st daughter. More... | |
static int | last_child (int index) |
Get index of last daughter. More... | |
static double | px (int index) |
Get X momentum. More... | |
static double | py (int index) |
Get Y momentum. More... | |
static double | pz (int index) |
Get Z momentum. More... | |
static double | e (int index) |
Get Energy. More... | |
static double | m (int index) |
Get generated mass. More... | |
static double | x (int index) |
Get X Production vertex. More... | |
static double | y (int index) |
Get Y Production vertex. More... | |
static double | z (int index) |
Get Z Production vertex. More... | |
static double | t (int index) |
Get production time. More... | |
static int | number_parents (int index) |
Get number of parents. More... | |
static int | number_children (int index) |
Get number of children from the range of daughters. More... | |
static int | number_children_exact (int index) |
Get number of children by counting. More... | |
static void | set_event_number (int evtno) |
Set event number. More... | |
static void | set_number_entries (int noentries) |
Set number of entries. More... | |
static void | set_status (int index, int status) |
Set status code. More... | |
static void | set_id (int index, int id) |
Set PDG particle id. More... | |
static void | set_parents (int index, int firstparent, int lastparent) |
Set parents. More... | |
static void | set_children (int index, int firstchild, int lastchild) |
Set children. More... | |
static void | set_momentum (int index, double px, double py, double pz, double e) |
Set 4-momentum. More... | |
static void | set_mass (int index, double mass) |
Set mass. More... | |
static void | set_position (int index, double x, double y, double z, double t) |
Set position in time-space. More... | |
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 void | set_hepevt_address (char *c) |
Set Fortran block address. More... | |
static int | max_number_entries () |
Block size. More... | |
static int | event_number () |
Get event number. More... | |
static int | number_entries () |
Get number of entries. More... | |
static int | status (int index) |
Get status code. More... | |
static int | id (int index) |
Get PDG particle id. More... | |
static int | first_parent (int index) |
Get index of 1st mother. More... | |
static int | last_parent (int index) |
Get index of last mother. More... | |
static int | first_child (int index) |
Get index of 1st daughter. More... | |
static int | last_child (int index) |
Get index of last daughter. More... | |
static double | px (int index) |
Get X momentum. More... | |
static double | py (int index) |
Get Y momentum. More... | |
static double | pz (int index) |
Get Z momentum. More... | |
static double | e (int index) |
Get Energy. More... | |
static double | m (int index) |
Get generated mass. More... | |
static double | x (int index) |
Get X Production vertex. More... | |
static double | y (int index) |
Get Y Production vertex. More... | |
static double | z (int index) |
Get Z Production vertex. More... | |
static double | t (int index) |
Get production time. More... | |
static int | number_parents (int index) |
Get number of parents. More... | |
static int | number_children (int index) |
Get number of children from the range of daughters. More... | |
static int | number_children_exact (int index) |
Get number of children by counting. More... | |
static void | set_event_number (int evtno) |
Set event number. More... | |
static void | set_number_entries (int noentries) |
Set number of entries. More... | |
static void | set_status (int index, int status) |
Set status code. More... | |
static void | set_id (int index, int id) |
Set PDG particle id. More... | |
static void | set_parents (int index, int firstparent, int lastparent) |
Set parents. More... | |
static void | set_children (int index, int firstchild, int lastchild) |
Set children. More... | |
static void | set_momentum (int index, double px, double py, double pz, double e) |
Set 4-momentum. More... | |
static void | set_mass (int index, double mass) |
Set mass. More... | |
static void | set_position (int index, double x, double y, double z, double t) |
Set position in time-space. More... | |
|
inlinestatic |
Check for problems with HEPEVT common block.
<
<
Definition at line 173 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
|
static |
Check for problems with HEPEVT common block.
|
inlinestatic |
Get Energy.
Definition at line 123 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::phep.
|
inlinestatic |
|
inlinestatic |
Get event number.
Definition at line 112 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::nevhep.
|
inlinestatic |
Get event number.
Definition at line 112 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::nevhep.
|
inlinestatic |
Get index of 1st daughter.
Definition at line 118 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::jdahep.
|
inlinestatic |
Get index of 1st daughter.
Definition at line 118 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::jdahep.
|
inlinestatic |
Get index of 1st mother.
Definition at line 116 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::jmohep.
|
inlinestatic |
Get index of 1st mother.
Definition at line 116 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::jmohep.
|
static |
Tries to fix list of daughters.
|
inlinestatic |
Tries to fix list of daughters.
Definition at line 240 of file build/outputs/include/HepMC/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 172 of file HEPEVT_Wrapper.cc.
References 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 103 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 build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::idhep.
|
inlinestatic |
Get PDG particle id.
Definition at line 115 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::idhep.
|
inlinestatic |
Get index of last daughter.
Definition at line 119 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::jdahep.
|
inlinestatic |
Get index of last daughter.
Definition at line 119 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::jdahep.
|
inlinestatic |
Get index of last mother.
Definition at line 117 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::jmohep.
|
inlinestatic |
Get index of last mother.
Definition at line 117 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::jmohep.
|
inlinestatic |
Get generated mass.
Definition at line 124 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::phep.
|
inlinestatic |
Get generated mass.
Definition at line 124 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::phep.
|
inlinestatic |
Block size.
Definition at line 111 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
|
inlinestatic |
Block size.
Definition at line 111 of file include/HepMC/HEPEVT_Wrapper.h.
|
static |
Get number of children from the range of daughters.
|
inlinestatic |
Get number of children from the range of daughters.
Definition at line 190 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::jdahep.
|
static |
Get number of children by counting.
|
inlinestatic |
Get number of children by counting.
Definition at line 195 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::jmohep, and HEPEVT::nhep.
|
inlinestatic |
Get number of entries.
Definition at line 113 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::nhep.
|
inlinestatic |
Get number of entries.
Definition at line 113 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::nhep.
|
static |
Get number of parents.
|
inlinestatic |
Get number of parents.
Definition at line 185 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::jmohep.
|
static |
|
inlinestatic |
Print information from HEPEVT common block.
Definition at line 147 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::nevhep, HEPEVT::nhep, and HEPEVT_Wrapper::print_hepevt_particle().
|
static |
Print particle information.
|
inlinestatic |
Print particle information.
Definition at line 157 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::idhep, HEPEVT::jdahep, HEPEVT::jmohep, and HEPEVT::phep.
|
inlinestatic |
Get X momentum.
Definition at line 120 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::phep.
|
inlinestatic |
Get X momentum.
Definition at line 120 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::phep.
|
inlinestatic |
Get Y momentum.
Definition at line 121 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::phep.
|
inlinestatic |
Get Y momentum.
Definition at line 121 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::phep.
|
inlinestatic |
Get Z momentum.
Definition at line 122 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::phep.
|
inlinestatic |
Get Z momentum.
Definition at line 122 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::phep.
|
inlinestatic |
Set children.
Definition at line 211 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::jdahep.
|
static |
Set children.
|
inlinestatic |
Set event number.
Definition at line 133 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::nevhep.
|
inlinestatic |
Set event number.
Definition at line 133 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::nevhep.
|
inlinestatic |
Set Fortran block address.
Definition at line 110 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
|
inlinestatic |
Set Fortran block address.
Definition at line 110 of file include/HepMC/HEPEVT_Wrapper.h.
|
inlinestatic |
Set PDG particle id.
Definition at line 136 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT_Wrapper::id(), and HEPEVT::idhep.
|
inlinestatic |
Set PDG particle id.
Definition at line 136 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT_Wrapper::id(), and HEPEVT::idhep.
|
inlinestatic |
Set mass.
Definition at line 225 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::phep.
|
static |
Set mass.
|
static |
Set 4-momentum.
|
inlinestatic |
Set 4-momentum.
Definition at line 217 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT_Wrapper::e(), HEPEVT::phep, HEPEVT_Wrapper::px(), HEPEVT_Wrapper::py(), and HEPEVT_Wrapper::pz().
|
inlinestatic |
Set number of entries.
Definition at line 134 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::nhep.
|
inlinestatic |
Set number of entries.
Definition at line 134 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::nhep.
|
static |
Set parents.
|
inlinestatic |
Set parents.
Definition at line 205 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::jmohep.
|
static |
Set position in time-space.
|
inlinestatic |
Set position in time-space.
Definition at line 230 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References 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 include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::isthep, and HEPEVT_Wrapper::status().
|
inlinestatic |
Set status code.
Definition at line 135 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::isthep, and HEPEVT_Wrapper::status().
|
inlinestatic |
Get status code.
Definition at line 114 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::isthep.
|
inlinestatic |
Get status code.
Definition at line 114 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::isthep.
|
inlinestatic |
Get production time.
Definition at line 128 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::vhep.
|
inlinestatic |
Get production time.
Definition at line 128 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::vhep.
|
inlinestatic |
Get X Production vertex.
Definition at line 125 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::vhep.
|
inlinestatic |
Get X Production vertex.
Definition at line 125 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::vhep.
|
inlinestatic |
Get Y Production vertex.
Definition at line 126 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::vhep.
|
inlinestatic |
Get Y Production vertex.
Definition at line 126 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::vhep.
|
inlinestatic |
Get Z Production vertex.
Definition at line 127 of file include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::vhep.
|
inlinestatic |
Get Z Production vertex.
Definition at line 127 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.
References HEPEVT::vhep.
|
static |
Set all entries in HEPEVT to zero.
|
inlinestatic |
Set all entries in HEPEVT to zero.
Definition at line 180 of file build/outputs/include/HepMC/HEPEVT_Wrapper.h.