BeamlineCalibration.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////
2 /// \file BeamlineCalibration.h
3 /// \brief Calibration service to provide specific externally-measured
4 /// values to the relevant reconstruction/analyzer software.
5 /// \author Mike Wallbank (University of Cincinnati) <wallbank@fnal.gov>
6 /// \date August 2019
7 ////////////////////////////////////////////////////////////////////////////
8 
9 #ifndef BeamlineCalibration_H
10 #define BeamlineCalibration_H
11 
12 // framework
16 
17 // nova
19 
20 // stl
21 #include <map>
22 #include <vector>
23 #include <iostream>
24 #include <limits>
25 #include <fstream>
26 
27 // -----------------------------------------------------------------------
28 namespace beamlineutil {
29  class BeamlineCalibration;
30 }
31 
32 // -----------------------------------------------------------------------
34 
35 public:
36 
39 
40  /// Relative timing calibrations between individual digitizer channels
41  double TimeCorrection(ChannelID channel) const;
42 
43  /// Relative timing calibrations between individual digitizer channels
44  double TimeCorrection(unsigned int channel) const;
45 
46 private:
47 
48  // methods
49  void ReadCalibrationData(const fhicl::ParameterSet& pset);
50 
51  // members
52  std::map<ChannelID, float> fTimeCorrections;
53 
54  // services
56 
57 };
58 
59 // -----------------------------------------------------------------------
61 
62 #endif
void ReadCalibrationData(const fhicl::ParameterSet &pset)
#define DECLARE_ART_SERVICE(svc, scope)
Definition: ServiceMacros.h:91
double TimeCorrection(ChannelID channel) const
Relative timing calibrations between individual digitizer channels.
art::ServiceHandle< BeamlineChannelMap > fChannelMap
BeamlineCalibration(fhicl::ParameterSet const &pset)
std::map< ChannelID, float > fTimeCorrections
Channel mapping service which may be used to interpret the channels which are read out by the various...