Generic Wrapper for the fortran EPOS common block. More...
#include <EPOS_Wrapper.h>
Static Public Member Functions | |
static double | e (int index) |
Energy. More... | |
static int | event_number () |
event number More... | |
static int | first_child (int index) |
index of 1st daughter More... | |
static int | first_parent (int index) |
index of 1st mother More... | |
static int | id (int index) |
PDG particle id. More... | |
static int | last_child (int index) |
index of last daughter More... | |
static int | last_parent (int index) |
index of last mother More... | |
static double | m (int index) |
generated mass More... | |
static int | max_number_entries () |
size of common block More... | |
static int | number_children (int index) |
number of children More... | |
static int | number_entries () |
num entries in current evt More... | |
static int | number_parents (int index) |
number of parents More... | |
static void | print_hepcom (std::ostream &ostr=std::cout) |
write information from EPOS common block More... | |
static void | print_hepcom_particle (int index, std::ostream &ostr=std::cout) |
write particle information to ostr More... | |
static double | px (int index) |
X momentum. More... | |
static double | py (int index) |
Y momentum. More... | |
static double | pz (int index) |
Z momentum. More... | |
static void | set_children (int index, int firstchild, int lastchild) |
define children of a particle More... | |
static void | set_event_number (int evtno) |
set event number More... | |
static void | set_id (int index, int id) |
set particle ID More... | |
static void | set_mass (int index, double mass) |
set particle mass More... | |
static void | set_max_number_entries (unsigned int) |
define size of common block More... | |
static void | set_momentum (int index, double px, double py, double pz, double e) |
set particle momentum More... | |
static void | set_number_entries (int noentries) |
set number of entries in EPOS More... | |
static void | set_parents (int index, int firstparent, int lastparent) |
define parents of a particle More... | |
static void | set_position (int index, double x, double y, double z, double t) |
set particle production vertex More... | |
static void | set_sizeof_int (unsigned int) |
define size of integer More... | |
static void | set_sizeof_real (unsigned int) |
define size of real More... | |
static void | set_status (int index, int status) |
set particle status More... | |
static unsigned int | sizeof_int () |
size of integer in bytes More... | |
static unsigned int | sizeof_real () |
size of real in bytes More... | |
static int | status (int index) |
status code More... | |
static double | t (int index) |
production time More... | |
static double | x (int index) |
X Production vertex. More... | |
static double | y (int index) |
Y Production vertex. More... | |
static double | z (int index) |
Z Production vertex. More... | |
static void | zero_everything () |
set all entries in EPOS to zero More... | |
Static Protected Member Functions | |
static double | byte_num_to_double (unsigned int) |
navigate a byte array More... | |
static int | byte_num_to_int (unsigned int) |
navigate a byte array More... | |
static void | print_legend (std::ostream &ostr=std::cout) |
print output legend More... | |
static void | write_byte_num (double, unsigned int) |
pretend common block is an array of bytes More... | |
static void | write_byte_num (int, unsigned int) |
pretend common block is an array of bytes More... | |
Static Private Attributes | |
static unsigned int | s_max_number_entries = 99900 |
static unsigned int | s_sizeof_int = 4 |
static unsigned int | s_sizeof_real = sizeof(double) |
Generic Wrapper for the fortran EPOS common block.
This class is intended for static use only - it makes no sense to instantiate it.
Definition at line 131 of file EPOS_Wrapper.h.
|
inlinestaticprotected |
navigate a byte array
Definition at line 251 of file EPOS_Wrapper.h.
References dtNoiseDBValidation_cfg::cerr, epos_bytes_allocation, hepcom, hitfit::return, and s_sizeof_real.
Referenced by e(), m(), px(), py(), pz(), t(), x(), y(), and z().
|
inlinestaticprotected |
navigate a byte array
Definition at line 269 of file EPOS_Wrapper.h.
References dtNoiseDBValidation_cfg::cerr, epos_bytes_allocation, hepcom, hitfit::return, and s_sizeof_int.
Referenced by event_number(), first_child(), first_parent(), id(), last_child(), last_parent(), number_entries(), and status().
|
inlinestatic |
Energy.
Definition at line 436 of file EPOS_Wrapper.h.
References byte_num_to_double(), max_number_entries(), sizeof_int(), and sizeof_real().
Referenced by EPOS::IO_EPOS::build_particle(), and print_hepcom_particle().
|
inlinestatic |
event number
Definition at line 333 of file EPOS_Wrapper.h.
References byte_num_to_int().
Referenced by EPOS::IO_EPOS::build_end_vertex(), EPOS::IO_EPOS::build_production_vertex(), EPOS::IO_EPOS::fill_next_event(), and print_hepcom().
|
inlinestatic |
index of 1st daughter
Definition at line 384 of file EPOS_Wrapper.h.
References byte_num_to_int(), max_number_entries(), number_entries(), and sizeof_int().
Referenced by EPOS::IO_EPOS::build_end_vertex(), last_child(), number_children(), and print_hepcom_particle().
|
inlinestatic |
index of 1st mother
Definition at line 352 of file EPOS_Wrapper.h.
References byte_num_to_int(), max_number_entries(), number_entries(), dbtoconf::parent, and sizeof_int().
Referenced by EPOS::IO_EPOS::build_production_vertex(), last_parent(), number_parents(), and print_hepcom_particle().
|
inlinestatic |
PDG particle id.
Definition at line 346 of file EPOS_Wrapper.h.
References byte_num_to_int(), max_number_entries(), and sizeof_int().
Referenced by EPOS::IO_EPOS::build_particle().
|
inlinestatic |
index of last daughter
Definition at line 392 of file EPOS_Wrapper.h.
References byte_num_to_int(), first_child(), max_number_entries(), number_entries(), and sizeof_int().
Referenced by EPOS::IO_EPOS::build_end_vertex(), number_children(), and print_hepcom_particle().
|
inlinestatic |
index of last mother
Definition at line 360 of file EPOS_Wrapper.h.
References byte_num_to_int(), first_parent(), max_number_entries(), number_entries(), dbtoconf::parent, and sizeof_int().
Referenced by EPOS::IO_EPOS::build_production_vertex(), number_parents(), and print_hepcom_particle().
|
inlinestatic |
generated mass
Definition at line 442 of file EPOS_Wrapper.h.
References byte_num_to_double(), max_number_entries(), sizeof_int(), and sizeof_real().
Referenced by EPOS::IO_EPOS::build_particle(), and print_hepcom_particle().
|
inlinestatic |
size of common block
Definition at line 225 of file EPOS_Wrapper.h.
References s_max_number_entries.
Referenced by e(), first_child(), first_parent(), id(), last_child(), last_parent(), m(), number_entries(), print_hepcom(), px(), py(), pz(), set_children(), set_id(), set_mass(), set_momentum(), set_parents(), set_position(), set_status(), t(), EPOS::IO_EPOS::write_event(), x(), y(), z(), and zero_everything().
|
inlinestatic |
number of children
Definition at line 410 of file EPOS_Wrapper.h.
References first_child(), and last_child().
Referenced by EPOS::IO_EPOS::build_end_vertex().
|
inlinestatic |
num entries in current evt
Definition at line 336 of file EPOS_Wrapper.h.
References byte_num_to_int(), max_number_entries(), and sizeof_int().
Referenced by EPOS::IO_EPOS::fill_next_event(), first_child(), first_parent(), last_child(), last_parent(), and print_hepcom().
|
inlinestatic |
number of parents
Definition at line 378 of file EPOS_Wrapper.h.
References first_parent(), and last_parent().
Referenced by EPOS::IO_EPOS::build_production_vertex().
|
inlinestatic |
write information from EPOS common block
Definition at line 568 of file EPOS_Wrapper.h.
References event_number(), i, max_number_entries(), number_entries(), print_hepcom_particle(), print_legend(), sizeof_int(), and sizeof_real().
|
inlinestatic |
write particle information to ostr
Definition at line 590 of file EPOS_Wrapper.h.
References e(), first_child(), first_parent(), last_child(), last_parent(), m(), dbtoconf::outline, px(), py(), pz(), status(), t(), x(), y(), and z().
Referenced by print_hepcom().
|
inlinestaticprotected |
print output legend
Definition at line 605 of file EPOS_Wrapper.h.
References dbtoconf::outline.
Referenced by print_hepcom().
|
inlinestatic |
X momentum.
Definition at line 417 of file EPOS_Wrapper.h.
References byte_num_to_double(), max_number_entries(), sizeof_int(), and sizeof_real().
Referenced by EPOS::IO_EPOS::build_particle(), and print_hepcom_particle().
|
inlinestatic |
Y momentum.
Definition at line 423 of file EPOS_Wrapper.h.
References byte_num_to_double(), max_number_entries(), sizeof_int(), and sizeof_real().
Referenced by EPOS::IO_EPOS::build_particle(), and print_hepcom_particle().
|
inlinestatic |
Z momentum.
Definition at line 430 of file EPOS_Wrapper.h.
References byte_num_to_double(), max_number_entries(), sizeof_int(), and sizeof_real().
Referenced by EPOS::IO_EPOS::build_particle(), and print_hepcom_particle().
|
inlinestatic |
define children of a particle
Definition at line 504 of file EPOS_Wrapper.h.
References max_number_entries(), sizeof_int(), and write_byte_num().
Referenced by EPOS::IO_EPOS::write_event(), and zero_everything().
|
inlinestatic |
set event number
Definition at line 476 of file EPOS_Wrapper.h.
References write_byte_num().
Referenced by EPOS::IO_EPOS::write_event(), and zero_everything().
|
inlinestatic |
set particle ID
Definition at line 488 of file EPOS_Wrapper.h.
References max_number_entries(), sizeof_int(), and write_byte_num().
Referenced by EPOS::IO_EPOS::write_event(), and zero_everything().
|
inlinestatic |
set particle mass
Definition at line 528 of file EPOS_Wrapper.h.
References max_number_entries(), sizeof_int(), sizeof_real(), and write_byte_num().
Referenced by EPOS::IO_EPOS::write_event(), and zero_everything().
|
inlinestatic |
define size of common block
Definition at line 247 of file EPOS_Wrapper.h.
References s_max_number_entries, and findQualityFiles::size.
|
inlinestatic |
set particle momentum
Definition at line 514 of file EPOS_Wrapper.h.
References max_number_entries(), sizeof_int(), sizeof_real(), and write_byte_num().
Referenced by EPOS::IO_EPOS::write_event(), and zero_everything().
|
inlinestatic |
set number of entries in EPOS
Definition at line 479 of file EPOS_Wrapper.h.
References sizeof_int(), and write_byte_num().
Referenced by EPOS::IO_EPOS::write_event(), and zero_everything().
|
inlinestatic |
define parents of a particle
Definition at line 494 of file EPOS_Wrapper.h.
References max_number_entries(), sizeof_int(), and write_byte_num().
Referenced by EPOS::IO_EPOS::write_event(), and zero_everything().
|
inlinestatic |
set particle production vertex
Definition at line 535 of file EPOS_Wrapper.h.
References max_number_entries(), sizeof_int(), sizeof_real(), and write_byte_num().
Referenced by EPOS::IO_EPOS::write_event(), and zero_everything().
|
inlinestatic |
define size of integer
Definition at line 228 of file EPOS_Wrapper.h.
References dtNoiseDBValidation_cfg::cerr, s_sizeof_int, and findQualityFiles::size.
|
inlinestatic |
define size of real
Definition at line 238 of file EPOS_Wrapper.h.
References dtNoiseDBValidation_cfg::cerr, s_sizeof_real, and findQualityFiles::size.
|
inlinestatic |
set particle status
Definition at line 482 of file EPOS_Wrapper.h.
References max_number_entries(), sizeof_int(), and write_byte_num().
Referenced by EPOS::IO_EPOS::write_event(), and zero_everything().
|
inlinestatic |
size of integer in bytes
Definition at line 221 of file EPOS_Wrapper.h.
References s_sizeof_int.
Referenced by e(), first_child(), first_parent(), id(), last_child(), last_parent(), m(), number_entries(), print_hepcom(), px(), py(), pz(), set_children(), set_id(), set_mass(), set_momentum(), set_number_entries(), set_parents(), set_position(), set_status(), status(), t(), x(), y(), and z().
|
inlinestatic |
size of real in bytes
Definition at line 223 of file EPOS_Wrapper.h.
References s_sizeof_real.
Referenced by e(), m(), print_hepcom(), px(), py(), pz(), set_mass(), set_momentum(), set_position(), t(), x(), y(), and z().
|
inlinestatic |
status code
Definition at line 343 of file EPOS_Wrapper.h.
References byte_num_to_int(), and sizeof_int().
Referenced by EPOS::IO_EPOS::build_particle(), and print_hepcom_particle().
|
inlinestatic |
production time
Definition at line 469 of file EPOS_Wrapper.h.
References byte_num_to_double(), max_number_entries(), sizeof_int(), and sizeof_real().
Referenced by EPOS::IO_EPOS::build_end_vertex(), EPOS::IO_EPOS::build_production_vertex(), and print_hepcom_particle().
|
inlinestaticprotected |
pretend common block is an array of bytes
Definition at line 291 of file EPOS_Wrapper.h.
References dtNoiseDBValidation_cfg::cerr, epos_bytes_allocation, hepcom, and s_sizeof_real.
Referenced by set_children(), set_event_number(), set_id(), set_mass(), set_momentum(), set_number_entries(), set_parents(), set_position(), and set_status().
|
inlinestaticprotected |
pretend common block is an array of bytes
Definition at line 308 of file EPOS_Wrapper.h.
References dtNoiseDBValidation_cfg::cerr, epos_bytes_allocation, hepcom, and s_sizeof_int.
|
inlinestatic |
X Production vertex.
Definition at line 448 of file EPOS_Wrapper.h.
References byte_num_to_double(), max_number_entries(), sizeof_int(), and sizeof_real().
Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), EPOS::IO_EPOS::build_end_vertex(), EPOS::IO_EPOS::build_production_vertex(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), and print_hepcom_particle().
|
inlinestatic |
Y Production vertex.
Definition at line 455 of file EPOS_Wrapper.h.
References byte_num_to_double(), max_number_entries(), sizeof_int(), and sizeof_real().
Referenced by svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), EPOS::IO_EPOS::build_end_vertex(), EPOS::IO_EPOS::build_production_vertex(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), and print_hepcom_particle().
|
inlinestatic |
Z Production vertex.
Definition at line 462 of file EPOS_Wrapper.h.
References byte_num_to_double(), max_number_entries(), sizeof_int(), and sizeof_real().
Referenced by EPOS::IO_EPOS::build_end_vertex(), EPOS::IO_EPOS::build_production_vertex(), geometryXMLparser.Alignable::pos(), and print_hepcom_particle().
|
inlinestatic |
set all entries in EPOS to zero
Definition at line 553 of file EPOS_Wrapper.h.
References i, max_number_entries(), set_children(), set_event_number(), set_id(), set_mass(), set_momentum(), set_number_entries(), set_parents(), set_position(), and set_status().
|
staticprivate |
Definition at line 214 of file EPOS_Wrapper.h.
Referenced by max_number_entries(), and set_max_number_entries().
|
staticprivate |
Definition at line 212 of file EPOS_Wrapper.h.
Referenced by byte_num_to_int(), set_sizeof_int(), sizeof_int(), and write_byte_num().
|
staticprivate |
Definition at line 213 of file EPOS_Wrapper.h.
Referenced by byte_num_to_double(), set_sizeof_real(), sizeof_real(), and write_byte_num().