DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Types | Public Member Functions | Public Attributes | List of all members
dd4hep::sim::HepMC::EventStream Class Reference

HepMC EventStream class used internally by the Geant4EventReaderHepMC plugin. More...

Public Types

typedef std::map< int, Geant4Vertex * > Vertices
 
typedef std::map< int, Geant4Particle * > Particles
 

Public Member Functions

 EventStream (std::istream &in)
 Default constructor. More...
 
bool ok () const
 Check if data stream is in proper state and has data. More...
 
Geant4Vertexvertex (int i)
 
Particlesparticles ()
 
Verticesvertices ()
 
void set_io (int typ, const std::string &k)
 
void use_default_units ()
 
bool read ()
 
void clear ()
 

Public Attributes

std::istream & instream
 
std::string key
 
double mom_unit
 
double pos_unit
 
int io_type
 
float xsection
 
float xsection_err
 
EventHeader header
 
Vertices m_vertices
 
Particles m_particles
 

Detailed Description

HepMC EventStream class used internally by the Geant4EventReaderHepMC plugin.

Definition at line 147 of file Geant4EventReaderHepMC.cpp.

Member Typedef Documentation

◆ Particles

Definition at line 150 of file Geant4EventReaderHepMC.cpp.

◆ Vertices

Definition at line 149 of file Geant4EventReaderHepMC.cpp.

Constructor & Destructor Documentation

◆ EventStream()

dd4hep::sim::HepMC::EventStream::EventStream ( std::istream &  in)
inline

Default constructor.

Definition at line 165 of file Geant4EventReaderHepMC.cpp.

Member Function Documentation

◆ clear()

void HepMC::EventStream::clear ( )

Definition at line 723 of file Geant4EventReaderHepMC.cpp.

◆ ok()

bool HepMC::EventStream::ok ( ) const

Check if data stream is in proper state and has data.

Definition at line 714 of file Geant4EventReaderHepMC.cpp.

◆ particles()

Particles& dd4hep::sim::HepMC::EventStream::particles ( )
inline

Definition at line 171 of file Geant4EventReaderHepMC.cpp.

◆ read()

bool HepMC::EventStream::read ( )

Definition at line 728 of file Geant4EventReaderHepMC.cpp.

◆ set_io()

void dd4hep::sim::HepMC::EventStream::set_io ( int  typ,
const std::string &  k 
)
inline

Definition at line 173 of file Geant4EventReaderHepMC.cpp.

◆ use_default_units()

void dd4hep::sim::HepMC::EventStream::use_default_units ( )
inline

Definition at line 175 of file Geant4EventReaderHepMC.cpp.

◆ vertex()

Geant4Vertex* dd4hep::sim::HepMC::EventStream::vertex ( int  i)

◆ vertices()

Vertices& dd4hep::sim::HepMC::EventStream::vertices ( )
inline

Definition at line 172 of file Geant4EventReaderHepMC.cpp.

Member Data Documentation

◆ header

EventHeader dd4hep::sim::HepMC::EventStream::header

Definition at line 160 of file Geant4EventReaderHepMC.cpp.

◆ instream

std::istream& dd4hep::sim::HepMC::EventStream::instream

Definition at line 152 of file Geant4EventReaderHepMC.cpp.

◆ io_type

int dd4hep::sim::HepMC::EventStream::io_type

Definition at line 157 of file Geant4EventReaderHepMC.cpp.

◆ key

std::string dd4hep::sim::HepMC::EventStream::key

Definition at line 155 of file Geant4EventReaderHepMC.cpp.

◆ m_particles

Particles dd4hep::sim::HepMC::EventStream::m_particles

Definition at line 162 of file Geant4EventReaderHepMC.cpp.

◆ m_vertices

Vertices dd4hep::sim::HepMC::EventStream::m_vertices

Definition at line 161 of file Geant4EventReaderHepMC.cpp.

◆ mom_unit

double dd4hep::sim::HepMC::EventStream::mom_unit

Definition at line 156 of file Geant4EventReaderHepMC.cpp.

◆ pos_unit

double dd4hep::sim::HepMC::EventStream::pos_unit

Definition at line 156 of file Geant4EventReaderHepMC.cpp.

◆ xsection

float dd4hep::sim::HepMC::EventStream::xsection

Definition at line 159 of file Geant4EventReaderHepMC.cpp.

◆ xsection_err

float dd4hep::sim::HepMC::EventStream::xsection_err

Definition at line 159 of file Geant4EventReaderHepMC.cpp.


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