Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunedataprep
dunedataprep
DataPrep
Tool
AdcSampleFiller.h
Go to the documentation of this file.
1
// AdcSampleFiller.h
2
3
// David Adams
4
// October 2017
5
//
6
// Tool to convert raw ADC values into samples.
7
//
8
// Subtracts the pedestal and records the sample in ADC units.
9
//
10
// If AdcOverflow > AdcUnderflow, then
11
// Underflow flag is set for ADC value at or below AdcUnderflow
12
// Overflow flag is set for ADC value at or above AdcOverflow
13
//
14
// Configuration:
15
// LogLevel - 0=silent, 1=init, 2=each event, >2=more
16
// AdcUnderflow - value for underflow
17
// AdcOverflow - value for underflow
18
//
19
// The output results holds:
20
// int nUnderflow - # ticks at or below AdcUnderflow
21
// int nOverflow - # ticks at or below AdcUnderflow
22
// int nOutOfRange - # ticks below AdcUnderflow or above AdcOverflow
23
//
24
// Reads: raw
25
// Writes: samples, flags
26
27
#ifndef AdcSampleFiller_H
28
#define AdcSampleFiller_H
29
30
#include "
art/Utilities/ToolMacros.h
"
31
#include "
fhiclcpp/ParameterSet.h
"
32
#include "
dunecore/DuneInterface/Tool/TpcDataTool.h
"
33
#include <string>
34
#include <vector>
35
36
class
HistogramManager
;
37
class
TH1;
38
39
class
AdcSampleFiller
40
:
public
TpcDataTool
{
41
42
public
:
43
44
AdcSampleFiller
(
fhicl::ParameterSet
const
&
ps
);
45
46
DataMap
view
(
const
AdcChannelData
& acd)
const override
;
47
48
DataMap
update
(
AdcChannelData
& acd)
const override
;
49
50
private
:
51
52
// Configuration data.
53
int
m_LogLevel
;
54
AdcIndex
m_AdcUnderflow
;
55
AdcIndex
m_AdcOverflow
;
56
57
};
58
59
60
#endif
AdcSampleFiller::update
DataMap update(AdcChannelData &acd) const override
Definition:
AdcSampleFiller_tool.cc:29
AdcSampleFiller::view
DataMap view(const AdcChannelData &acd) const override
Definition:
AdcSampleFiller_tool.cc:69
TpcDataTool.h
AdcSampleFiller::m_LogLevel
int m_LogLevel
Definition:
AdcSampleFiller.h:53
AdcChannelData
Definition:
AdcChannelData.h:95
HistogramManager
Definition:
HistogramManager.h:20
AdcSampleFiller::m_AdcOverflow
AdcIndex m_AdcOverflow
Definition:
AdcSampleFiller.h:55
ParameterSet.h
TpcDataTool
Definition:
TpcDataTool.h:17
ToolMacros.h
AdcSampleFiller
Definition:
AdcSampleFiller.h:39
AdcSampleFiller::m_AdcUnderflow
AdcIndex m_AdcUnderflow
Definition:
AdcSampleFiller.h:54
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
AdcIndex
unsigned int AdcIndex
Definition:
AdcTypes.h:15
AdcSampleFiller::AdcSampleFiller
AdcSampleFiller(fhicl::ParameterSet const &ps)
Definition:
AdcSampleFiller_tool.cc:14
DataMap
Definition:
DataMap.h:43
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11