HepMC Reference Documentation

HepMC

HepMC::CommonIO Class Reference

#include <CommonIO.h>

List of all members.

Public Member Functions

 CommonIO ()
 ~CommonIO ()
std::string IO_GenEvent_Key () const
std::string IO_GenEvent_End () const
std::string IO_Ascii_Key () const
std::string IO_Ascii_End () const
std::string IO_ExtendedAscii_Key () const
std::string IO_ExtendedAscii_End () const
int io_type () const
 get IO type
void write_IO_GenEvent_Key (std::ostream &)
void write_IO_GenEvent_End (std::ostream &)
void write_IO_Ascii_Key (std::ostream &)
void write_IO_Ascii_End (std::ostream &)
void write_IO_ExtendedAscii_Key (std::ostream &)
void write_IO_ExtendedAscii_End (std::ostream &)
void write_IO_Ascii_PDT_Key (std::ostream &)
void write_IO_Ascii_PDT_End (std::ostream &)
void write_IO_ExtendedAscii_PDT_Key (std::ostream &)
void write_IO_ExtendedAscii_PDT_End (std::ostream &)
int find_file_type (std::istream &)
 look for line type (key)
int find_end_key (std::istream &)
 look for line type (key)
bool read_io_ascii (std::istream *is, GenEvent *evt)
bool read_io_extendedascii (std::istream *is, GenEvent *evt)
bool read_io_genevent (std::istream *is, GenEvent *evt)
bool read_io_particle_data_table (std::istream *, ParticleDataTable *)

Protected Member Functions

HeavyIonread_heavy_ion (std::istream *)
PdfInforead_pdf_info (std::istream *)
GenParticleread_particle (std::istream *, TempParticleMap &)
GenVertexread_vertex (std::istream *, TempParticleMap &)
ParticleDataread_particle_data (std::istream *, ParticleDataTable *)


Detailed Description

Definition at line 24 of file CommonIO.h.


Constructor & Destructor Documentation

HepMC::CommonIO::CommonIO (  )  [inline]

Definition at line 104 of file CommonIO.h.

HepMC::CommonIO::~CommonIO (  )  [inline]

Definition at line 29 of file CommonIO.h.


Member Function Documentation

std::string HepMC::CommonIO::IO_GenEvent_Key (  )  const [inline]

Definition at line 32 of file CommonIO.h.

std::string HepMC::CommonIO::IO_GenEvent_End (  )  const [inline]

Definition at line 33 of file CommonIO.h.

std::string HepMC::CommonIO::IO_Ascii_Key (  )  const [inline]

Definition at line 35 of file CommonIO.h.

std::string HepMC::CommonIO::IO_Ascii_End (  )  const [inline]

Definition at line 36 of file CommonIO.h.

std::string HepMC::CommonIO::IO_ExtendedAscii_Key (  )  const [inline]

Definition at line 38 of file CommonIO.h.

std::string HepMC::CommonIO::IO_ExtendedAscii_End (  )  const [inline]

Definition at line 39 of file CommonIO.h.

int HepMC::CommonIO::io_type (  )  const [inline]

get IO type

Definition at line 41 of file CommonIO.h.

Referenced by HepMC::IO_GenEvent::fill_next_event().

void HepMC::CommonIO::write_IO_GenEvent_Key ( std::ostream &   )  [inline]

Definition at line 118 of file CommonIO.h.

Referenced by HepMC::IO_GenEvent::write_event().

void HepMC::CommonIO::write_IO_GenEvent_End ( std::ostream &   )  [inline]

Definition at line 121 of file CommonIO.h.

Referenced by HepMC::IO_GenEvent::write_end_listing().

void HepMC::CommonIO::write_IO_Ascii_Key ( std::ostream &   )  [inline]

Definition at line 124 of file CommonIO.h.

void HepMC::CommonIO::write_IO_Ascii_End ( std::ostream &   )  [inline]

Definition at line 127 of file CommonIO.h.

Referenced by HepMC::IO_Ascii::write_end_listing().

void HepMC::CommonIO::write_IO_ExtendedAscii_Key ( std::ostream &   )  [inline]

Definition at line 130 of file CommonIO.h.

Referenced by HepMC::IO_ExtendedAscii::write_event().

void HepMC::CommonIO::write_IO_ExtendedAscii_End ( std::ostream &   )  [inline]

Definition at line 133 of file CommonIO.h.

Referenced by HepMC::IO_ExtendedAscii::write_end_listing().

void HepMC::CommonIO::write_IO_Ascii_PDT_Key ( std::ostream &   )  [inline]

Definition at line 136 of file CommonIO.h.

void HepMC::CommonIO::write_IO_Ascii_PDT_End ( std::ostream &   )  [inline]

Definition at line 139 of file CommonIO.h.

void HepMC::CommonIO::write_IO_ExtendedAscii_PDT_Key ( std::ostream &   )  [inline]

Definition at line 142 of file CommonIO.h.

void HepMC::CommonIO::write_IO_ExtendedAscii_PDT_End ( std::ostream &   )  [inline]

Definition at line 145 of file CommonIO.h.

int HepMC::CommonIO::find_file_type ( std::istream &   ) 

look for line type (key)

Definition at line 17 of file CommonIO.cc.

References HepMC::ascii, HepMC::ascii_pdt, HepMC::extascii, HepMC::extascii_pdt, and HepMC::gen.

Referenced by HepMC::IO_GenEvent::fill_next_event(), HepMC::IO_ExtendedAscii::fill_next_event(), HepMC::IO_Ascii::fill_next_event(), HepMC::IO_ExtendedAscii::fill_particle_data_table(), and HepMC::IO_Ascii::fill_particle_data_table().

int HepMC::CommonIO::find_end_key ( std::istream &   ) 

look for line type (key)

Definition at line 44 of file CommonIO.cc.

References HepMC::ascii, HepMC::ascii_pdt, HepMC::extascii, HepMC::extascii_pdt, and HepMC::gen.

Referenced by HepMC::IO_GenEvent::fill_next_event(), HepMC::IO_ExtendedAscii::fill_next_event(), HepMC::IO_Ascii::fill_next_event(), HepMC::IO_ExtendedAscii::fill_particle_data_table(), and HepMC::IO_Ascii::fill_particle_data_table().

bool HepMC::CommonIO::read_io_ascii ( std::istream *  is,
GenEvent evt 
)

Definition at line 77 of file CommonIO.cc.

References HepMC::GenVertex::add_particle_in(), HepMC::GenEvent::add_vertex(), HepMC::GenEvent::barcode_to_vertex(), HepMC::TempParticleMap::end_vertex(), HepMC::TempParticleMap::order_begin(), HepMC::TempParticleMap::order_end(), p, read_vertex(), HepMC::GenEvent::set_event_number(), HepMC::GenEvent::set_random_states(), HepMC::GenEvent::set_signal_process_id(), HepMC::GenEvent::set_signal_process_vertex(), v, and HepMC::GenEvent::weights().

Referenced by HepMC::IO_GenEvent::fill_next_event(), and HepMC::IO_Ascii::fill_next_event().

bool HepMC::CommonIO::read_io_extendedascii ( std::istream *  is,
GenEvent evt 
)

Definition at line 132 of file CommonIO.cc.

References HepMC::GenVertex::add_particle_in(), HepMC::GenEvent::add_vertex(), HepMC::GenEvent::barcode_to_vertex(), HepMC::TempParticleMap::end_vertex(), HepMC::TempParticleMap::order_begin(), HepMC::TempParticleMap::order_end(), p, read_heavy_ion(), read_pdf_info(), read_vertex(), HepMC::GenEvent::set_alphaQCD(), HepMC::GenEvent::set_alphaQED(), HepMC::GenEvent::set_beam_particles(), HepMC::GenEvent::set_event_number(), HepMC::GenEvent::set_event_scale(), HepMC::GenEvent::set_heavy_ion(), HepMC::GenEvent::set_mpi(), HepMC::GenEvent::set_pdf_info(), HepMC::GenEvent::set_random_states(), HepMC::GenEvent::set_signal_process_id(), HepMC::GenEvent::set_signal_process_vertex(), v, and HepMC::GenEvent::weights().

Referenced by HepMC::IO_GenEvent::fill_next_event(), and HepMC::IO_ExtendedAscii::fill_next_event().

bool HepMC::CommonIO::read_io_genevent ( std::istream *  is,
GenEvent evt 
)

Definition at line 203 of file CommonIO.cc.

References HepMC::GenVertex::add_particle_in(), HepMC::GenEvent::add_vertex(), HepMC::GenEvent::barcode_to_vertex(), HepMC::TempParticleMap::end_vertex(), HepMC::TempParticleMap::order_begin(), HepMC::TempParticleMap::order_end(), p, read_heavy_ion(), read_pdf_info(), read_vertex(), HepMC::GenEvent::set_alphaQCD(), HepMC::GenEvent::set_alphaQED(), HepMC::GenEvent::set_beam_particles(), HepMC::GenEvent::set_event_number(), HepMC::GenEvent::set_event_scale(), HepMC::GenEvent::set_heavy_ion(), HepMC::GenEvent::set_mpi(), HepMC::GenEvent::set_pdf_info(), HepMC::GenEvent::set_random_states(), HepMC::GenEvent::set_signal_process_id(), HepMC::GenEvent::set_signal_process_vertex(), v, and HepMC::GenEvent::weights().

Referenced by HepMC::IO_GenEvent::fill_next_event().

bool HepMC::CommonIO::read_io_particle_data_table ( std::istream *  ,
ParticleDataTable  
)

ParticleDataTable is deprecated. We include this method for reading old files which may have ParticleData information.

Definition at line 278 of file CommonIO.cc.

References read_particle_data().

Referenced by HepMC::IO_ExtendedAscii::fill_particle_data_table(), and HepMC::IO_Ascii::fill_particle_data_table().

HeavyIon * HepMC::CommonIO::read_heavy_ion ( std::istream *   )  [protected]

Definition at line 286 of file CommonIO.cc.

Referenced by read_io_extendedascii(), and read_io_genevent().

PdfInfo * HepMC::CommonIO::read_pdf_info ( std::istream *   )  [protected]

Definition at line 312 of file CommonIO.cc.

Referenced by read_io_extendedascii(), and read_io_genevent().

GenParticle * HepMC::CommonIO::read_particle ( std::istream *  ,
TempParticleMap  
) [protected]

Definition at line 370 of file CommonIO.cc.

References HepMC::TempParticleMap::addEndParticle(), HepMC::ascii, p, and HepMC::Flow::set_icode().

Referenced by read_vertex().

GenVertex * HepMC::CommonIO::read_vertex ( std::istream *  ,
TempParticleMap  
) [protected]

Definition at line 334 of file CommonIO.cc.

References read_particle(), and v.

Referenced by read_io_ascii(), read_io_extendedascii(), and read_io_genevent().

ParticleData * HepMC::CommonIO::read_particle_data ( std::istream *  ,
ParticleDataTable  
) [protected]

ParticleDataTable is deprecated. We include this method for reading old files which may have ParticleData information.

Definition at line 419 of file CommonIO.cc.

References HepMC::ParticleDataTable::insert().

Referenced by read_io_particle_data_table().


The documentation for this class was generated from the following files:
Generated on Wed Mar 12 13:08:10 2008 for HepMC by  doxygen 1.5.1-3