Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunesim
dunesim
DetSim
Service
ReplaceCompressService.h
Go to the documentation of this file.
1
// ReplaceCompressService.h
2
//
3
// David Adams
4
// November 2015
5
//
6
// Utility/service to compress an ADC vector by replacing filtered out values
7
// with a configurable zero value plus a passed offset (pedestal).
8
//
9
// FCL parameters
10
// Zero [0] - replacement value
11
12
#ifndef ReplaceCompressService_H
13
#define ReplaceCompressService_H
14
15
#include "
dunecore/DuneInterface/Service/AdcCompressService.h
"
16
17
namespace
fhicl
{
18
class
ParameterSet;
19
}
20
namespace
art
{
21
class
ActivityRegistry;
22
}
23
24
class
ReplaceCompressService
:
public
AdcCompressService
{
25
26
public
:
27
28
// Ctor from parameters that characterize the algorithm.
29
ReplaceCompressService
(
AdcCount
azero =0);
30
31
// Ctor from fcl.
32
ReplaceCompressService
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&);
33
34
// Compress a vector of signals.
35
// Suppressed signals are replaced with the value of offset + (FCL parameter) Zero.
36
int
compress(
AdcCountVector
& sigs,
37
const
AdcFilterVector
& keep,
38
AdcCount
offset,
39
raw::Compress_t
& comp)
const
;
40
41
// Return the value assigned to suppressed channels.
42
AdcCount
zero()
const
;
43
44
// Print the configuration.
45
std::ostream& print(std::ostream& out =std::cout,
std::string
prefix
=
" "
)
const
;
46
47
private
:
48
49
AdcCount
m_zero
;
50
51
};
52
53
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
ReplaceCompressService
,
AdcCompressService
, LEGACY)
54
55
#endif
AdcCountVector
std::vector< AdcCount > AdcCountVector
Definition:
AdcTypes.h:19
raw::Compress_t
enum raw::_compress Compress_t
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
fhicl
Definition:
InputSourceFactory.h:7
AdcCompressService.h
AdcCompressService
Definition:
AdcCompressService.h:26
AdcFilterVector
std::vector< bool > AdcFilterVector
Definition:
AdcTypes.h:27
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
art
Definition:
BasicOptionsHandler.h:9
ReplaceCompressService::m_zero
AdcCount m_zero
Definition:
ReplaceCompressService.h:49
ReplaceCompressService
Definition:
ReplaceCompressService.h:24
AdcCount
short AdcCount
Definition:
AdcTypes.h:18
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11