Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunedataprep
dunedataprep
DataPrep
Service
ConfigurableAdcChannelDataCopyService.h
Go to the documentation of this file.
1
// ConfigurableAdcChannelDataCopyService.h
2
//
3
// David Adams
4
// September 2016
5
//
6
// Simple implementation of a service that copies AdcChannelData.
7
// There is a flag for each field.
8
//
9
// Configuration:
10
// LogLevel - message logging level: 0=none, 1=initialization, 2+=every copy
11
// CopyChannel - copy the channel number [false]
12
// CopyPedestal - copy the pedestal [false]
13
// CopyRaw - copy the raw data [false]
14
// CopySamples - copy the samples [false]
15
// CopyFlags - copy the flags [false]
16
// CopyRois - copy the rois [false]
17
// CopyDigit - copy the digit pointer [false]
18
// CopyWire - copy the wire pointer [false]
19
// CopyDigitIndex - copy the digit index [false]
20
// CopyWireIndex - copy the wire index [false]
21
22
#ifndef ConfigurableAdcChannelDataCopyService_H
23
#define ConfigurableAdcChannelDataCopyService_H
24
25
#include "
dunecore/DuneInterface/Service/AdcChannelDataCopyService.h
"
26
27
class
ConfigurableAdcChannelDataCopyService
:
public
AdcChannelDataCopyService
{
28
29
public
:
30
31
ConfigurableAdcChannelDataCopyService
(
fhicl::ParameterSet
const
& pset,
art::ActivityRegistry
&);
32
33
int
copy
(
const
AdcChannelData
& acdin,
AdcChannelData
& acdout)
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
=1;
41
bool
m_CopyChannel
=
false
;
42
bool
m_CopyPedestal
=
false
;
43
bool
m_CopyRaw
=
false
;
44
bool
m_CopySamples
=
false
;
45
bool
m_CopyFlags
=
false
;
46
bool
m_CopySignal
=
false
;
47
bool
m_CopyRois
=
false
;
48
bool
m_CopyDigit
=
false
;
49
bool
m_CopyWire
=
false
;
50
bool
m_CopyDigitIndex
=
false
;
51
bool
m_CopyWireIndex
=
false
;
52
53
};
54
55
DECLARE_ART_SERVICE_INTERFACE_IMPL
(
ConfigurableAdcChannelDataCopyService
,
AdcChannelDataCopyService
, LEGACY)
56
57
#endif
ConfigurableAdcChannelDataCopyService::print
std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const
Definition:
ConfigurableAdcChannelDataCopyService_service.cc:55
AdcChannelDataCopyService
Definition:
AdcChannelDataCopyService.h:14
submit_ppfxjobs.prefix
string prefix
Definition:
submit_ppfxjobs.py:128
ConfigurableAdcChannelDataCopyService
Definition:
ConfigurableAdcChannelDataCopyService.h:27
string
std::string string
Definition:
nybbler.cc:12
ConfigurableAdcChannelDataCopyService::m_LogLevel
int m_LogLevel
Definition:
ConfigurableAdcChannelDataCopyService.h:40
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
ConfigurableAdcChannelDataCopyService::m_CopySamples
bool m_CopySamples
Definition:
ConfigurableAdcChannelDataCopyService.h:44
ConfigurableAdcChannelDataCopyService::copy
int copy(const AdcChannelData &acdin, AdcChannelData &acdout) const
Definition:
ConfigurableAdcChannelDataCopyService_service.cc:35
ConfigurableAdcChannelDataCopyService::m_CopyDigit
bool m_CopyDigit
Definition:
ConfigurableAdcChannelDataCopyService.h:48
ConfigurableAdcChannelDataCopyService::m_CopyFlags
bool m_CopyFlags
Definition:
ConfigurableAdcChannelDataCopyService.h:45
ConfigurableAdcChannelDataCopyService::ConfigurableAdcChannelDataCopyService
ConfigurableAdcChannelDataCopyService(fhicl::ParameterSet const &pset, art::ActivityRegistry &)
Definition:
ConfigurableAdcChannelDataCopyService_service.cc:15
ConfigurableAdcChannelDataCopyService::m_CopyWireIndex
bool m_CopyWireIndex
Definition:
ConfigurableAdcChannelDataCopyService.h:51
AdcChannelDataCopyService.h
ConfigurableAdcChannelDataCopyService::m_CopyRois
bool m_CopyRois
Definition:
ConfigurableAdcChannelDataCopyService.h:47
ConfigurableAdcChannelDataCopyService::m_CopyPedestal
bool m_CopyPedestal
Definition:
ConfigurableAdcChannelDataCopyService.h:42
ConfigurableAdcChannelDataCopyService::m_CopyChannel
bool m_CopyChannel
Definition:
ConfigurableAdcChannelDataCopyService.h:41
ConfigurableAdcChannelDataCopyService::m_CopyRaw
bool m_CopyRaw
Definition:
ConfigurableAdcChannelDataCopyService.h:43
ConfigurableAdcChannelDataCopyService::m_CopyDigitIndex
bool m_CopyDigitIndex
Definition:
ConfigurableAdcChannelDataCopyService.h:50
art::ActivityRegistry
Definition:
ActivityRegistry.h:52
ConfigurableAdcChannelDataCopyService::m_CopyWire
bool m_CopyWire
Definition:
ConfigurableAdcChannelDataCopyService.h:49
ConfigurableAdcChannelDataCopyService::m_CopySignal
bool m_CopySignal
Definition:
ConfigurableAdcChannelDataCopyService.h:46
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11