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

#include <File.h>

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

Public Member Functions

 LogReaderMilou ()
 
virtual ~LogReaderMilou ()
 
LogReaderMilouCreate () const
 
bool Extract (const std::string &file)
 
Int_t Save () const
 
Int_t GetNEvents () const
 
Double_t GetCrossSection () const
 
Double_t GetCrossSectionError () const
 
- Public Member Functions inherited from erhic::LogReader
 LogReader ()
 
virtual ~LogReader ()
 

Protected Attributes

TObjString crossSection_
 
TObjString crossSectionError_
 

Total cross section in nb


 
TObjString nEvents_
 

Cross section error in nb


 

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

erhic::LogReaderMilou::LogReaderMilou ( )
inline

Constructor.

Definition at line 226 of file File.h.

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

Destructor.

Definition at line 231 of file File.h.

Member Function Documentation

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

Return a new LogReaderMilou instance.

Implements erhic::LogReader.

Definition at line 276 of file File.h.

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.

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.

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.

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.

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.


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