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   m_reading_event_header(false)
00031 {
00032     ++m_stream_counter;
00033 }
00034 
00036 unsigned int StreamInfo::m_stream_counter = 0; 
00037 
00038 void StreamInfo::use_input_units( Units::MomentumUnit mom, Units::LengthUnit len ) {
00039     m_io_momentum_unit = mom;
00040     m_io_position_unit = len;
00041 }
00042 
00043 void StreamInfo::set_io_type( int io ) {
00044     m_io_type = io;
00045 }
00046 
00047 void StreamInfo::set_has_key( bool io ) {
00048     m_has_key = io;
00049 }
00050 
00051 bool StreamInfo::reading_event_header() {
00052     return m_reading_event_header;
00053 }
00054 
00055 void StreamInfo::set_reading_event_header(bool tf) {
00056     m_reading_event_header = tf;
00057 }
00058 
00059 } // HepMC

Generated on Fri Feb 17 00:31:26 2012 for HepMC by  doxygen 1.4.7