RdDoubleEventRejector.h
Go to the documentation of this file.
1 
9 #ifndef _RdDoubleEventRejector_h_
10 #define _RdDoubleEventRejector_h_
11 
12 #include <fwk/VModule.h>
13 #include <set>
14 #include <vector>
15 
16 namespace evt {
17  class Event;
18 }
19 
20 namespace revt {
21  class Channel;
22  class EventTrigger;
23 }
24 
25 namespace RdDoubleEventRejector {
26 
37 
38  public:
39  // If you define a constructor, you MUST provide an implementation
40  // for it, otherwise the REGISTER_MODULE macro will not register
41  // your module. (Here, implementation is in RdDoubleEventRejector.cc)
43 // virtual ~RdDoubleEventRejector();
44 
48 
49  private:
50 
51  enum InfoLevel {
52  eNone = 0,
53  eFinal = 1,
55  eObscure = 3,
56  eDebug = 4
57  };
58 
61 
63 
65  std::set<std::pair<int, int> > fEventList;
66 
67 
68  // The REGISTER_MODULE macro makes the framework aware of your module.
69  // You need to put this macro at the very end of your module class definition.
70  // Give your module a name (first argument) and specify its
71  // class name (second argument). In the ModuleSequenceExample.xml file,
72  // you can see this module being refered to by the name we give it here.
73 
74  REGISTER_MODULE("RdDoubleEventRejector", RdDoubleEventRejector);
75  };
76 
77 }
78 
79 
80 #endif
81 
82 // Configure (x)emacs for this file ...
83 // Local Variables:
84 // mode:c++
85 // compile-command: "make -k"
86 // End:
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
std::set< std::pair< int, int > > fEventList
List of allowed allowed combination of run and event IDs.
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
REGISTER_MODULE("RdDoubleEventRejector", RdDoubleEventRejector)
int fInfoLevel
xml settings: info level (verbosity)
Rejects all double event, i.e if an event with the same run and event number has been read in earlier...

, generated on Tue Sep 26 2023.