#include <DuneRoiBuildingService.h>
Definition at line 39 of file DuneRoiBuildingService.h.
Definition at line 22 of file DuneRoiBuildingService_service.cc.
24 const string myname =
"DuneRoiBuildingService::ctor: ";
25 pset.get_if_present<
int>(
"LogLevel",
m_LogLevel);
std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const
Implements AdcRoiBuildingService.
Definition at line 36 of file DuneRoiBuildingService_service.cc.
37 const string myname =
"DuneRoiBuildingService:build: ";
38 if (
m_LogLevel >= 2 ) cout << myname <<
"Building ROIs for channel " 45 cout << myname <<
" Noise level: " << sigma <<
" " << data.
sampleUnit <<
endl;
52 signal.resize(sigs.size(),
false);
59 <<
" has no samples." <<
endl;
62 for (
AdcIndex isig=0; isig<sigs.size(); ++isig ) {
71 if ( sig > sighigh ) {
81 cout << myname <<
" ROIs before merge (size = " << rois.size() <<
"):" <<
endl;
82 for (
const AdcRoi& roi : rois ) {
83 cout << myname <<
setw(8) << roi.first <<
" " <<
setw(8) << roi.second <<
endl;
86 cout << myname <<
" ROI count before merge: " << data.
rois.size() <<
endl;
88 if ( rois.size() == 0 )
return 0;
90 unsigned int isig1 = 0;
91 unsigned int isig2 = 0;
92 for (
AdcRoi roi : rois ) {
95 for (
unsigned int isig=isig1; isig<isig2; ++isig ) signal[isig] =
true;
96 isig1 = roi.second + 1;
98 if ( isig2 > nsig ) isig2 = nsig;
99 for (
unsigned int isig=isig1; isig<isig2; ++isig ) signal[isig] =
true;
105 cout << myname <<
" ROIs after merge (size = " << rois.size() <<
"):" <<
endl;
106 for (
const AdcRoi& roi : rois ) {
107 cout << myname <<
setw(8) << roi.first <<
" " <<
setw(8) << roi.second <<
endl;
110 cout << myname <<
" ROI count after merge: " << data.
rois.size() <<
endl;
std::pair< AdcIndex, AdcIndex > AdcRoi
double GetDeconNoise(Channel channel) const override
Q_EXPORT QTSManip setw(int w)
std::vector< AdcRoi > AdcRoiVector
std::vector< bool > AdcFilterVector
std::vector< AdcSignal > AdcSignalVector
QTextStream & endl(QTextStream &s)
ostream & DuneRoiBuildingService::print |
( |
std::ostream & |
out = std::cout , |
|
|
std::string |
prefix = "" |
|
) |
| const |
|
virtual |
int DuneRoiBuildingService::m_LogLevel |
|
private |
AdcSignal DuneRoiBuildingService::m_NSigmaEnd |
|
private |
AdcSignal DuneRoiBuildingService::m_NSigmaStart |
|
private |
AdcIndex DuneRoiBuildingService::m_PadHigh |
|
private |
AdcIndex DuneRoiBuildingService::m_PadLow |
|
private |
The documentation for this class was generated from the following files: