eic-smear  1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
erhic::LogReaderGmcTrans Class Reference

#include <File.h>

Inheritance diagram for erhic::LogReaderGmcTrans:
erhic::LogReader

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 302 of file File.h.

Constructor & Destructor Documentation

erhic::LogReaderGmcTrans::LogReaderGmcTrans ( )

Constructor.

Definition at line 297 of file File.cxx.

erhic::LogReaderGmcTrans::~LogReaderGmcTrans ( )
virtual

Destructor.

Definition at line 302 of file File.cxx.

Member Function Documentation

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

Return a new LogReaderGmcTrans instance.

Implements erhic::LogReader.

Definition at line 305 of file File.cxx.

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 309 of file File.cxx.

Double_t erhic::LogReaderGmcTrans::GetCrossSection ( ) const

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

Definition at line 356 of file File.cxx.

Int_t erhic::LogReaderGmcTrans::GetNEvents ( ) const

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

Definition at line 352 of file File.cxx.

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 348 of file File.cxx.


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