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::LogReaderPepsi Class Reference

Processes PEPSI log files. More...

#include <File.h>

Inheritance diagram for erhic::LogReaderPepsi:
erhic::LogReader

Public Member Functions

 LogReaderPepsi ()
 Constructor. More...
 
virtual ~LogReaderPepsi ()
 Destructor. More...
 
LogReaderPepsiCreate () const
 Return a new LogReaderPepsi instance. More...
 
bool Extract (const std::string &file)
 Extract data from the named log file. More...
 
Int_t Save () const
 Write the extracted information to the current file, if it is writeable. More...
 
- Public Member Functions inherited from erhic::LogReader
 LogReader ()
 Constructor. More...
 
virtual ~LogReader ()
 Destructor. More...
 

Protected Attributes

TObjString crossSection_
 
TObjString nEvents_
 

Total cross section in microbarns

More...
 

Detailed Description

Processes PEPSI log files.

Reads a log file and finds the total cross section and the number of generated events when Extract() is called. Writes those values as TObjStrings to the current directory when Save() is called, assuming that directory is writeable.

Definition at line 125 of file File.h.

Constructor & Destructor Documentation

◆ LogReaderPepsi()

erhic::LogReaderPepsi::LogReaderPepsi ( )

Constructor.

Definition at line 86 of file File.cxx.

◆ ~LogReaderPepsi()

erhic::LogReaderPepsi::~LogReaderPepsi ( )
virtual

Destructor.

Definition at line 88 of file File.cxx.

Member Function Documentation

◆ Create()

LogReaderPepsi * erhic::LogReaderPepsi::Create ( ) const
inlinevirtual

Return a new LogReaderPepsi instance.

Implements erhic::LogReader.

Definition at line 161 of file File.h.

◆ Extract()

bool erhic::LogReaderPepsi::Extract ( const std::string &  file)
virtual

Extract data from the named log file.

Implements erhic::LogReader.

Definition at line 90 of file File.cxx.

◆ Save()

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

Write the extracted information to the current file, if it is writeable.

If you want to write the LogReaderPepsi itself, use LogReaderPepsi::Write().

Implements erhic::LogReader.

Definition at line 140 of file File.cxx.

Member Data Documentation

◆ crossSection_

TObjString erhic::LogReaderPepsi::crossSection_
protected

Definition at line 155 of file File.h.

◆ nEvents_

TObjString erhic::LogReaderPepsi::nEvents_
protected

Total cross section in microbarns

Definition at line 156 of file File.h.


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