RdStationDebugWriter.h
Go to the documentation of this file.
1 #ifndef _RdStationDebugWriter_RdStationDebugWriter_h_
2 #define _RdStationDebugWriter_RdStationDebugWriter_h_
3 
4 #include <fwk/VModule.h>
5 
6 
7 namespace RdStationDebugWriter {
8 
18 
19  public:
20  fwk::VModule::ResultFlag Init() override;
21  fwk::VModule::ResultFlag Run(evt::Event& event) override;
23 
24  private:
27 
29  std::string fAsciiTraceNameBase;
30 
32  unsigned long int fEventCounter = 0;
33 
35  unsigned long int fStepCounter = 0;
36 
38  int fLastEventID = -1;
39 
40  REGISTER_MODULE("RdStationDebugWriter", RdStationDebugWriter);
41  };
42 
43 }
44 
45 
46 #endif
47 
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
REGISTER_MODULE("RdStationDebugWriter", RdStationDebugWriter)
std::string fAsciiTraceNameBase
Beginning of file name for ASCII file output.
std::string fAsciiSpectrumNameBase
Beginning of file name for ASCII file output.
Module interface.
Definition: VModule.h:53
unsigned long int fEventCounter
Counts the number of events processed by the module.
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
unsigned long int fStepCounter
Counts the number of calls of the module for the same event.

, generated on Tue Sep 26 2023.