Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunedataprep
dunedataprep
DataPrep
Tool
DuneAdcSignalFinder.h
Go to the documentation of this file.
1
// DuneAdcSignalFinder.h
2
3
// David Adams
4
// May 2018
5
//
6
// Tool to find and flag signal regions in ADC data using the
7
// algorithm developed for the 35t prototype TPC. An unpadded
8
// ROI starts for any signal above NSigmaStart sigma above the noise
9
// and continues until the level falls below NSigmaEnd sigma.
10
// NSigmaEnd was fixed to 1.0 in the original code.
11
//
12
// Configuration:
13
// LogLevel - usual log level
14
// NoiseSigma - Assumed noise level (sample units).
15
// If <=0, AdcChannelData::sampleNoise is used.
16
// NSigmaStart - Level in sigma at which an unpadded signal starts.
17
// NSigmaEnd - Level in sigma at which an unpadded signal ends.
18
// TicksBefore - Number of ticks to retain before unpadded region.
19
// TicksAfter - Number of ticks to retain after unpadded region.
20
//
21
// The output results holds:
22
// nroi - # ROIs found
23
24
#ifndef DuneAdcSignalFinder_H
25
#define DuneAdcSignalFinder_H
26
27
#include "
art/Utilities/ToolMacros.h
"
28
#include "
fhiclcpp/ParameterSet.h
"
29
#include "
dunecore/DuneInterface/Tool/TpcDataTool.h
"
30
#include <string>
31
#include <vector>
32
33
class
DuneAdcSignalFinder
34
:
public
TpcDataTool
{
35
36
public
:
37
38
DuneAdcSignalFinder
(
fhicl::ParameterSet
const
&
ps
);
39
40
DataMap
view
(
const
AdcChannelData
& acd)
const override
;
41
42
DataMap
update
(
AdcChannelData
& acd)
const override
;
43
44
private
:
45
46
using
Name
=
std::string
;
47
48
// Configuration data.
49
int
m_LogLevel
;
50
AdcSignal
m_NoiseSigma
;
51
AdcSignal
m_NSigmaStart
;
52
AdcSignal
m_NSigmaEnd
;
53
AdcIndex
m_TicksBefore
;
54
AdcIndex
m_TicksAfter
;
55
56
};
57
58
59
#endif
string
std::string string
Definition:
nybbler.cc:12
AdcSignal
float AdcSignal
Definition:
AdcTypes.h:21
TpcDataTool.h
AdcChannelData
Definition:
AdcChannelData.h:95
DuneAdcSignalFinder::m_NSigmaEnd
AdcSignal m_NSigmaEnd
Definition:
DuneAdcSignalFinder.h:52
ParameterSet.h
TpcDataTool
Definition:
TpcDataTool.h:17
DuneAdcSignalFinder::DuneAdcSignalFinder
DuneAdcSignalFinder(fhicl::ParameterSet const &ps)
Definition:
DuneAdcSignalFinder_tool.cc:16
ToolMacros.h
DuneAdcSignalFinder::m_TicksAfter
AdcIndex m_TicksAfter
Definition:
DuneAdcSignalFinder.h:54
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
DuneAdcSignalFinder::m_NoiseSigma
AdcSignal m_NoiseSigma
Definition:
DuneAdcSignalFinder.h:50
AdcIndex
unsigned int AdcIndex
Definition:
AdcTypes.h:15
DuneAdcSignalFinder
Definition:
DuneAdcSignalFinder.h:33
DuneAdcSignalFinder::view
DataMap view(const AdcChannelData &acd) const override
Definition:
DuneAdcSignalFinder_tool.cc:125
DuneAdcSignalFinder::m_LogLevel
int m_LogLevel
Definition:
DuneAdcSignalFinder.h:49
DuneAdcSignalFinder::m_NSigmaStart
AdcSignal m_NSigmaStart
Definition:
DuneAdcSignalFinder.h:51
DuneAdcSignalFinder::m_TicksBefore
AdcIndex m_TicksBefore
Definition:
DuneAdcSignalFinder.h:53
DataMap
Definition:
DataMap.h:43
DuneAdcSignalFinder::Name
std::string Name
Definition:
DuneAdcSignalFinder.h:46
DuneAdcSignalFinder::update
DataMap update(AdcChannelData &acd) const override
Definition:
DuneAdcSignalFinder_tool.cc:38
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11