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

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

+ Inheritance diagram for erhic::FileType:
+ Collaboration diagram for erhic::FileType:

Public Member Functions

virtual ~FileType ()
 
virtual FileTypeCreate () const =0
 
virtual EventBaseAllocateEvent () const =0
 
virtual std::string GetGeneratorName () const
 
virtual void SetGeneratorName (const std::string newname="")
 
virtual LogReaderCreateLogReader () const =0
 
virtual VirtualEventFactoryCreateEventFactory (std::istream &) const =0
 

Protected Attributes

std::string generatorname
 

Detailed Description

Abstract base class for Monte Carlo file types. Describes a Monte Carlo file type and returns objects required for processing or analysis of that file type.

Definition at line 428 of file File.h.

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

Constructor & Destructor Documentation

virtual erhic::FileType::~FileType ( )
inlinevirtual

Destructor.

Definition at line 433 of file File.h.

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

Member Function Documentation

virtual EventBase* erhic::FileType::AllocateEvent ( ) const
pure virtual

Returns a new event object for the generator making this type of file.

Implemented in erhic::File< erhic::EventHepMC >, and erhic::File< T >.

Referenced by erhic::Forester::AllocateEvent().

+ Here is the caller graph for this function:

virtual FileType* erhic::FileType::Create ( ) const
pure virtual

Returns a new FileType instance.

Implemented in erhic::File< erhic::EventHepMC >, and erhic::File< T >.

virtual VirtualEventFactory* erhic::FileType::CreateEventFactory ( std::istream &  ) const
pure virtual

Returns a new event object for the generator making this type of file.

Implemented in erhic::File< erhic::EventHepMC >, and erhic::File< T >.

Referenced by erhic::Forester::OpenInput().

+ Here is the caller graph for this function:

virtual LogReader* erhic::FileType::CreateLogReader ( ) const
pure virtual

Returns a reader to process the log file corresponding to this type of file.

Implemented in erhic::File< erhic::EventHepMC >, and erhic::File< T >.

Referenced by BuildTree().

+ Here is the caller graph for this function:

std::string erhic::FileType::GetGeneratorName ( ) const
virtual

Returns the name of the generator. Should be entirely in lower case.

Definition at line 522 of file File.cxx.

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

References generatorname.

Referenced by erhic::Forester::OpenInput().

+ Here is the caller graph for this function:

void erhic::FileType::SetGeneratorName ( const std::string  newname = "")
virtual

Sets the name of the generator. Should be entirely in lower case.

Definition at line 527 of file File.cxx.

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

References c, and generatorname.

Referenced by erhic::FileFactory::GetFile().

+ Here is the caller graph for this function:

Member Data Documentation

std::string erhic::FileType::generatorname
protected

Definition at line 468 of file File.h.

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

Referenced by erhic::File< T >::File(), GetGeneratorName(), and SetGeneratorName().


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