RdChannelAmplitudeCalibrator.h
Go to the documentation of this file.
1 #ifndef _RdChannelAmplitudeCalibrator_h_
2 #define _RdChannelAmplitudeCalibrator_h_
3 
4 #include <fwk/VModule.h>
5 #include <boost/tuple/tuple.hpp>
6 #include <vector>
7 
8 namespace evt {
9  class Event;
10 }
11 
12 namespace revt {
13  class Channel;
14 }
15 
16 
17 namespace utl {
18  class TabulatedFunction;
19 }
20 
21 
23 
34 
35  public:
36  // If you define a constructor, you MUST provide an implementation
37  // for it, otherwise the REGISTER_MODULE macro will not register
38  // your module. (Here, implementation is in RdChannelAmplitudeCalibrator.cc)
41 
45 
46  private:
47 
49  void ApplyResponse(revt::Channel& channel, const utl::TabulatedFunction& response) const;
50 
51  // The REGISTER_MODULE macro makes the framework aware of your module.
52  // You need to put this macro at the very end of your module class definition.
53  // Give your module a name (first argument) and specify its
54  // class name (second argument). In the ModuleSequenceExample.xml file,
55  // you can see this module being refered to by the name we give it here.
56  enum InfoLevel {
57  eNone = 0,
58  eFinal = 1,
60  eObscure = 3,
61  eMinuit = 4
62  };
63 
64  REGISTER_MODULE("RdChannelAmplitudeCalibrator", RdChannelAmplitudeCalibrator);
65 
66  };
67 
68 }
69 
70 
71 #endif
72 
73 // Configure (x)emacs for this file ...
74 // Local Variables:
75 // mode:c++
76 // compile-command: "make -k"
77 // End:
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
REGISTER_MODULE("RdChannelAmplitudeCalibrator", RdChannelAmplitudeCalibrator)
Class to hold collection (x,y) points and provide interpolation between them.
This module applies a calibration of each individual channel as specified by frequency-dependent cali...
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)
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
void ApplyResponse(revt::Channel &channel, const utl::TabulatedFunction &response) const
Class that holds the data associated to an individual radio channel.

, generated on Tue Sep 26 2023.