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::File< T > Class Template Reference
Inheritance diagram for erhic::File< T >:
erhic::FileType

Public Member Functions

 File ()
 
virtual ~File ()
 
virtual File< T > * Create () const
 
virtual T * AllocateEvent () const
 
virtual std::string GetGeneratorName () const
 
virtual LogReaderCreateLogReader () const
 
virtual EventFromAsciiFactory
< T > * 
CreateEventFactory (std::istream &is) const
 
- Public Member Functions inherited from erhic::FileType
virtual ~FileType ()
 

Protected Attributes

T * t_
 

Detailed Description

template<typename T>
class erhic::File< T >

Definition at line 464 of file File.h.

Constructor & Destructor Documentation

template<typename T >
erhic::File< T >::File ( )

Constructor.

If the string argument is not empty, the File attempts to open a file with that name. If the file is opened it tries to extract

Definition at line 492 of file File.cxx.

template<typename T >
erhic::File< T >::~File ( )
virtual

Destructor.

Definition at line 495 of file File.cxx.

Member Function Documentation

template<typename T >
T * erhic::File< T >::AllocateEvent ( ) const
inlinevirtual

Allocates an event of the type for this file.

Implements erhic::FileType.

Definition at line 520 of file File.h.

template<typename T >
File< T > * erhic::File< T >::Create ( ) const
inlinevirtual

Returns a new File object.

Implements erhic::FileType.

Definition at line 525 of file File.h.

template<typename T>
virtual EventFromAsciiFactory<T>* erhic::File< T >::CreateEventFactory ( std::istream &  is) const
inlinevirtual

Returns a new event factory instance.

Implements erhic::FileType.

Definition at line 507 of file File.h.

template<typename T >
LogReader * erhic::File< T >::CreateLogReader ( ) const
virtual

Create a LogReader for this type of Monte Carlo file. Returns NULL if the file type is unsupported or has no LogReader class implemented. The LogReader must be deleted by the user.

Implements erhic::FileType.

Definition at line 514 of file File.cxx.

template<typename T >
std::string erhic::File< T >::GetGeneratorName ( ) const
virtual

Returns the name of the generator. Entirely in lower case.

Implements erhic::FileType.

Definition at line 503 of file File.cxx.


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