Public Member Functions | Private Attributes | List of all members
ConfigurableAdcChannelDataCopyService Class Reference

#include <ConfigurableAdcChannelDataCopyService.h>

Inheritance diagram for ConfigurableAdcChannelDataCopyService:
AdcChannelDataCopyService

Public Member Functions

 ConfigurableAdcChannelDataCopyService (fhicl::ParameterSet const &pset, art::ActivityRegistry &)
 
int copy (const AdcChannelData &acdin, AdcChannelData &acdout) const
 
std::ostream & print (std::ostream &out=std::cout, std::string prefix="") const
 
- Public Member Functions inherited from AdcChannelDataCopyService
virtual ~AdcChannelDataCopyService ()=default
 

Private Attributes

int m_LogLevel =1
 
bool m_CopyChannel =false
 
bool m_CopyPedestal =false
 
bool m_CopyRaw =false
 
bool m_CopySamples =false
 
bool m_CopyFlags =false
 
bool m_CopySignal =false
 
bool m_CopyRois =false
 
bool m_CopyDigit =false
 
bool m_CopyWire =false
 
bool m_CopyDigitIndex =false
 
bool m_CopyWireIndex =false
 

Detailed Description

Definition at line 27 of file ConfigurableAdcChannelDataCopyService.h.

Constructor & Destructor Documentation

ConfigurableAdcChannelDataCopyService::ConfigurableAdcChannelDataCopyService ( fhicl::ParameterSet const &  pset,
art::ActivityRegistry  
)

Definition at line 15 of file ConfigurableAdcChannelDataCopyService_service.cc.

15  {
16  const string myname = "ConfigurableAdcChannelDataCopyService::ctor: ";
17  pset.get_if_present<int>("LogLevel", m_LogLevel);
18  pset.get_if_present<bool>("CopyChannel", m_CopyChannel);
19  pset.get_if_present<bool>("CopyPedestal", m_CopyPedestal);
20  pset.get_if_present<bool>("CopyRaw", m_CopyRaw);
21  pset.get_if_present<bool>("CopySamples", m_CopySamples);
22  pset.get_if_present<bool>("CopyFlags", m_CopyFlags);
23  pset.get_if_present<bool>("CopySignal", m_CopySignal);
24  pset.get_if_present<bool>("CopyRois", m_CopyRois);
25  pset.get_if_present<bool>("CopyDigit", m_CopyDigit);
26  pset.get_if_present<bool>("CopyWire", m_CopyWire);
27  pset.get_if_present<bool>("CopyDigitIndex", m_CopyDigitIndex);
28  pset.get_if_present<bool>("CopyWireIndex", m_CopyWireIndex);
29  print(cout, myname);
30 }
std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const

Member Function Documentation

int ConfigurableAdcChannelDataCopyService::copy ( const AdcChannelData acdin,
AdcChannelData acdout 
) const
virtual

Implements AdcChannelDataCopyService.

Definition at line 35 of file ConfigurableAdcChannelDataCopyService_service.cc.

35  {
36  const string myname = "ConfigurableAdcChannelDataCopyService:copy: ";
37  if ( m_LogLevel >= 2 ) cout << myname << "Copying channel " << acdin.channel() << endl;
38  if ( m_CopyChannel ) acdout.setChannelInfo(acdin.getChannelInfoPtr());
39  if ( m_CopyPedestal ) acdout.pedestal = acdin.pedestal;
40  if ( m_CopyRaw ) acdout.raw = acdin.raw;
41  if ( m_CopySamples ) acdout.samples = acdin.samples;
42  if ( m_CopyFlags ) acdout.flags = acdin.flags;
43  if ( m_CopySignal ) acdout.signal = acdin.signal;
44  if ( m_CopyRois ) acdout.rois = acdin.rois;
45  if ( m_CopyDigit ) acdout.digit = acdin.digit;
46  if ( m_CopyWire ) acdout.wire = acdin.wire;
47  if ( m_CopyDigitIndex ) acdout.digitIndex = acdin.digitIndex;
48  if ( m_CopyWireIndex ) acdout.wireIndex = acdin.wireIndex;
49  return 0;
50 }
ChannelInfoPtr getChannelInfoPtr() const
const recob::Wire * wire
const raw::RawDigit * digit
void setChannelInfo(ChannelInfoPtr pchi)
AdcRoiVector rois
AdcCountVector raw
Channel channel() const
AdcSignal pedestal
AdcFilterVector signal
AdcIndex digitIndex
AdcIndex wireIndex
AdcSignalVector samples
QTextStream & endl(QTextStream &s)
AdcFlagVector flags
std::ostream & ConfigurableAdcChannelDataCopyService::print ( std::ostream &  out = std::cout,
std::string  prefix = "" 
) const
virtual

Implements AdcChannelDataCopyService.

Definition at line 55 of file ConfigurableAdcChannelDataCopyService_service.cc.

55  {
56  out << prefix << "ConfigurableAdcChannelDataCopyService:" << endl;
57  out << prefix << " LogLevel: " << m_LogLevel << endl;
58  out << prefix << " CopyChannel: " << m_CopyChannel << endl;
59  out << prefix << " CopyPedestal: " << m_CopyPedestal << endl;
60  out << prefix << " CopyRaw: " << m_CopyRaw << endl;
61  out << prefix << " CopySamples: " << m_CopySamples << endl;
62  out << prefix << " CopyFlags: " << m_CopyFlags << endl;
63  out << prefix << " CopySignal: " << m_CopySignal << endl;
64  out << prefix << " CopyRois: " << m_CopyRois << endl;
65  out << prefix << " CopyDigit: " << m_CopyDigit << endl;
66  out << prefix << " CopyWire: " << m_CopyWire << endl;
67  out << prefix << " CopyDigitIndex: " << m_CopyDigitIndex << endl;
68  out << prefix << " CopyWireIndex: " << m_CopyWireIndex << endl;
69  return out;
70 }
QTextStream & endl(QTextStream &s)

Member Data Documentation

bool ConfigurableAdcChannelDataCopyService::m_CopyChannel =false
private

Definition at line 41 of file ConfigurableAdcChannelDataCopyService.h.

bool ConfigurableAdcChannelDataCopyService::m_CopyDigit =false
private

Definition at line 48 of file ConfigurableAdcChannelDataCopyService.h.

bool ConfigurableAdcChannelDataCopyService::m_CopyDigitIndex =false
private

Definition at line 50 of file ConfigurableAdcChannelDataCopyService.h.

bool ConfigurableAdcChannelDataCopyService::m_CopyFlags =false
private

Definition at line 45 of file ConfigurableAdcChannelDataCopyService.h.

bool ConfigurableAdcChannelDataCopyService::m_CopyPedestal =false
private

Definition at line 42 of file ConfigurableAdcChannelDataCopyService.h.

bool ConfigurableAdcChannelDataCopyService::m_CopyRaw =false
private

Definition at line 43 of file ConfigurableAdcChannelDataCopyService.h.

bool ConfigurableAdcChannelDataCopyService::m_CopyRois =false
private

Definition at line 47 of file ConfigurableAdcChannelDataCopyService.h.

bool ConfigurableAdcChannelDataCopyService::m_CopySamples =false
private

Definition at line 44 of file ConfigurableAdcChannelDataCopyService.h.

bool ConfigurableAdcChannelDataCopyService::m_CopySignal =false
private

Definition at line 46 of file ConfigurableAdcChannelDataCopyService.h.

bool ConfigurableAdcChannelDataCopyService::m_CopyWire =false
private

Definition at line 49 of file ConfigurableAdcChannelDataCopyService.h.

bool ConfigurableAdcChannelDataCopyService::m_CopyWireIndex =false
private

Definition at line 51 of file ConfigurableAdcChannelDataCopyService.h.

int ConfigurableAdcChannelDataCopyService::m_LogLevel =1
private

Definition at line 40 of file ConfigurableAdcChannelDataCopyService.h.


The documentation for this class was generated from the following files: