LCOV - code coverage report
Current view: top level - TEvtGen/HepMC - StreamInfo.cc (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 30 0.0 %
Date: 2016-06-14 17:26:59 Functions: 0 7 0.0 %

          Line data    Source code
       1             : //--------------------------------------------------------------------------
       2             : //
       3             : // StreamInfo.cc
       4             : // Author:  Lynn Garren
       5             : //
       6             : // ----------------------------------------------------------------------
       7             : 
       8             : #include <string>
       9             : #include "HepMC/StreamInfo.h"
      10             : 
      11             : namespace HepMC {
      12             : 
      13             : StreamInfo::StreamInfo( )
      14           0 : : m_finished_first_event_io(false),
      15           0 :   m_io_genevent_start("HepMC::IO_GenEvent-START_EVENT_LISTING"),
      16           0 :   m_io_ascii_start("HepMC::IO_Ascii-START_EVENT_LISTING"),
      17           0 :   m_io_extendedascii_start("HepMC::IO_ExtendedAscii-START_EVENT_LISTING"),
      18           0 :   m_io_genevent_end("HepMC::IO_GenEvent-END_EVENT_LISTING"),
      19           0 :   m_io_ascii_end("HepMC::IO_Ascii-END_EVENT_LISTING"),
      20           0 :   m_io_extendedascii_end("HepMC::IO_ExtendedAscii-END_EVENT_LISTING"),
      21           0 :   m_io_ascii_pdt_start("HepMC::IO_Ascii-START_PARTICLE_DATA"),
      22           0 :   m_io_extendedascii_pdt_start("HepMC::IO_ExtendedAscii-START_PARTICLE_DATA"),
      23           0 :   m_io_ascii_pdt_end("HepMC::IO_Ascii-END_PARTICLE_DATA"),
      24           0 :   m_io_extendedascii_pdt_end("HepMC::IO_ExtendedAscii-END_PARTICLE_DATA"),
      25           0 :   m_io_type(0),
      26           0 :   m_has_key(true),
      27           0 :   m_io_momentum_unit(Units::default_momentum_unit()),
      28           0 :   m_io_position_unit(Units::default_length_unit()),
      29           0 :   m_stream_id(m_stream_counter),
      30           0 :   m_reading_event_header(false)
      31           0 : {
      32           0 :     ++m_stream_counter;
      33           0 : }
      34             : 
      35             : /// static counter 
      36             : unsigned int StreamInfo::m_stream_counter = 0; 
      37             : 
      38             : void StreamInfo::use_input_units( Units::MomentumUnit mom, Units::LengthUnit len ) {
      39           0 :     m_io_momentum_unit = mom;
      40           0 :     m_io_position_unit = len;
      41           0 : }
      42             : 
      43             : void StreamInfo::set_io_type( int io ) {
      44           0 :     m_io_type = io;
      45           0 : }
      46             : 
      47             : void StreamInfo::set_has_key( bool io ) {
      48           0 :     m_has_key = io;
      49           0 : }
      50             : 
      51             : bool StreamInfo::reading_event_header() {
      52           0 :     return m_reading_event_header;
      53             : }
      54             : 
      55             : void StreamInfo::set_reading_event_header(bool tf) {
      56           0 :     m_reading_event_header = tf;
      57           0 : }
      58             : 
      59             : } // HepMC

Generated by: LCOV version 1.11