FdCalibrator.h
Go to the documentation of this file.
1 
9 #ifndef _FdCalibratorOG_FdCalibrator_h_
10 #define _FdCalibratorOG_FdCalibrator_h_
11 
12 #include <utl/Trace-fwd.h>
13 #include <fwk/VModule.h>
14 
15 namespace evt {
16  class Event;
17 }
18 
19 namespace fevt {
20  class FEvent;
21  class Eye;
22  class Telescope;
23  class Pixel;
24 }
25 
26 class TEyeEventHeader;
27 class TEyeEvent;
28 
38 namespace FdCalibratorOG {
39 
40  class FdCalibrator : public fwk::VModule {
41 
42  public:
43  // FdCalibrator();
44 
48 
49  private:
50 
51  bool ApplyTimeCorrections(evt::Event& event,
52  TEyeEvent& eyeEvent);
53 
54  void FillDAQInformation(evt::Event& event,
55  TEyeEvent& eyeEvent);
56 
57  void FillTriggerData(evt::Event& event,
58  TEyeEvent& eyeEvent);
59 
60  void FillChannelRecData(evt::Event& event,
61  TEyeEvent& eyeEvent);
62 
63  void FillCalibratedPixels(evt::Event& event,
64  TEyeEvent& eyeEvent);
65 
66 
67  private:
68 
69  void RecoverSaturatedTrace(utl::TraceI& rawFADCTrace,
70  fevt::Pixel& pixel,
71  fevt::Telescope& telEvent);
72 
73  void AdjustMirrorTimes(TEyeEventHeader *eyeheader,
74  fevt::FEvent& theFEvent,
75  fevt::Eye& theEye);
76 
77  void CorrectFDTime(TEyeEventHeader *eyeheader);
78 
79  bool ApplyCalibration(const utl::TraceI& rawtrace,
80  fevt::Pixel& pixel) const;
81 
82  double GetHeatCalibrationCorrection(const unsigned int gpsSecond) const;
83 
85 
93  //double fWavelength; // unused. LN.
97  std::vector<double> fCalibrationCorrection;
98 
100  std::vector<unsigned int> fHeatCaliEpochs;
103  std::vector<double> fHeatCalibration;
104 
105  REGISTER_MODULE("FdCalibratorOG", FdCalibrator);
106 
107  };
108 
109 }
110 
111 #endif
void FillChannelRecData(evt::Event &event, TEyeEvent &eyeEvent)
int fLastMeanSlot
Last time slot used in evaluation of signal baseline.
Definition: FdCalibrator.h:91
Fluorescence Detector Eye Event.
Definition: FEvent/Eye.h:29
REGISTER_MODULE("FdCalibratorOG", FdCalibrator)
void RecoverSaturatedTrace(utl::TraceI &rawFADCTrace, fevt::Pixel &pixel, fevt::Telescope &telEvent)
Fluorescence Detector Pixel event.
Definition: FEvent/Pixel.h:28
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
bool fRecoverSaturatedTraces
wavelength to be used for calibration
Definition: FdCalibrator.h:95
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
bool ApplyTimeCorrections(evt::Event &event, TEyeEvent &eyeEvent)
Top of Fluorescence Detector event hierarchy.
Definition: FEvent.h:33
Module interface.
Definition: VModule.h:53
double GetHeatCalibrationCorrection(const unsigned int gpsSecond) const
std::vector< unsigned int > fHeatCaliEpochs
Epocs (GPSSeconds) for the Correction to the HEAT calibration.
Definition: FdCalibrator.h:100
int fFirstMeanSlot
First time slot used in evaluation of signal baseline.
Definition: FdCalibrator.h:89
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
void FillCalibratedPixels(evt::Event &event, TEyeEvent &eyeEvent)
bool ApplyCalibration(const utl::TraceI &rawtrace, fevt::Pixel &pixel) const
std::vector< double > fCalibrationCorrection
Correction to the calibration of FD eyes.
Definition: FdCalibrator.h:97
std::vector< double > fHeatCalibration
Definition: FdCalibrator.h:103
void FillDAQInformation(evt::Event &event, TEyeEvent &eyeEvent)
Fluorescence Detector Telescope Event.
void FillTriggerData(evt::Event &event, TEyeEvent &eyeEvent)
void AdjustMirrorTimes(TEyeEventHeader *eyeheader, fevt::FEvent &theFEvent, fevt::Eye &theEye)
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
Definition: FdCalibrator.cc:68
void CorrectFDTime(TEyeEventHeader *eyeheader)
bool fCorrectTimes
Flag for corrction un-corrected FD times.
Definition: FdCalibrator.h:87

, generated on Tue Sep 26 2023.