HepMC3 event record library
Static Public Member Functions | Static Private Member Functions
Print Class Reference

Detailed Description

Provides different printing formats.

Definition at line 26 of file Print.h.

#include <Print.h>

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)
 
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)
 
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)
 
static void line (std::ostream &os, ConstGenVertexPtr v, bool attributes=false)
 Print one-line info. More...
 
static void line (ConstGenVertexPtr v, bool attributes=false)
 
static void line (std::ostream &os, ConstGenParticlePtr p, bool attributes=false)
 Print one-line info. More...
 
static void line (ConstGenParticlePtr p, bool attributes=false)
 
static void line (std::ostream &os, shared_ptr< GenCrossSection > &cs)
 Print one-line info. More...
 
static void line (shared_ptr< GenCrossSection > &cs)
 
static void line (std::ostream &os, shared_ptr< GenHeavyIon > &hi)
 Print one-line info. More...
 
static void line (shared_ptr< GenHeavyIon > &hi)
 
static void line (std::ostream &os, shared_ptr< GenPdfInfo > &pi)
 Print one-line info. More...
 
static void line (shared_ptr< GenPdfInfo > &pi)
 

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...
 

Member Function Documentation

◆ content()

void content ( std::ostream &  os,
const GenEvent event 
)
static

◆ line() [1/6]

void line ( std::ostream &  os,
const GenEvent event,
bool  attributes = false 
)
static

Print one-line info.

Examples
basic_tree.cc, and HepMC3_fileIO_example.cc.

Definition at line 165 of file Print.cc.

References GenEvent::attribute_as_string(), and GenEvent::attribute_names().

◆ line() [2/6]

void line ( std::ostream &  os,
ConstGenVertexPtr  v,
bool  attributes = false 
)
static

Print one-line info.

Definition at line 171 of file Print.cc.

References FourVector::t(), FourVector::x(), FourVector::y(), and FourVector::z().

◆ line() [3/6]

void line ( std::ostream &  os,
ConstGenParticlePtr  p,
bool  attributes = false 
)
static

Print one-line info.

Definition at line 190 of file Print.cc.

References FourVector::e(), FourVector::px(), FourVector::py(), and FourVector::pz().

◆ line() [4/6]

void line ( std::ostream &  os,
shared_ptr< GenCrossSection > &  cs 
)
static

Print one-line info.

Definition at line 237 of file Print.cc.

◆ line() [5/6]

void line ( std::ostream &  os,
shared_ptr< GenHeavyIon > &  hi 
)
static

Print one-line info.

Definition at line 244 of file Print.cc.

◆ line() [6/6]

void line ( std::ostream &  os,
shared_ptr< GenPdfInfo > &  pi 
)
static

Print one-line info.

Definition at line 260 of file Print.cc.

◆ listing() [1/3]

void listing ( std::ostream &  os,
const GenEvent event,
unsigned short  precision = 2 
)
static

◆ listing() [2/3]

void listing ( std::ostream &  os,
ConstGenVertexPtr  v 
)
staticprivate

Helper function for printing a vertex in listing format.

Definition at line 89 of file Print.cc.

References FourVector::is_zero(), Print::listing(), FourVector::t(), FourVector::x(), FourVector::y(), and FourVector::z().

◆ listing() [3/3]

void listing ( std::ostream &  os,
ConstGenParticlePtr  p 
)
staticprivate

Helper function for printing a particle in listing format.

Definition at line 131 of file Print.cc.

References FourVector::e(), FourVector::px(), FourVector::py(), and FourVector::pz().


The documentation for this class was generated from the following files: