Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
DuneCommon
Tool
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
19
#include "
art/Utilities/ToolMacros.h
"
20
#include "
fhiclcpp/ParameterSet.h
"
21
#include "
dunecore/DuneInterface/Tool/TimeOffsetTool.h
"
22
#include <vector>
23
24
class
FixedTimeOffsetTool
:
public
TimeOffsetTool
{
25
26
public
:
27
28
using
Name
=
std::string
;
29
30
// Ctor.
31
FixedTimeOffsetTool
(
fhicl::ParameterSet
const
&
ps
);
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.
42
Index
m_LogLevel
;
43
long
m_Value
;
44
double
m_Rem
;
45
Name
m_Unit
;
46
47
};
48
49
50
#endif
FixedTimeOffsetTool::m_Value
long m_Value
Definition:
FixedTimeOffsetTool.h:43
FixedTimeOffsetTool::FixedTimeOffsetTool
FixedTimeOffsetTool(fhicl::ParameterSet const &ps)
Definition:
FixedTimeOffsetTool_tool.cc:16
string
std::string string
Definition:
nybbler.cc:12
wirecell.sigproc.paper.noise.dat
dat
Definition:
noise.py:64
FixedTimeOffsetTool::m_LogLevel
Index m_LogLevel
Definition:
FixedTimeOffsetTool.h:42
ParameterSet.h
TimeOffsetTool::Index
unsigned int Index
Definition:
TimeOffsetTool.h:15
ToolMacros.h
TimeOffsetTool.h
FixedTimeOffsetTool::offset
Offset offset(const Data &dat) const override
Definition:
FixedTimeOffsetTool_tool.cc:33
FixedTimeOffsetTool
Definition:
FixedTimeOffsetTool.h:24
FixedTimeOffsetTool::~FixedTimeOffsetTool
~FixedTimeOffsetTool() override=default
FixedTimeOffsetTool::Name
std::string Name
Definition:
FixedTimeOffsetTool.h:28
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
FixedTimeOffsetTool::m_Unit
Name m_Unit
Definition:
FixedTimeOffsetTool.h:45
TimeOffsetTool::Data
Definition:
TimeOffsetTool.h:20
TimeOffsetTool::Offset
Definition:
TimeOffsetTool.h:34
TimeOffsetTool
Definition:
TimeOffsetTool.h:11
FixedTimeOffsetTool::m_Rem
double m_Rem
Definition:
FixedTimeOffsetTool.h:44
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11