Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunedataprep
dunedataprep
DataPrep
TpcTool
Roi2dToAdc.h
Go to the documentation of this file.
1
// Roi2dToAdc.h
2
//
3
// David Adams
4
// February 2021
5
//
6
// Tool to copy 2D ROIs to maps of ADC channel data.
7
//
8
// The samples in the ADC channel data are zeroed and then replaced
9
// with ROI data where present.Updated samples are flagges as signal.
10
//
11
// Configuration:
12
// LogLevel - Logging level: 0=none, 1=init, 2=call, ...
13
//
14
// Returned data map:
15
// r2a_nroi - # ROIS copied
16
// r2a_nchaZeroed - # channels zeroed in ADC data
17
// r2a_nchaFilled - # channels filled in ADC data
18
// r2a_nsamZeroed - # samples zeroed in ADC data
19
// r2a_nsamFilled - # samples filled in ADC data
20
// r2a_nsig - # samples flags as signal
21
22
#ifndef Roi2dToAdc_H
23
#define Roi2dToAdc_H
24
25
#include "
art/Utilities/ToolMacros.h
"
26
#include "
fhiclcpp/ParameterSet.h
"
27
#include "
dunecore/DuneInterface/Tool/TpcDataTool.h
"
28
#include "
dunecore/DuneInterface/Data/IndexRange.h
"
29
#include "
dunecore/DuneInterface/Data/RunData.h
"
30
#include "
dunecore/DuneCommon/Utility/TPadManipulator.h
"
31
#include <iostream>
32
33
class
Roi2dToAdc
:
TpcDataTool
{
34
35
public
:
36
37
using
Index
=
unsigned
int
;
38
39
Roi2dToAdc
(
fhicl::ParameterSet
const
&
ps
);
40
41
~Roi2dToAdc
()
override
;
42
43
// TpcDataTool methods.
44
DataMap
updateTpcData
(
TpcData
& tpd)
const override
;
45
46
private
:
47
48
// Configuration data.
49
int
m_LogLevel
;
50
51
};
52
53
54
#endif
AdcChannelTool::Index
unsigned int Index
Definition:
AdcChannelTool.h:58
TpcDataTool.h
Roi2dToAdc::Roi2dToAdc
Roi2dToAdc(fhicl::ParameterSet const &ps)
Definition:
Roi2dToAdc_tool.cc:19
RunData.h
ParameterSet.h
TpcDataTool
Definition:
TpcDataTool.h:17
ToolMacros.h
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
Roi2dToAdc
Definition:
Roi2dToAdc.h:33
keras_to_tensorflow.int
int
Definition:
keras_to_tensorflow.py:69
Roi2dToAdc::updateTpcData
DataMap updateTpcData(TpcData &tpd) const override
Definition:
Roi2dToAdc_tool.cc:34
IndexRange.h
TpcData
Definition:
TpcData.h:25
Roi2dToAdc::m_LogLevel
int m_LogLevel
Definition:
Roi2dToAdc.h:49
Roi2dToAdc::~Roi2dToAdc
~Roi2dToAdc() override
Definition:
Roi2dToAdc_tool.cc:30
DataMap
Definition:
DataMap.h:43
TPadManipulator.h
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11