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

#include <AdcSuppressSignalFindingService.h>

Inheritance diagram for AdcSuppressSignalFindingService:
AdcSignalFindingService

Public Member Functions

 AdcSuppressSignalFindingService (fhicl::ParameterSet const &pset, art::ActivityRegistry &)
 
int find (AdcChannelData &data) const
 
std::ostream & print (std::ostream &out=std::cout, std::string prefix="") const
 
- Public Member Functions inherited from AdcSignalFindingService
virtual ~AdcSignalFindingService ()=default
 

Private Attributes

const AdcSuppressServicem_psup
 

Detailed Description

Definition at line 16 of file AdcSuppressSignalFindingService.h.

Constructor & Destructor Documentation

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

Member Function Documentation

int AdcSuppressSignalFindingService::find ( AdcChannelData data) const
virtual

Implements AdcSignalFindingService.

Definition at line 25 of file AdcSuppressSignalFindingService_service.cc.

25  {
26  const string myname = "AdcSuppressSignalFindingService:find: ";
27  const AdcCountVector& raw = data.raw;
28  if ( raw.size() == 0 && data.samples.size() != 0 ) {
29  cout << "ERROR: Input data does not include raw counts." << endl;
30  return 1;
31  }
32  if ( raw.size() != data.samples.size() ) {
33  cout << "ERROR: Input prep and raw data have inconsistent sizes." << endl;
34  return 2;
35  }
36  m_psup->filter(raw, data.channel(), data.pedestal, data.signal);
37  return 0;
38 }
std::vector< AdcCount > AdcCountVector
Definition: AdcTypes.h:19
Raw data description.
AdcCountVector raw
Channel channel() const
AdcSignal pedestal
AdcFilterVector signal
virtual int filter(const AdcCountVector &sigs, Channel chan, AdcPedestal ped, AdcFilterVector &keep) const =0
AdcSignalVector samples
QTextStream & endl(QTextStream &s)
ostream & AdcSuppressSignalFindingService::print ( std::ostream &  out = std::cout,
std::string  prefix = "" 
) const
virtual

Implements AdcSignalFindingService.

Definition at line 43 of file AdcSuppressSignalFindingService_service.cc.

43  {
44  out << prefix << "AdcSuppressSignalFindingService:" << endl;
45  return out;
46 }
QTextStream & endl(QTextStream &s)

Member Data Documentation

const AdcSuppressService* AdcSuppressSignalFindingService::m_psup
private

Definition at line 29 of file AdcSuppressSignalFindingService.h.


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