EventFileExporter.h
Go to the documentation of this file.
1 #ifndef _EventFileExporterOG_EventFileExporter_h_
2 #define _EventFileExporterOG_EventFileExporter_h_
3 
4 #include <fwk/VModule.h>
5 
6 #include <io/IoCodes.h>
7 #include <io/StreamerSwitch.h>
8 
9 #include <string>
10 
11 
12 namespace io {
13  class EventFile;
14 }
15 
16 namespace EventFileExporterOG {
17 
27 
28  public:
29  fwk::VModule::ResultFlag Init() override;
30  fwk::VModule::ResultFlag Run(evt::Event& event) override;
32 
33  private:
35  std::string fEventFilename;
37 
38  int fEventsWritten = 0;
39 
41 
42  REGISTER_MODULE("EventFileExporterOG", EventFileExporter);
43 
44  };
45 
46 }
47 
48 
49 #endif
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
switches to allow excluding certain parts of Event from streaming
REGISTER_MODULE("EventFileExporterOG", EventFileExporter)
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
Write events out in Offline or DAS formats.
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
Interface to file I/O objects.
Definition: EventFile.h:34
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
Type
The type of file that we are acutally opening.
Definition: IoCodes.h:33

, generated on Tue Sep 26 2023.