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

#include <File.h>

Inheritance diagram for erhic::File< T >:
erhic::FileType

Public Member Functions

 File ()
 Constructor. More...
 
virtual ~File ()
 Destructor. More...
 
virtual File< T > * Create () const
 Returns a new File object. More...
 
virtual T * AllocateEvent () const
 Allocates an event of the type for this file. More...
 
virtual std::string GetGeneratorName () const
 Returns the name of the generator. More...
 
virtual LogReaderCreateLogReader () const
 Create a LogReader for this type of Monte Carlo file. More...
 
virtual EventFromAsciiFactory< T > * CreateEventFactory (std::istream &is) const
 Returns a new event factory instance. More...
 
- Public Member Functions inherited from erhic::FileType
virtual ~FileType ()
 Destructor. More...
 

Protected Attributes

T * t_
 

Detailed Description

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

Definition at line 464 of file File.h.

Constructor & Destructor Documentation

◆ File()

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

◆ ~File()

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

Destructor.

Definition at line 497 of file File.cxx.

Member Function Documentation

◆ AllocateEvent()

template<typename T >
T * erhic::File< T >::AllocateEvent
inlinevirtual

Allocates an event of the type for this file.

Implements erhic::FileType.

Definition at line 520 of file File.h.

◆ Create()

template<typename T >
File< T > * erhic::File< T >::Create
inlinevirtual

Returns a new File object.

Implements erhic::FileType.

Definition at line 525 of file File.h.

◆ CreateEventFactory()

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.

◆ CreateLogReader()

template<typename T >
LogReader * erhic::File< T >::CreateLogReader
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 516 of file File.cxx.

◆ GetGeneratorName()

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

Returns the name of the generator.

Entirely in lower case.

Implements erhic::FileType.

Definition at line 505 of file File.cxx.

Member Data Documentation

◆ t_

template<typename T >
T* erhic::File< T >::t_
protected

Definition at line 512 of file File.h.


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