Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunedataprep
dunedataprep
DataPrep
Tool
AdcChannelSplitter.h
Go to the documentation of this file.
1
// AdcChannelSplitter.h
2
3
// David Adams
4
// September 2019
5
//
6
// Tool to split ADC samples to a specified length.
7
//
8
// Splits only raw if there are no samples, only samples if there is no
9
// raw or both if they have the same length.
10
//
11
// Configuration:
12
// LogLevel: 0=errors only, 1=show config, 2=message for each trim/pad
13
// Length - Output length.
14
// DataPath: Data view path where the split is applied.
15
// DataView: View where the split is written.
16
//
17
// Output datamap:
18
// int splitInputCount: Number input objects.
19
// int splitOutputCount: Number of created objects.
20
// int splitRawCopiedCount: Number of copied raw sample ticks.
21
// int splitSampleCopiedCount: Number of copied sample ticks.
22
23
#ifndef AdcChannelSplitter_H
24
#define AdcChannelSplitter_H
25
26
#include "
art/Utilities/ToolMacros.h
"
27
#include "
fhiclcpp/ParameterSet.h
"
28
#include "
dunecore/DuneInterface/Tool/TpcDataTool.h
"
29
#include "TH1.h"
30
#include <memory>
31
32
class
AdcChannelStringTool
;
33
class
TPadManipulator
;
34
35
class
AdcChannelSplitter
:
public
TpcDataTool
{
36
37
public
:
38
39
using
Index
=
unsigned
int
;
40
using
Name
=
std::string
;
41
42
AdcChannelSplitter
(
fhicl::ParameterSet
const
&
ps
);
43
44
~AdcChannelSplitter
()
override
=
default
;
45
46
// Inherited methods.
47
DataMap
update
(
AdcChannelData
& acd)
const override
;
48
49
private
:
50
51
// Configuration data.
52
int
m_LogLevel
;
53
Index
m_Length
;
54
Name
m_DataPath
;
55
Name
m_DataView
;
56
57
};
58
59
60
#endif
AdcChannelTool::Index
unsigned int Index
Definition:
AdcChannelTool.h:58
string
std::string string
Definition:
nybbler.cc:12
AdcChannelSplitter::AdcChannelSplitter
AdcChannelSplitter(fhicl::ParameterSet const &ps)
Definition:
AdcChannelSplitter_tool.cc:15
TpcDataTool.h
AdcChannelSplitter::m_Length
Index m_Length
Definition:
AdcChannelSplitter.h:53
AdcChannelSplitter::m_DataView
Name m_DataView
Definition:
AdcChannelSplitter.h:55
AdcChannelData
Definition:
AdcChannelData.h:95
ParameterSet.h
TpcDataTool
Definition:
TpcDataTool.h:17
AdcChannelSplitter::~AdcChannelSplitter
~AdcChannelSplitter() override=default
AdcChannelSplitter::m_LogLevel
int m_LogLevel
Definition:
AdcChannelSplitter.h:52
ToolMacros.h
AdcChannelSplitter::m_DataPath
Name m_DataPath
Definition:
AdcChannelSplitter.h:54
AdcChannelSplitter::Name
std::string Name
Definition:
AdcChannelSplitter.h:40
AdcChannelSplitter
Definition:
AdcChannelSplitter.h:35
AdcChannelSplitter::update
DataMap update(AdcChannelData &acd) const override
Definition:
AdcChannelSplitter_tool.cc:33
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
keras_to_tensorflow.int
int
Definition:
keras_to_tensorflow.py:69
AdcChannelStringTool
Definition:
AdcChannelStringTool.h:15
TPadManipulator
Definition:
TPadManipulator.h:39
DataMap
Definition:
DataMap.h:43
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11