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 127 of file EPOS_Wrapper.h.
|
inlinestaticprotected |
navigate a byte array
Definition at line 238 of file EPOS_Wrapper.h.
References b, DMR_cfg::cerr, epos_bytes_allocation, hepcom, mathSSE::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 253 of file EPOS_Wrapper.h.
References b, DMR_cfg::cerr, epos_bytes_allocation, hepcom, mathSSE::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 383 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(), print_hepcom_particle(), and set_momentum().
|
inlinestatic |
event number
Definition at line 308 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 346 of file EPOS_Wrapper.h.
References byte_num_to_int(), submitPVValidationJobs::child, 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 321 of file EPOS_Wrapper.h.
References byte_num_to_int(), max_number_entries(), number_entries(), class-composition::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 317 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 351 of file EPOS_Wrapper.h.
References byte_num_to_int(), submitPVValidationJobs::child, 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 326 of file EPOS_Wrapper.h.
References byte_num_to_int(), first_parent(), max_number_entries(), number_entries(), class-composition::parent, and sizeof_int().
Referenced by EPOS::IO_EPOS::build_production_vertex(), number_parents(), and print_hepcom_particle().
|
inlinestatic |
generated mass
Definition at line 387 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 216 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 366 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 310 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 341 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 487 of file EPOS_Wrapper.h.
References event_number(), mps_fire::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 504 of file EPOS_Wrapper.h.
References e(), first_child(), first_parent(), mps_fire::i, last_child(), last_parent(), m(), px(), py(), pz(), status(), t(), x(), y(), and z().
Referenced by print_hepcom().
|
inlinestaticprotected |
print output legend
Definition at line 531 of file EPOS_Wrapper.h.
Referenced by print_hepcom().
|
inlinestatic |
X momentum.
Definition at line 371 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(), print_hepcom_particle(), and set_momentum().
|
inlinestatic |
Y momentum.
Definition at line 375 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(), print_hepcom_particle(), and set_momentum().
|
inlinestatic |
Z momentum.
Definition at line 379 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(), print_hepcom_particle(), and set_momentum().
|
inlinestatic |
define children of a particle
Definition at line 434 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 411 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 421 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 450 of file EPOS_Wrapper.h.
References EgHLTOffHistBins_cfi::mass, 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 236 of file EPOS_Wrapper.h.
References s_max_number_entries, and findQualityFiles::size.
|
inlinestatic |
set particle momentum
Definition at line 441 of file EPOS_Wrapper.h.
References e(), max_number_entries(), px(), py(), pz(), 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 413 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 427 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 456 of file EPOS_Wrapper.h.
References max_number_entries(), sizeof_int(), sizeof_real(), t(), write_byte_num(), x(), y(), and z().
Referenced by EPOS::IO_EPOS::write_event(), and zero_everything().
|
inlinestatic |
define size of integer
Definition at line 218 of file EPOS_Wrapper.h.
References DMR_cfg::cerr, s_sizeof_int, and findQualityFiles::size.
|
inlinestatic |
define size of real
Definition at line 227 of file EPOS_Wrapper.h.
References DMR_cfg::cerr, s_sizeof_real, and findQualityFiles::size.
|
inlinestatic |
set particle status
Definition at line 415 of file EPOS_Wrapper.h.
References max_number_entries(), sizeof_int(), status(), and write_byte_num().
Referenced by EPOS::IO_EPOS::write_event(), and zero_everything().
|
inlinestatic |
size of integer in bytes
Definition at line 212 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 214 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 315 of file EPOS_Wrapper.h.
References byte_num_to_int(), and sizeof_int().
Referenced by EPOS::IO_EPOS::build_particle(), print_hepcom_particle(), and set_status().
|
inlinestatic |
production time
Definition at line 406 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(), print_hepcom_particle(), and set_position().
|
inlinestaticprotected |
pretend common block is an array of bytes
Definition at line 272 of file EPOS_Wrapper.h.
References b, DMR_cfg::cerr, epos_bytes_allocation, dqmMemoryStats::float, hepcom, recoMuon::in, 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 286 of file EPOS_Wrapper.h.
References b, DMR_cfg::cerr, epos_bytes_allocation, hepcom, recoMuon::in, createfilelist::int, and s_sizeof_int.
|
inlinestatic |
X Production vertex.
Definition at line 391 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__(), EPOS::IO_EPOS::build_end_vertex(), EPOS::IO_EPOS::build_production_vertex(), geometryXMLparser.Alignable::pos(), print_hepcom_particle(), ntupleDataFormat._HitObject::r(), ntupleDataFormat._HitObject::r3D(), and set_position().
|
inlinestatic |
Y Production vertex.
Definition at line 396 of file EPOS_Wrapper.h.
References byte_num_to_double(), max_number_entries(), sizeof_int(), and sizeof_real().
Referenced by svgfig.Ellipse::__repr__(), EPOS::IO_EPOS::build_end_vertex(), EPOS::IO_EPOS::build_production_vertex(), geometryXMLparser.Alignable::pos(), print_hepcom_particle(), ntupleDataFormat._HitObject::r(), ntupleDataFormat._HitObject::r3D(), and set_position().
|
inlinestatic |
Z Production vertex.
Definition at line 401 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(), print_hepcom_particle(), ntupleDataFormat._HitObject::r3D(), and set_position().
|
inlinestatic |
set all entries in EPOS to zero
Definition at line 473 of file EPOS_Wrapper.h.
References mps_fire::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 206 of file EPOS_Wrapper.h.
Referenced by max_number_entries(), and set_max_number_entries().
|
staticprivate |
Definition at line 204 of file EPOS_Wrapper.h.
Referenced by byte_num_to_int(), set_sizeof_int(), sizeof_int(), and write_byte_num().
|
staticprivate |
Definition at line 205 of file EPOS_Wrapper.h.
Referenced by byte_num_to_double(), set_sizeof_real(), sizeof_real(), and write_byte_num().