EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
erhic::File< T > Class Template Reference

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

+ Inheritance diagram for erhic::File< T >:
+ Collaboration diagram for erhic::File< T >:

Public Member Functions

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

Protected Attributes

Tt_
 
- Protected Attributes inherited from erhic::FileType
std::string generatorname
 

Detailed Description

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

Definition at line 478 of file File.h.

View newest version in sPHENIX GitHub at line 478 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 493 of file File.cxx.

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

References erhic::FileType::generatorname, name, and erhic::File< T >::t_.

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

Destructor.

Definition at line 502 of file File.cxx.

View newest version in sPHENIX GitHub at line 502 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 575 of file File.h.

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

References T.

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

Returns a new File object.

Implements erhic::FileType.

Definition at line 580 of file File.h.

View newest version in sPHENIX GitHub at line 580 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 515 of file File.h.

View newest version in sPHENIX GitHub at line 515 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 533 of file File.cxx.

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

References erhic::LogReaderFactory::CreateReader(), and erhic::LogReaderFactory::GetInstance().

+ Here is the call graph for this function:

Member Data Documentation

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

Definition at line 520 of file File.h.

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

Referenced by erhic::File< T >::File().


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