RdTimeCalibration.h
Go to the documentation of this file.
1 #ifndef _RdTimeCalibration_h_
2 #define _RdTimeCalibration_h_
3 
4 #include <string>
5 #include <set>
6 
7 #include <fwk/VModule.h>
8 #include <utl/TimeStamp.h>
9 #include <utl/CoordinateSystem.h>
10 #include <utl/UTMPoint.h>
11 
12 
13 namespace evt {
14  class Event;
15 }
16 
17 namespace revt {
18  class Channel;
19  class REvent;
20 }
21 
22 namespace utl {
23  class Point;
24  class TimeInterval;
25  class TimeStamp;
26  class FFTDataContainerAlgorithm;
27 }
28 
29 namespace rdet {
30  class RDetector;
31 }
32 
33 // you should assign your module to a namespace
34 
35 namespace RdTimeCalibration {
36 
47 
48  public:
49  // If you define a constructor, you MUST provide an implementation
50  // for it, otherwise the REGISTER_MODULE macro will not register
51  // your module. (Here, implementation is in UserModule.cc)
53  virtual ~RdTimeCalibration() { }
54 
58 
59  private:
60  enum InfoLevel {
61  eNone = 0,
62  eFinal = 1,
64  eObscure = 3,
65  eMinuit = 4,
66  eDebug = 5
67  };
68 
71 
73  std::map<int, std::vector<double> > fRunTimeExpectation;
74 
76  std::vector<double> fSourcePosition;
77 
80 
83 
86 
88  bool fFirstRun;
89 
91  int fZone;
92  char fBand;
93  std::string fEllipsoidName;
94 
98 
99  // The REGISTER_MODULE macro makes the framework aware of your module.
100  // You need to put this macro at the very end of your module class definition.
101  // Give your module a name (first argument) and specify its
102  // class name (second argument). In the ModuleSequenceExample.xml file,
103  // you can see this module being refered to by the name we give it here.
104 
105  REGISTER_MODULE("RdTimeCalibration", RdTimeCalibration);
106 
107  };
108 
109 }
110 
111 
112 #endif
113 
114 // Configure (x)emacs for this file ...
115 // Local Variables:
116 // mode: c++
117 // compile-command: "make -k"
118 // End:
Interface class to access to the Radio part of an event.
Definition: REvent.h:42
int fZone
Band, zone, ellipsoid for the used coordinates.
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
Detector description interface for RDetector-related data.
Definition: RDetector.h:46
void MatchStationTimeStamps(revt::REvent &) const
int fReferenceChannel
Reference channel (ususally 1 = NS, high gain)
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
REGISTER_MODULE("RdTimeCalibration", RdTimeCalibration)
bool fFirstRun
flag, that the expectation is calculated just once
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
std::map< int, std::vector< double > > fRunTimeExpectation
map of the expected runtime
int fReferenceAntennaID
Reference Antenna (ususally 113)
bool fAdjustTime
adjust time yes or no (usually no = 0)
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
std::vector< double > fSourcePosition
Postion of the calibration source.
int fInfoLevel
xml settings: info level (verbosity)

, generated on Tue Sep 26 2023.