Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunedataprep
dunedataprep
DataPrep
Tool
AdcSampleScaler.h
Go to the documentation of this file.
1
// AdcSampleScaler.h
2
//
3
// Tool to scale the samples in AdcSampleData.
4
//
5
// Configuration:
6
// LogLevel: 0=silent, 1=init, 2=each event, >2=more
7
// ScaleFactor: Factor by which samples are scaled.
8
// OutputUnit: Value assigned for sampleUnit. If balnk, old value is retained.
9
// InputUnit: If non-blank, then this is compared with sampleUnit and a warning
10
// broadcast if they differ.
11
12
#ifndef AdcSampleScaler_H
13
#define AdcSampleScaler_H
14
15
#include "
art/Utilities/ToolMacros.h
"
16
#include "
fhiclcpp/ParameterSet.h
"
17
#include "
dunecore/DuneInterface/Tool/TpcDataTool.h
"
18
19
class
AdcSampleScaler
:
TpcDataTool
{
20
21
public
:
22
23
AdcSampleScaler
(
fhicl::ParameterSet
const
&
ps
);
24
25
~AdcSampleScaler
()
override
=
default
;
26
27
DataMap
update
(
AdcChannelData
& acd)
const override
;
28
29
private
:
30
31
// Configuration data.
32
int
m_LogLevel
;
33
float
m_ScaleFactor
;
34
std::string
m_OutputUnit
;
35
std::string
m_InputUnit
;
36
37
};
38
39
40
#endif
AdcSampleScaler::AdcSampleScaler
AdcSampleScaler(fhicl::ParameterSet const &ps)
Definition:
AdcSampleScaler_tool.cc:16
AdcSampleScaler::m_ScaleFactor
float m_ScaleFactor
Definition:
AdcSampleScaler.h:33
string
std::string string
Definition:
nybbler.cc:12
TpcDataTool.h
AdcChannelData
Definition:
AdcChannelData.h:95
ParameterSet.h
TpcDataTool
Definition:
TpcDataTool.h:17
ToolMacros.h
AdcSampleScaler::update
DataMap update(AdcChannelData &acd) const override
Definition:
AdcSampleScaler_tool.cc:33
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
AdcSampleScaler::m_LogLevel
int m_LogLevel
Definition:
AdcSampleScaler.h:32
AdcSampleScaler::m_OutputUnit
std::string m_OutputUnit
Definition:
AdcSampleScaler.h:34
AdcSampleScaler::~AdcSampleScaler
~AdcSampleScaler() override=default
AdcSampleScaler
Definition:
AdcSampleScaler.h:19
AdcSampleScaler::m_InputUnit
std::string m_InputUnit
Definition:
AdcSampleScaler.h:35
DataMap
Definition:
DataMap.h:43
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11