DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Classes | Enumerations | Functions
dd4hep::sim::HepMC Namespace Reference

HepMC namespace declaration. More...

Classes

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

Enumerations

enum  known_io {
  gen =1, ascii, extascii, ascii_pdt,
  extascii_pdt
}
 The known_io enum is used to track which type of input is being read. More...
 

Functions

char get_input (std::istream &is, std::istringstream &iline)
 
int read_until_event_end (std::istream &is)
 
int read_weight_names (EventStream &, std::istringstream &iline)
 
int read_particle (EventStream &info, std::istringstream &iline, Geant4Particle *p)
 
int read_vertex (EventStream &info, std::istream &is, std::istringstream &iline)
 
int read_event_header (EventStream &info, std::istringstream &input, EventHeader &header)
 
int read_cross_section (EventStream &info, std::istringstream &input)
 
int read_units (EventStream &info, std::istringstream &input)
 
int read_heavy_ion (EventStream &, std::istringstream &input)
 
int read_pdf (EventStream &, std::istringstream &input)
 
Geant4Vertexvertex (EventStream &info, int i)
 
void fix_particles (EventStream &info)
 

Detailed Description

HepMC namespace declaration.

Enumeration Type Documentation

◆ known_io

The known_io enum is used to track which type of input is being read.

Enumerator
gen 
ascii 
extascii 
ascii_pdt 
extascii_pdt 

Definition at line 138 of file Geant4EventReaderHepMC.cpp.

Function Documentation

◆ fix_particles()

void dd4hep::sim::HepMC::fix_particles ( EventStream info)

Particles originating from the beam (=no parents) must be be stripped off their parents and the status set to G4PARTICLE_GEN_DECAYED!

Definition at line 301 of file Geant4EventReaderHepMC.cpp.

◆ get_input()

char dd4hep::sim::HepMC::get_input ( std::istream &  is,
std::istringstream &  iline 
)

Definition at line 368 of file Geant4EventReaderHepMC.cpp.

◆ read_cross_section()

int dd4hep::sim::HepMC::read_cross_section ( EventStream info,
std::istringstream &  input 
)

Definition at line 628 of file Geant4EventReaderHepMC.cpp.

◆ read_event_header()

int dd4hep::sim::HepMC::read_event_header ( EventStream info,
std::istringstream &  input,
EventHeader header 
)

Definition at line 576 of file Geant4EventReaderHepMC.cpp.

◆ read_heavy_ion()

int dd4hep::sim::HepMC::read_heavy_ion ( EventStream ,
std::istringstream &  input 
)

Definition at line 651 of file Geant4EventReaderHepMC.cpp.

◆ read_particle()

int dd4hep::sim::HepMC::read_particle ( EventStream info,
std::istringstream &  iline,
Geant4Particle p 
)

If there is an end vertex, the particle already decayed

Keep a copy of the full generator status

Definition at line 434 of file Geant4EventReaderHepMC.cpp.

◆ read_pdf()

int dd4hep::sim::HepMC::read_pdf ( EventStream ,
std::istringstream &  input 
)

Definition at line 677 of file Geant4EventReaderHepMC.cpp.

◆ read_units()

int dd4hep::sim::HepMC::read_units ( EventStream info,
std::istringstream &  input 
)

Definition at line 633 of file Geant4EventReaderHepMC.cpp.

◆ read_until_event_end()

int dd4hep::sim::HepMC::read_until_event_end ( std::istream &  is)

Definition at line 388 of file Geant4EventReaderHepMC.cpp.

◆ read_vertex()

int dd4hep::sim::HepMC::read_vertex ( EventStream info,
std::istream &  is,
std::istringstream &  iline 
)

Definition at line 493 of file Geant4EventReaderHepMC.cpp.

◆ read_weight_names()

int dd4hep::sim::HepMC::read_weight_names ( EventStream ,
std::istringstream &  iline 
)

Definition at line 401 of file Geant4EventReaderHepMC.cpp.

◆ vertex()

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

Definition at line 363 of file Geant4EventReaderHepMC.cpp.