Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunesim
dunesim
DetSim
Service
FixedZeroSuppressService.h
Go to the documentation of this file.
1
// FixedZeroSuppressService.h
2
//
3
// David Adams
4
// November 2015
5
//
6
// Service wrapper for fixed zero suppression.
7
// For now all bins are accepted.
8
// Later we may add an array for each channel.
9
// No parameters (yet).
10
11
#ifndef FixedZeroSuppressService_H
12
#define FixedZeroSuppressService_H
13
14
#include "
dunecore/DuneInterface/Service/AdcSuppressService.h
"
15
16
#include <memory>
17
#include <string>
18
#include <iostream>
19
20
namespace
fhicl
{
21
class
ParameterSet;
22
}
23
namespace
art
{
24
class
ActivityRegistry;
25
}
26
27
class
FixedZeroSuppressService
:
public
AdcSuppressService
{
28
29
public
:
30
31
// Ctor from fcl.
32
FixedZeroSuppressService
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&);
33
34
// Ctor from direct params.
35
FixedZeroSuppressService
();
36
37
// Filter an array of signals. Result is written to keep.
38
int
filter
(
const
AdcCountVector
& sigs,
Channel
chan,
AdcPedestal
ped,
AdcFilterVector
& keep)
const
;
39
40
// Print the configuration.
41
std::ostream& print(std::ostream& out =std::cout,
std::string
prefix
=
""
)
const
;
42
43
private
:
44
45
// Parameters.
46
47
};
48
49
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
FixedZeroSuppressService
,
AdcSuppressService
, LEGACY)
50
51
#endif
AdcCountVector
std::vector< AdcCount > AdcCountVector
Definition:
AdcTypes.h:19
AdcSuppressService.h
submit_ppfxjobs.prefix
string prefix
Definition:
submit_ppfxjobs.py:128
string
std::string string
Definition:
nybbler.cc:12
DECLARE_ART_SERVICE_INTERFACE_IMPL
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
filter
Framework.
Definition:
ProtoDUNEUnstableHVFilter_module.cc:44
FixedZeroSuppressService
Definition:
FixedZeroSuppressService.h:27
AdcSuppressService::Channel
unsigned int Channel
Definition:
AdcSuppressService.h:31
fhicl
Definition:
InputSourceFactory.h:7
AdcFilterVector
std::vector< bool > AdcFilterVector
Definition:
AdcTypes.h:27
AdcPedestal
float AdcPedestal
Definition:
AdcTypes.h:25
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
art
Definition:
BasicOptionsHandler.h:9
AdcSuppressService
Definition:
AdcSuppressService.h:27
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11