Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunedataprep
dunedataprep
DataPrep
Service
ThresholdNoiseRemovalService.h
Go to the documentation of this file.
1
// ThresholdNoiseRemovalService.h
2
//
3
// David Adams
4
// August 2016
5
//
6
// Implementation of service that removes samples with magnitude below a threshold.
7
// Intended for demonstration and test.
8
//
9
// Configuration:
10
// LogLevel - message logging level: 0=none, 1=initialization, 2+=every event
11
// Threshold - samples with |value| < Threshold are set to zero
12
13
#ifndef ThresholdNoiseRemovalService_H
14
#define ThresholdNoiseRemovalService_H
15
16
#include "
dunecore/DuneInterface/Service/AdcChannelNoiseRemovalService.h
"
17
#include "
dunecore/DuneInterface/Data/AdcTypes.h
"
18
19
namespace
geo
{
20
class
Geometry;
21
}
22
23
namespace
lbne
{
24
class
ChannelMapService;
25
}
26
27
class
ThresholdNoiseRemovalService
:
public
AdcChannelNoiseRemovalService
{
28
29
public
:
30
31
ThresholdNoiseRemovalService
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&);
32
33
int
update(
AdcChannelData
&
data
)
const
;
34
35
std::ostream& print(std::ostream& out =std::cout,
std::string
prefix
=
""
)
const
;
36
37
private
:
38
39
// Configuration parameters.
40
int
m_LogLevel
;
41
AdcSignal
m_Threshold
;
42
43
};
44
45
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
ThresholdNoiseRemovalService
,
AdcChannelNoiseRemovalService
, LEGACY)
46
47
#endif
submit_ppfxjobs.prefix
string prefix
Definition:
submit_ppfxjobs.py:128
string
std::string string
Definition:
nybbler.cc:12
AdcSignal
float AdcSignal
Definition:
AdcTypes.h:21
DECLARE_ART_SERVICE_INTERFACE_IMPL
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
AdcChannelData
Definition:
AdcChannelData.h:95
ThresholdNoiseRemovalService::m_Threshold
AdcSignal m_Threshold
Definition:
ThresholdNoiseRemovalService.h:41
lbne
Definition:
MedianPedestalService.h:26
ThresholdNoiseRemovalService::m_LogLevel
int m_LogLevel
Definition:
ThresholdNoiseRemovalService.h:40
ThresholdNoiseRemovalService
Definition:
ThresholdNoiseRemovalService.h:27
AdcChannelNoiseRemovalService
Definition:
AdcChannelNoiseRemovalService.h:15
AdcTypes.h
make_THn_beam_input.data
data
Definition:
make_THn_beam_input.py:80
AdcChannelNoiseRemovalService.h
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
geo
LArSoft geometry interface.
Definition:
ChannelGeo.h:16
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11