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

Processes PYTHIA log files. More...

#include <File.h>

Inheritance diagram for erhic::LogReaderMilou:
erhic::LogReader

Public Member Functions

 LogReaderMilou ()
 Constructor. More...
 
virtual ~LogReaderMilou ()
 Destructor. More...
 
LogReaderMilouCreate () const
 Return a new LogReaderMilou 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...
 
Int_t GetNEvents () const
 Returns the number of events reported by the log file. More...
 
Double_t GetCrossSection () const
 Returns the total cross section reported by the log file. More...
 
Double_t GetCrossSectionError () const
 Returns the error on total cross section reported by the log file. More...
 
- Public Member Functions inherited from erhic::LogReader
 LogReader ()
 Constructor. More...
 
virtual ~LogReader ()
 Destructor. More...
 

Protected Attributes

TObjString crossSection_
 
TObjString crossSectionError_
 

Total cross section in nb

More...
 
TObjString nEvents_
 

Cross section error in nb

More...
 

Detailed Description

Processes PYTHIA 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 221 of file File.h.

Constructor & Destructor Documentation

◆ LogReaderMilou()

erhic::LogReaderMilou::LogReaderMilou ( )
inline

Constructor.

Definition at line 226 of file File.h.

◆ ~LogReaderMilou()

virtual erhic::LogReaderMilou::~LogReaderMilou ( )
inlinevirtual

Destructor.

Definition at line 231 of file File.h.

Member Function Documentation

◆ Create()

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

Return a new LogReaderMilou instance.

Implements erhic::LogReader.

Definition at line 276 of file File.h.

◆ Extract()

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

Extract data from the named log file.

Implements erhic::LogReader.

Definition at line 241 of file File.cxx.

◆ GetCrossSection()

Double_t erhic::LogReaderMilou::GetCrossSection ( ) const
inline

Returns the total cross section reported by the log file.

Extract() should be called first.

Definition at line 284 of file File.h.

◆ GetCrossSectionError()

Double_t erhic::LogReaderMilou::GetCrossSectionError ( ) const
inline

Returns the error on total cross section reported by the log file.

Extract() should be called first.

Definition at line 292 of file File.h.

◆ GetNEvents()

Int_t erhic::LogReaderMilou::GetNEvents ( ) const
inline

Returns the number of events reported by the log file.

Extract() should be called first.

Definition at line 280 of file File.h.

◆ Save()

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

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

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

Implements erhic::LogReader.

Definition at line 289 of file File.cxx.

Member Data Documentation

◆ crossSection_

TObjString erhic::LogReaderMilou::crossSection_
protected

Definition at line 269 of file File.h.

◆ crossSectionError_

TObjString erhic::LogReaderMilou::crossSectionError_
protected

Total cross section in nb

Definition at line 270 of file File.h.

◆ nEvents_

TObjString erhic::LogReaderMilou::nEvents_
protected

Cross section error in nb

Definition at line 271 of file File.h.


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