FixedTimeOffsetTool.h
Go to the documentation of this file.
1 // FixedTimeOffsetTool.h
2 //
3 // David Adams
4 // June 2018
5 //
6 // Tool that returns a fixed time offset.
7 //
8 // Parameters:
9 // LogLevel - Message logging level (0=none, 1=ctor, 2=each call, ...)
10 // Value - Integral part of the time offset
11 // Rem - Floating part of the time offset
12 // Unit - Unit for the time offset (e.g. daq, tick, ns).
13 //
14 // For protoDUNE, daq is us/50, i.e 20 ns.
15 
16 #ifndef FixedTimeOffsetTool_H
17 #define FixedTimeOffsetTool_H
18 
20 #include "fhiclcpp/ParameterSet.h"
22 #include <vector>
23 
25 
26 public:
27 
28  using Name = std::string;
29 
30  // Ctor.
32 
33  // Dtor.
34  ~FixedTimeOffsetTool() override =default;
35 
36  // Return run data.
37  Offset offset(const Data& dat) const override;
38 
39 private:
40 
41  // Parameters.
43  long m_Value;
44  double m_Rem;
46 
47 };
48 
49 
50 #endif
FixedTimeOffsetTool(fhicl::ParameterSet const &ps)
std::string string
Definition: nybbler.cc:12
unsigned int Index
Offset offset(const Data &dat) const override
~FixedTimeOffsetTool() override=default
static constexpr double ps
Definition: Units.h:99