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 
26 
28 
29 public:
30 
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 
56 
57 #endif
std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const
std::string string
Definition: nybbler.cc:12
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
int copy(const AdcChannelData &acdin, AdcChannelData &acdout) const
ConfigurableAdcChannelDataCopyService(fhicl::ParameterSet const &pset, art::ActivityRegistry &)