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

#include <File.h>

Inheritance diagram for erhic::LogReaderPythia:
erhic::LogReader

Public Member Functions

 LogReaderPythia ()
 
virtual ~LogReaderPythia ()
 
LogReaderPythiaCreate () const
 
bool Extract (const std::string &file)
 
Int_t Save () const
 
- Public Member Functions inherited from erhic::LogReader
 LogReader ()
 
virtual ~LogReader ()
 

Protected Attributes

TObjString crossSection_
 
TObjString nEvents_
 

Total cross section in microbarns


 

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

Constructor & Destructor Documentation

erhic::LogReaderPythia::LogReaderPythia ( )

Constructor.

Definition at line 26 of file File.cxx.

erhic::LogReaderPythia::~LogReaderPythia ( )
virtual

Destructor.

Definition at line 28 of file File.cxx.

Member Function Documentation

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

Return a new LogReaderPythia instance.

Implements erhic::LogReader.

Definition at line 113 of file File.h.

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

Extract data from the named log file.

Implements erhic::LogReader.

Definition at line 30 of file File.cxx.

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

Write the extracted information to the current file, if it is writeable. If you want to write the LogReaderPythia itself, use LogReaderPythia::Write().

Implements erhic::LogReader.

Definition at line 75 of file File.cxx.


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