Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunedataprep
dunedataprep
DataPrep
TpcTool
AdcToRoi2d.h
Go to the documentation of this file.
1
// AdcToRoi2d.h
2
//
3
// David Adams
4
// February 2021
5
//
6
// Tool to convert maps of ADC channel data into 2D ROIs.
7
//
8
// Configuration:
9
// LogLevel - Logging level: 0=none, 1=init, 2=call, ...
10
// Option - Action to take:
11
// 0 - none except logging
12
// 1 - One ROI for each channel map
13
// 2 - All channel maps merged into a single ROI.
14
// InputAdcMaps - Indices of the ADC maps that should be processed.
15
// If empty, all maps are processed.
16
// OutputNames - Names for the subdirectories where the 2D ROIs are written.
17
// If blank, they are written into the top level.
18
// Otherwise there should be one name for each entry in the ADC vector.
19
// Returned data map:
20
// a2r_nroi - # ROIS created
21
// a2r_nsams - # samples for each ROI
22
23
#ifndef AdcToRoi2d_H
24
#define AdcToRoi2d_H
25
26
#include "
art/Utilities/ToolMacros.h
"
27
#include "
fhiclcpp/ParameterSet.h
"
28
#include "
dunecore/DuneInterface/Tool/TpcDataTool.h
"
29
#include "
dunecore/DuneInterface/Data/IndexRange.h
"
30
#include "
dunecore/DuneInterface/Data/RunData.h
"
31
#include "
dunecore/DuneCommon/Utility/TPadManipulator.h
"
32
#include <iostream>
33
34
class
AdcToRoi2d
:
TpcDataTool
{
35
36
public
:
37
38
using
Index
=
unsigned
int
;
39
using
IndexVector
= std::vector<Index>;
40
using
Name
=
std::string
;
41
using
NameVector
= std::vector<Name>;
42
43
AdcToRoi2d
(
fhicl::ParameterSet
const
&
ps
);
44
45
~AdcToRoi2d
()
override
;
46
47
// TpcDataTool methods.
48
DataMap
updateTpcData
(
TpcData
& tpd)
const override
;
49
50
private
:
51
52
// Configuration data.
53
int
m_LogLevel
;
54
Index
m_Option
;
55
IndexVector
m_InputAdcMaps
;
56
NameVector
m_OutputNames
;
57
58
};
59
60
61
#endif
AdcToRoi2d::m_LogLevel
int m_LogLevel
Definition:
AdcToRoi2d.h:53
AdcToRoi2d::updateTpcData
DataMap updateTpcData(TpcData &tpd) const override
Definition:
AdcToRoi2d_tool.cc:61
AdcChannelTool::Index
unsigned int Index
Definition:
AdcChannelTool.h:58
string
std::string string
Definition:
nybbler.cc:12
TpcDataTool.h
RunData.h
AdcToRoi2d::m_Option
Index m_Option
Definition:
AdcToRoi2d.h:54
AdcToRoi2d::m_OutputNames
NameVector m_OutputNames
Definition:
AdcToRoi2d.h:56
ParameterSet.h
TpcDataTool
Definition:
TpcDataTool.h:17
ToolMacros.h
AdcToRoi2d::NameVector
std::vector< Name > NameVector
Definition:
AdcToRoi2d.h:41
AdcToRoi2d::Name
std::string Name
Definition:
AdcToRoi2d.h:40
AdcToRoi2d::~AdcToRoi2d
~AdcToRoi2d() override
Definition:
AdcToRoi2d_tool.cc:57
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
AdcToRoi2d::AdcToRoi2d
AdcToRoi2d(fhicl::ParameterSet const &ps)
Definition:
AdcToRoi2d_tool.cc:29
keras_to_tensorflow.int
int
Definition:
keras_to_tensorflow.py:69
IndexRange.h
AdcToRoi2d
Definition:
AdcToRoi2d.h:34
TpcData
Definition:
TpcData.h:25
AdcToRoi2d::IndexVector
std::vector< Index > IndexVector
Definition:
AdcToRoi2d.h:39
AdcToRoi2d::m_InputAdcMaps
IndexVector m_InputAdcMaps
Definition:
AdcToRoi2d.h:55
DataMap
Definition:
DataMap.h:43
TPadManipulator.h
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11