EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
erhic::LogReaderGmcTrans Class Reference

#include <eic-smear/blob/master/include/eicsmear/erhic/File.h>

+ Inheritance diagram for erhic::LogReaderGmcTrans:
+ Collaboration diagram for erhic::LogReaderGmcTrans:

Public Member Functions

 LogReaderGmcTrans ()
 
virtual ~LogReaderGmcTrans ()
 
LogReaderGmcTransCreate () const
 
bool Extract (const std::string &filename)
 
Int_t Save () const
 
Int_t GetNEvents () const
 
Double_t GetCrossSection () const
 
- Public Member Functions inherited from erhic::LogReader
 LogReader ()
 
virtual ~LogReader ()
 

Protected Attributes

TObjString mNEvents
 Number of generated events.
 
TObjString mCrossSection
 Total cross section in microbarns.
 

Detailed Description

Processes gmc_trans log files.

Reads a log file and finds the total cross section and the number of generated events.

Definition at line 306 of file File.h.

View newest version in sPHENIX GitHub at line 306 of file File.h

Constructor & Destructor Documentation

erhic::LogReaderGmcTrans::LogReaderGmcTrans ( )

Constructor.

Definition at line 290 of file File.cxx.

View newest version in sPHENIX GitHub at line 290 of file File.cxx

Referenced by Create().

+ Here is the caller graph for this function:

erhic::LogReaderGmcTrans::~LogReaderGmcTrans ( )
virtual

Destructor.

Definition at line 295 of file File.cxx.

View newest version in sPHENIX GitHub at line 295 of file File.cxx

Member Function Documentation

LogReaderGmcTrans * erhic::LogReaderGmcTrans::Create ( ) const
virtual

Return a new LogReaderGmcTrans instance.

Implements erhic::LogReader.

Definition at line 298 of file File.cxx.

View newest version in sPHENIX GitHub at line 298 of file File.cxx

References LogReaderGmcTrans().

+ Here is the call graph for this function:

bool erhic::LogReaderGmcTrans::Extract ( const std::string &  filename)
virtual

Search the named file. Store the total cross section and number of generated events if they can be found.

Implements erhic::LogReader.

Definition at line 302 of file File.cxx.

View newest version in sPHENIX GitHub at line 302 of file File.cxx

References eicpy.qaplots::file, getline, in, mCrossSection, and mNEvents.

Double_t erhic::LogReaderGmcTrans::GetCrossSection ( ) const

Returns the total cross section reported by the log file. Extract() should be called first.

Definition at line 349 of file File.cxx.

View newest version in sPHENIX GitHub at line 349 of file File.cxx

References mCrossSection.

Int_t erhic::LogReaderGmcTrans::GetNEvents ( ) const

Returns the number of events reported by the log file. Extract() should be called first.

Definition at line 345 of file File.cxx.

View newest version in sPHENIX GitHub at line 345 of file File.cxx

References mNEvents.

Int_t erhic::LogReaderGmcTrans::Save ( ) const
virtual

Write the stored cross section and number of events to the active ROOT directory. Returns the total number of bytes written, or a value <= 0 in the case of an error.

Implements erhic::LogReader.

Definition at line 341 of file File.cxx.

View newest version in sPHENIX GitHub at line 341 of file File.cxx

References mCrossSection, and mNEvents.

Member Data Documentation

TObjString erhic::LogReaderGmcTrans::mCrossSection
protected

Total cross section in microbarns.

Definition at line 352 of file File.h.

View newest version in sPHENIX GitHub at line 352 of file File.h

Referenced by Extract(), GetCrossSection(), and Save().

TObjString erhic::LogReaderGmcTrans::mNEvents
protected

Number of generated events.

Definition at line 351 of file File.h.

View newest version in sPHENIX GitHub at line 351 of file File.h

Referenced by Extract(), GetNEvents(), and Save().


The documentation for this class was generated from the following files: