RdChannelNoiseASCIIExporter.h
Go to the documentation of this file.
1 #ifndef _RdChannelNoiseASCIIExporter_h_
2 #define _RdChannelNoiseASCIIExporter_h_
3 
4 #include <string>
5 
6 #include <fwk/VModule.h>
7 
8 #include <string>
9 
10 namespace evt {
11  class Event;
12 }
13 
14 namespace revt {
15  class Channel;
16 }
17 
18 
19 // you should assign your module to a namespace
20 
22 
33 
34  public:
35  // If you define a constructor, you MUST provide an implementation
36  // for it, otherwise the REGISTER_MODULE macro will not register
37  // your module. (Here, implementation is in RdChannelNoiseASCIIExporter.cc)
40 
44 
45  private:
47  int fNumber;
50  std::string fpath;
51  inline std::string AddZero(int val) {
52  if (val<10) return "000";
53  if (val<100) return "00";
54  if (val<1000) return "0";
55  return "";
56  }
57  // The REGISTER_MODULE macro makes the framework aware of your module.
58  // You need to put this macro at the very end of your module class definition.
59  // Give your module a name (first argument) and specify its
60  // class name (second argument). In the ModuleSequenceExample.xml file,
61  // you can see this module being refered to by the name we give it here.
62 
63  REGISTER_MODULE("RdChannelNoiseASCIIExporter", RdChannelNoiseASCIIExporter);
64 
65  };
66 
67 }
68 
69 
70 #endif
71 
72 // Configure (x)emacs for this file ...
73 // Local Variables:
74 // mode:c++
75 // compile-command: "make -k"
76 // End:
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
Small Radio Example.
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
REGISTER_MODULE("RdChannelNoiseASCIIExporter", RdChannelNoiseASCIIExporter)

, generated on Tue Sep 26 2023.