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

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

+ Inheritance diagram for erhic::LogReader:
+ Collaboration diagram for erhic::LogReader:

Public Member Functions

 LogReader ()
 
virtual ~LogReader ()
 
virtual LogReaderCreate () const =0
 
virtual bool Extract (const std::string &file)=0
 
virtual Int_t Save () const =0
 

Detailed Description

Base class for log file processors.

Reads a log file from a Monte Carlo generator and extracts information. Inherited classes for each generator type implement the Extract() method to gather the required information for that generator and the Save() method to store it to file.

Definition at line 37 of file File.h.

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

Constructor & Destructor Documentation

erhic::LogReader::LogReader ( )
inline

Constructor.

Definition at line 42 of file File.h.

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

virtual erhic::LogReader::~LogReader ( )
inlinevirtual

Destructor.

Definition at line 47 of file File.h.

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

Member Function Documentation

virtual LogReader* erhic::LogReader::Create ( ) const
pure virtual
virtual bool erhic::LogReader::Extract ( const std::string &  file)
pure virtual

Extract data from the named log file.

Implemented in erhic::LogReaderGmcTrans, erhic::LogReaderMilou, erhic::LogReaderDjangoh, erhic::LogReaderPepsi, and erhic::LogReaderPythia.

Referenced by BuildTree().

+ Here is the caller graph for this function:

virtual Int_t erhic::LogReader::Save ( ) const
pure virtual

Saves the extracted data to the current file, if one is open and is writeable. Returns -1 if the data cannot be saved. To write the LogReader itself, use LogReader::Write().

Implemented in erhic::LogReaderGmcTrans, erhic::LogReaderMilou, erhic::LogReaderDjangoh, erhic::LogReaderPepsi, and erhic::LogReaderPythia.

Referenced by BuildTree().

+ Here is the caller graph for this function:


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