![]() |
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
|
#include <File.h>
Public Member Functions | |
LogReaderGmcTrans () | |
virtual | ~LogReaderGmcTrans () |
LogReaderGmcTrans * | Create () const |
bool | Extract (const std::string &filename) |
Int_t | Save () const |
Int_t | GetNEvents () const |
Double_t | GetCrossSection () const |
![]() | |
LogReader () | |
virtual | ~LogReader () |
Protected Attributes | |
TObjString | mNEvents |
Number of generated events. | |
TObjString | mCrossSection |
Total cross section in microbarns. | |
Processes gmc_trans log files.
Reads a log file and finds the total cross section and the number of generated events.
erhic::LogReaderGmcTrans::LogReaderGmcTrans | ( | ) |
|
virtual |
|
virtual |
Return a new LogReaderGmcTrans instance.
Implements erhic::LogReader.
|
virtual |
Search the named file. Store the total cross section and number of generated events if they can be found.
Implements erhic::LogReader.
Double_t erhic::LogReaderGmcTrans::GetCrossSection | ( | ) | const |
Int_t erhic::LogReaderGmcTrans::GetNEvents | ( | ) | 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.