HepMC3 event record library
|
Provides different printing formats. More...
#include <Print.h>
Public Member Functions | |
Print & | operator= (const Print &)=delete |
deleted copy assignment operator More... | |
Static Public Member Functions | |
static void | content (std::ostream &os, const GenEvent &event) |
Print content of all GenEvent containers. More... | |
static void | content (const GenEvent &event) |
Print content of all GenEvent containers to std::cout. More... | |
static void | listing (std::ostream &os, const GenEvent &event, unsigned short precision=2) |
Print event in listing (HepMC2) format. More... | |
static void | listing (const GenEvent &event, unsigned short precision=2) |
Print event in listing (HepMC2) format to std::cout. More... | |
static void | listing (std::ostream &os, const GenRunInfo &ri, unsigned short precision=2) |
Print runinfo in listing. More... | |
static void | listing (const GenRunInfo &ri, unsigned short precision=2) |
Print runinfo in listing to std::cout. More... | |
static void | line (std::ostream &os, const GenEvent &event, bool attributes=false) |
Print one-line info. More... | |
static void | line (const GenEvent &event, bool attributes=false) |
Print one-line info to std::cout. More... | |
static void | line (std::ostream &os, const GenRunInfo &RunInfo, bool attributes=false) |
Print one-line info. More... | |
static void | line (const GenRunInfo &RunInfo, bool attributes=false) |
Print one-line info to std::cout. More... | |
static void | line (std::ostream &os, const GenRunInfo::ToolInfo &t) |
Print one-line info. More... | |
static void | line (const GenRunInfo::ToolInfo &t) |
Print one-line info to std::cout. More... | |
static void | line (std::ostream &os, ConstGenVertexPtr v, bool attributes=false) |
Print one-line info. More... | |
static void | line (ConstGenVertexPtr v, bool attributes=false) |
Print one-line info to std::cout. More... | |
static void | line (std::ostream &os, const FourVector &p) |
Print one-line info. More... | |
static void | line (const FourVector &p) |
Print one-line info to std::cout. More... | |
static void | line (std::ostream &os, ConstGenParticlePtr p, bool attributes=false) |
Print one-line info. More... | |
static void | line (ConstGenParticlePtr p, bool attributes=false) |
Print one-line info to std::cout. More... | |
static void | line (std::ostream &os, std::shared_ptr< GenCrossSection > &cs) |
Print one-line info. More... | |
static void | line (std::shared_ptr< GenCrossSection > &cs) |
Print one-line info to std::cout. More... | |
static void | line (std::ostream &os, std::shared_ptr< GenHeavyIon > &hi) |
Print one-line info. More... | |
static void | line (std::shared_ptr< GenHeavyIon > &hi) |
Print one-line info to std::cout. More... | |
static void | line (std::ostream &os, std::shared_ptr< GenPdfInfo > &pi) |
Print one-line info. More... | |
static void | line (std::shared_ptr< GenPdfInfo > &pi) |
Print one-line info to std::cout. More... | |
Private Member Functions | |
virtual | ~Print () |
Destructor. More... | |
Static Private Member Functions | |
static void | listing (std::ostream &os, ConstGenVertexPtr v) |
Helper function for printing a vertex in listing format. More... | |
static void | listing (std::ostream &os, ConstGenParticlePtr p) |
Helper function for printing a particle in listing format. More... | |
|
static |
Print content of all GenEvent containers.
Definition at line 17 of file Print.cc.
References GenEvent::attributes(), Print::line(), GenEvent::particles(), GenEvent::vertices(), and GenEvent::weights().
|
inlinestatic |
Print content of all GenEvent containers to std::cout.
Definition at line 32 of file Print.h.
References Print::content().
|
static |
Print one-line info.
Definition at line 202 of file Print.cc.
References GenEvent::attribute_as_string(), and GenEvent::attribute_names().
|
inlinestatic |
|
static |
Print one-line info.
Definition at line 208 of file Print.cc.
References GenRunInfo::attribute_as_string(), GenRunInfo::attribute_names(), and GenRunInfo::tools().
|
inlinestatic |
|
static |
Print one-line info.
Definition at line 214 of file Print.cc.
References GenRunInfo::ToolInfo::description, GenRunInfo::ToolInfo::name, and GenRunInfo::ToolInfo::version.
|
inlinestatic |
|
static |
Print one-line info.
Definition at line 218 of file Print.cc.
References FourVector::t(), FourVector::x(), FourVector::y(), and FourVector::z().
|
inlinestatic |
|
static |
Print one-line info.
Definition at line 237 of file Print.cc.
References FourVector::e(), FourVector::x(), FourVector::y(), and FourVector::z().
|
inlinestatic |
|
static |
Print one-line info.
Definition at line 257 of file Print.cc.
References FourVector::e(), FourVector::px(), FourVector::py(), and FourVector::pz().
|
inlinestatic |
|
static |
|
inlinestatic |
|
static |
|
inlinestatic |
|
static |
|
inlinestatic |
|
static |
Print event in listing (HepMC2) format.
Definition at line 50 of file Print.cc.
References GenEvent::length_unit(), GenEvent::momentum_unit(), Units::name(), FourVector::t(), GenEvent::vertices(), FourVector::x(), FourVector::y(), and FourVector::z().
|
inlinestatic |
Print event in listing (HepMC2) format to std::cout.
Definition at line 37 of file Print.h.
References Print::listing().
|
static |
Print runinfo in listing.
Definition at line 88 of file Print.cc.
References GenRunInfo::attributes(), HEPMC3_WARNING, Print::line(), GenRunInfo::tools(), and GenRunInfo::weight_names().
|
inlinestatic |
Print runinfo in listing to std::cout.
Definition at line 44 of file Print.h.
References Print::listing().
|
staticprivate |
Helper function for printing a vertex in listing format.
Definition at line 126 of file Print.cc.
References FourVector::is_zero(), Print::listing(), FourVector::t(), FourVector::x(), FourVector::y(), and FourVector::z().
|
staticprivate |
Helper function for printing a particle in listing format.
Definition at line 168 of file Print.cc.
References FourVector::e(), FourVector::px(), FourVector::py(), and FourVector::pz().