EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <eic-smear/blob/master/include/eicsmear/erhic/File.h>
Public Member Functions | |
const FileType * | GetFile (const std::string &generatorName) const |
const FileType * | GetFile (std::shared_ptr< std::istream > &isp, const std::string fileName="") const |
Static Public Member Functions | |
static FileFactory & | GetInstance () |
Protected Types | |
typedef std::map< std::string, FileType * > | Map |
Protected Member Functions | |
FileFactory () | |
virtual | ~FileFactory () |
Protected Attributes | |
Map | prototypes_ |
Factory class for Files. Singleton class.
Definition at line 589 of file File.h.
View newest version in sPHENIX GitHub at line 589 of file File.h
|
protected |
|
protected |
Constructor.
Definition at line 638 of file File.cxx.
View newest version in sPHENIX GitHub at line 638 of file File.cxx
References prototypes_.
|
protectedvirtual |
Destructor.
Definition at line 666 of file File.cxx.
View newest version in sPHENIX GitHub at line 666 of file File.cxx
References prototypes_.
const FileType * erhic::FileFactory::GetFile | ( | const std::string & | generatorName | ) | const |
Returns a FileType object for the named generator.
Definition at line 542 of file File.cxx.
View newest version in sPHENIX GitHub at line 542 of file File.cxx
References eicpy.qaplots::file, prototypes_, and erhic::FileType::SetGeneratorName().
Referenced by GetFile(), and erhic::Forester::OpenInput().
const FileType * erhic::FileFactory::GetFile | ( | std::shared_ptr< std::istream > & | isp, |
const std::string | fileName = "" |
||
) | const |
Returns a FileType object, determining the generator type from a stream. The isp may need to be updated for hepmc, that's why it's passed by reference.
Definition at line 552 of file File.cxx.
View newest version in sPHENIX GitHub at line 552 of file File.cxx
References eicpy.qaplots::file, GetFile(), and getline.
|
static |
Returns the single instance of FileFactory.
Definition at line 537 of file File.cxx.
View newest version in sPHENIX GitHub at line 537 of file File.cxx
Referenced by erhic::Forester::OpenInput().
|
protected |
Definition at line 619 of file File.h.
View newest version in sPHENIX GitHub at line 619 of file File.h
Referenced by FileFactory(), GetFile(), and ~FileFactory().