Public Member Functions | |
XMLDocument * | createReader (XMLDocument::Handler &handler) |
FileSource (const std::string &fileURL) | |
~FileSource () | |
Private Attributes | |
std::auto_ptr< StorageWrap > | fileStream |
Definition at line 48 of file LHEReader.cc.
lhef::LHEReader::FileSource::FileSource | ( | const std::string & | fileURL | ) | [inline] |
Definition at line 50 of file LHEReader.cc.
References Exception, fileStream, reco::get(), and IOFlags::OpenRead.
{ Storage *storage = StorageFactory::get()->open(fileURL, IOFlags::OpenRead); if (!storage) throw cms::Exception("FileOpenError") << "Could not open LHE file \"" << fileURL << "\" for reading" << std::endl; fileStream.reset(new StorageWrap(storage)); }
lhef::LHEReader::FileSource::~FileSource | ( | ) | [inline] |
Definition at line 65 of file LHEReader.cc.
XMLDocument* lhef::LHEReader::FileSource::createReader | ( | XMLDocument::Handler & | handler | ) | [inline, virtual] |
Implements lhef::LHEReader::Source.
Definition at line 67 of file LHEReader.cc.
References fileStream.
{ return new XMLDocument(fileStream, handler); }
std::auto_ptr<StorageWrap> lhef::LHEReader::FileSource::fileStream [private] |
Definition at line 71 of file LHEReader.cc.
Referenced by createReader(), and FileSource().