HepMC Reference Documentation

HepMC

StreamInfo.cc

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 //
00003 // StreamInfo.cc
00004 // Author:  Lynn Garren
00005 //
00006 // ----------------------------------------------------------------------
00007 
00008 #include <string>
00009 #include "HepMC/StreamInfo.h"
00010 
00011 namespace HepMC {
00012 
00013 StreamInfo::StreamInfo( )
00014 : m_finished_first_event_io(false),
00015   m_io_genevent_start("HepMC::IO_GenEvent-START_EVENT_LISTING"),
00016   m_io_ascii_start("HepMC::IO_Ascii-START_EVENT_LISTING"),
00017   m_io_extendedascii_start("HepMC::IO_ExtendedAscii-START_EVENT_LISTING"),
00018   m_io_genevent_end("HepMC::IO_GenEvent-END_EVENT_LISTING"),
00019   m_io_ascii_end("HepMC::IO_Ascii-END_EVENT_LISTING"),
00020   m_io_extendedascii_end("HepMC::IO_ExtendedAscii-END_EVENT_LISTING"),
00021   m_io_ascii_pdt_start("HepMC::IO_Ascii-START_PARTICLE_DATA"),
00022   m_io_extendedascii_pdt_start("HepMC::IO_ExtendedAscii-START_PARTICLE_DATA"),
00023   m_io_ascii_pdt_end("HepMC::IO_Ascii-END_PARTICLE_DATA"),
00024   m_io_extendedascii_pdt_end("HepMC::IO_ExtendedAscii-END_PARTICLE_DATA"),
00025   m_io_type(0),
00026   m_has_key(true),
00027   m_io_momentum_unit(Units::default_momentum_unit()),
00028   m_io_position_unit(Units::default_length_unit()),
00029   m_stream_id(m_stream_counter)
00030 {
00031     ++m_stream_counter;
00032 }
00033 
00035 unsigned int StreamInfo::m_stream_counter = 0; 
00036 
00037 void StreamInfo::use_input_units( Units::MomentumUnit mom, Units::LengthUnit len ) {
00038     m_io_momentum_unit = mom;
00039     m_io_position_unit = len;
00040 }
00041 
00042 void StreamInfo::set_io_type( int io ) {
00043     m_io_type = io;
00044 }
00045 
00046 void StreamInfo::set_has_key( bool io ) {
00047     m_has_key = io;
00048 }
00049 
00050 } // HepMC

Generated on Thu Jan 7 13:10:16 2010 for HepMC by  doxygen 1.4.7