EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
erhic::LogReaderMilou Class Reference

#include <eic-smear/blob/master/include/eicsmear/erhic/File.h>

+ Inheritance diagram for erhic::LogReaderMilou:
+ Collaboration diagram for erhic::LogReaderMilou:

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 225 of file File.h.

View newest version in sPHENIX GitHub at line 225 of file File.h

Constructor & Destructor Documentation

erhic::LogReaderMilou::LogReaderMilou ( )
inline

Constructor.

Definition at line 230 of file File.h.

View newest version in sPHENIX GitHub at line 230 of file File.h

Referenced by Create().

+ Here is the caller graph for this function:

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

Destructor.

Definition at line 235 of file File.h.

View newest version in sPHENIX GitHub at line 235 of file File.h

Member Function Documentation

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

Return a new LogReaderMilou instance.

Implements erhic::LogReader.

Definition at line 280 of file File.h.

View newest version in sPHENIX GitHub at line 280 of file File.h

References LogReaderMilou().

+ Here is the call graph for this function:

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

Extract data from the named log file.

Implements erhic::LogReader.

Definition at line 234 of file File.cxx.

View newest version in sPHENIX GitHub at line 234 of file File.cxx

References crossSection_, crossSectionError_, getline, in, and nEvents_.

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 288 of file File.h.

View newest version in sPHENIX GitHub at line 288 of file File.h

References crossSection_.

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 296 of file File.h.

View newest version in sPHENIX GitHub at line 296 of file File.h

References crossSectionError_.

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 284 of file File.h.

View newest version in sPHENIX GitHub at line 284 of file File.h

References nEvents_.

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 282 of file File.cxx.

View newest version in sPHENIX GitHub at line 282 of file File.cxx

References crossSection_, crossSectionError_, and nEvents_.

Member Data Documentation

TObjString erhic::LogReaderMilou::crossSection_
protected

Definition at line 273 of file File.h.

View newest version in sPHENIX GitHub at line 273 of file File.h

Referenced by Extract(), GetCrossSection(), and Save().

TObjString erhic::LogReaderMilou::crossSectionError_
protected

Total cross section in nb

Definition at line 274 of file File.h.

View newest version in sPHENIX GitHub at line 274 of file File.h

Referenced by Extract(), GetCrossSectionError(), and Save().

TObjString erhic::LogReaderMilou::nEvents_
protected

Cross section error in nb

Definition at line 275 of file File.h.

View newest version in sPHENIX GitHub at line 275 of file File.h

Referenced by Extract(), GetNEvents(), and Save().


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