A collection of EventFile. More...
#include "io/EventFileChain.h"
Public Member Functions | |
EventFileChain (utl::Branch &branch) | |
EventFileChain (const Type type) | |
EventFileChain (const std::string &filenames, const Type type) | |
Create from a list of file names separated by a space. More... | |
EventFileChain (const std::vector< std::string > &filenames, const Type type) | |
Create from a vector of strings. More... | |
const std::string & | GetCurrentFilename () const |
Type | GetFileType () const |
Status | Read (evt::Event &event) |
read current event and advance cursor by 1 More... | |
void | SetFileList (const std::vector< std::string > &filenames) |
void | SetIgnoreExceptions (const bool ignore) |
~EventFileChain () | |
Private Types | |
typedef std::vector< std::string > | FileContainer |
Private Member Functions | |
FileContainer::iterator fFileIterator fFileList | end ()} |
EventFileChain (const EventFileChain &eventFileChain) | |
copying disabled More... | |
Status | OpenCurrent () |
EventFileChain & | operator= (const EventFileChain &eventFileChain) |
void | Parse () |
Static Private Member Functions | |
static void | InitXMLDictionary () |
Private Attributes | |
utl::Branch | fBranch |
bool | fCatchExceptions = false |
FileContainer | fFileList |
EventFile * | fOpenFile = nullptr |
Type | fType = io::Type::eUnknownType |
Static Private Attributes | |
static std::map< std::string, std::string > | fgXMLDictionary |
|
private |
Definition at line 76 of file EventFileChain.h.
io::EventFileChain::EventFileChain | ( | utl::Branch & | branch | ) |
Definition at line 20 of file EventFileChain.cc.
References io::eAires, io::eArtificial, io::eCDas, io::eCONEX, io::eCONEXRandom, io::eCorsika, io::eEVA, io::eFDas, io::eIoAuger, io::eOffline, io::eRadioAERA, io::eRadioAERAroot, io::eREAS, io::eREASH5, ERROR, io::eSELFAS, io::eSeneca, io::eUnknownType, io::eZHAireS, fBranch, fType, utl::Branch::Get(), utl::Branch::GetChild(), utl::Branch::GetName(), and SetFileList().
|
inline |
Definition at line 38 of file EventFileChain.h.
io::EventFileChain::EventFileChain | ( | const std::string & | filenames, |
const Type | type | ||
) |
Create from a list of file names separated by a space.
This will trow an IOFailure exception if one of the filenams does not exist
Definition at line 81 of file EventFileChain.cc.
io::EventFileChain::EventFileChain | ( | const std::vector< std::string > & | filenames, |
const Type | type | ||
) |
Create from a vector of strings.
Definition at line 95 of file EventFileChain.cc.
References Parse().
io::EventFileChain::~EventFileChain | ( | ) |
Definition at line 105 of file EventFileChain.cc.
References fOpenFile.
|
private |
copying disabled
|
private |
const std::string & io::EventFileChain::GetCurrentFilename | ( | ) | const |
|
inline |
Definition at line 59 of file EventFileChain.h.
References fType.
|
staticprivate |
Definition at line 313 of file EventFileChain.cc.
References fgXMLDictionary.
Referenced by Parse().
|
inlineprivate |
Definition at line 179 of file EventFileChain.cc.
References io::eFail, io::eRead, ERROR, io::eSuccess, fBranch, fCatchExceptions, fOpenFile, fType, utl::AugerException::GetMessage(), and WARNING.
Referenced by Read().
|
private |
|
private |
Definition at line 211 of file EventFileChain.cc.
References RdGeoCeLDFFitter::c, fFileList, fgXMLDictionary, INFO, InitXMLDictionary(), is(), utl::s, and WARNING.
Referenced by EventFileChain(), and SetFileList().
Status io::EventFileChain::Read | ( | evt::Event & | event | ) |
read current event and advance cursor by 1
Will step to the next file if necessary
Definition at line 129 of file EventFileChain.cc.
References io::eEOF, io::eFail, io::eSuccess, fFileList, fOpenFile, GetCurrentFilename(), OpenCurrent(), io::EventFile::Read(), and WARNING.
Referenced by RdEventMerger::RdEventMerger::Run().
void io::EventFileChain::SetFileList | ( | const std::vector< std::string > & | filenames | ) |
Definition at line 112 of file EventFileChain.cc.
References fFileList, fOpenFile, and Parse().
Referenced by EventFileChain().
|
inline |
Definition at line 61 of file EventFileChain.h.
References fCatchExceptions.
|
private |
Definition at line 74 of file EventFileChain.h.
Referenced by EventFileChain(), and OpenCurrent().
|
private |
Definition at line 84 of file EventFileChain.h.
Referenced by OpenCurrent(), and SetIgnoreExceptions().
|
private |
Definition at line 78 of file EventFileChain.h.
Referenced by EventFileChain(), GetCurrentFilename(), Parse(), Read(), and SetFileList().
|
staticprivate |
Definition at line 86 of file EventFileChain.h.
Referenced by InitXMLDictionary(), and Parse().
|
private |
Definition at line 81 of file EventFileChain.h.
Referenced by OpenCurrent(), Read(), SetFileList(), and ~EventFileChain().
|
private |
Definition at line 82 of file EventFileChain.h.
Referenced by EventFileChain(), GetFileType(), and OpenCurrent().