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

#include <KeepAllRoiBuildingService.h>

Inheritance diagram for KeepAllRoiBuildingService:
AdcRoiBuildingService

Public Member Functions

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

Private Attributes

int m_LogLevel
 

Detailed Description

Definition at line 19 of file KeepAllRoiBuildingService.h.

Constructor & Destructor Documentation

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

Definition at line 21 of file KeepAllRoiBuildingService_service.cc.

22 : m_LogLevel(1) {
23  const string myname = "KeepAllRoiBuildingService::ctor: ";
24  pset.get_if_present<int>("LogLevel", m_LogLevel);
25  if ( m_LogLevel > 0 ) print(cout, myname);
26 }
std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const

Member Function Documentation

int KeepAllRoiBuildingService::build ( AdcChannelData data) const
virtual

Implements AdcRoiBuildingService.

Definition at line 31 of file KeepAllRoiBuildingService_service.cc.

31  {
32  const string myname = "KeepAllRoiBuildingService:build: ";
33  if ( m_LogLevel >= 2 ) cout << myname << "Building ROIs for channel "
34  << data.channel() << "." << endl;
35  data.signal.clear();
36  data.signal.resize(data.samples.size(), true);
37  data.roisFromSignal();
38  return 0;
39 }
Channel channel() const
AdcFilterVector signal
AdcSignalVector samples
QTextStream & endl(QTextStream &s)
ostream & KeepAllRoiBuildingService::print ( std::ostream &  out = std::cout,
std::string  prefix = "" 
) const
virtual

Implements AdcRoiBuildingService.

Definition at line 44 of file KeepAllRoiBuildingService_service.cc.

44  {
45  out << prefix << "KeepAllRoiBuildingService:" << endl;
46  out << prefix << " LogLevel: " << m_LogLevel << endl;
47  return out;
48 }
QTextStream & endl(QTextStream &s)

Member Data Documentation

int KeepAllRoiBuildingService::m_LogLevel
private

Definition at line 32 of file KeepAllRoiBuildingService.h.


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