EventFileReader.h
Go to the documentation of this file.
1 #ifndef _EventFileReaderOG_EventFileReader_h_
2 #define _EventFileReaderOG_EventFileReader_h_
3 
4 #include <fwk/VModule.h>
5 #include <utl/Branch.h>
6 #include <string>
7 
8 
9 namespace io {
10  class EventFileChain;
11 }
12 
13 
14 namespace EventFileReaderOG {
15 
16  class EventFileReader : public fwk::VModule {
17 
18  public:
21 
25 
26  const std::string& GetCurrentFilename() const;
27  int GetEventsRead() const { return fEventsRead; }
28 
29  private:
31 
32  bool fReportFilenames = false;
33  bool fIgnoreExpeptions = false;
35  // io::Type fFileType;
37  std::string fCurrentFilename;
38  int fEventsRead = 0;
39 
40  REGISTER_MODULE("EventFileReaderOG", EventFileReader);
41 
42  };
43 
44 }
45 
46 
47 #endif
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
Class representing a document branch.
Definition: Branch.h:107
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
REGISTER_MODULE("EventFileReaderOG", EventFileReader)
Module interface.
Definition: VModule.h:53
A collection of EventFile.
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
fwk::VModule::ResultFlag OpenFiles()
Read in a real or simulated events in various formats.
fwk::VModule::ResultFlag Run(evt::Event &theEvent)
Run: invoked once per event.
const std::string & GetCurrentFilename() const

, generated on Tue Sep 26 2023.