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

Processes DJANGOH log files. More...

#include <File.h>

Inheritance diagram for erhic::LogReaderDjangoh:
erhic::LogReader

Public Member Functions

 LogReaderDjangoh ()
 Constructor. More...
 
virtual ~LogReaderDjangoh ()
 Destructor. More...
 
LogReaderDjangohCreate () const
 Return a new LogReaderDjangoh 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 DJANGOH 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 173 of file File.h.

Constructor & Destructor Documentation

◆ LogReaderDjangoh()

erhic::LogReaderDjangoh::LogReaderDjangoh ( )

Constructor.

Definition at line 150 of file File.cxx.

◆ ~LogReaderDjangoh()

erhic::LogReaderDjangoh::~LogReaderDjangoh ( )
virtual

Destructor.

Definition at line 152 of file File.cxx.

Member Function Documentation

◆ Create()

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

Return a new LogReaderDjangoh instance.

Implements erhic::LogReader.

Definition at line 209 of file File.h.

◆ Extract()

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

Extract data from the named log file.

Implements erhic::LogReader.

Definition at line 154 of file File.cxx.

◆ Save()

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

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

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

Implements erhic::LogReader.

Definition at line 234 of file File.cxx.

Member Data Documentation

◆ crossSection_

TObjString erhic::LogReaderDjangoh::crossSection_
protected

Definition at line 203 of file File.h.

◆ nEvents_

TObjString erhic::LogReaderDjangoh::nEvents_
protected

Total cross section in microbarns

Definition at line 204 of file File.h.


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