#include <DuneAdcSignalFinder.h>
Definition at line 33 of file DuneAdcSignalFinder.h.
Definition at line 16 of file DuneAdcSignalFinder_tool.cc.
24 const string myname =
"DuneAdcSignalFinder::ctor: ";
26 cout << myname <<
"Configuration parameters:" <<
endl;
static constexpr double ps
QTextStream & endl(QTextStream &s)
Reimplemented from AdcChannelTool.
Definition at line 38 of file DuneAdcSignalFinder_tool.cc.
39 const string myname =
"DuneAdcSignalFinder::update: ";
42 cout << myname <<
"Finding ROIs for channel " << acd.
channel() <<
endl;
46 cout << myname <<
"ERROR: No samples found in channel " << acd.
channel() <<
endl;
53 cout << myname <<
"ERROR: Unable to determine noise level." <<
endl;
56 if (
m_LogLevel >= 3 ) cout << myname <<
"Noise level: " << sigma <<
endl;
62 signal.resize(sams.size(),
false);
66 for (
AdcIndex isam=0; isam<nsam; ++isam ) {
75 if ( sig > sighigh ) {
83 if ( rois.size() == 0 ) {
84 if (
m_LogLevel >= 3 ) cout << myname <<
" No ROIs found." <<
endl;
88 cout << myname <<
" ROIs before merge (size = " << rois.size() <<
"):" <<
endl;
89 for (
const AdcRoi& roi : rois ) {
90 cout << myname <<
setw(8) << roi.first <<
" " <<
setw(8) << roi.second <<
endl;
93 cout << myname <<
" ROI count before merge: " << acd.
rois.size() <<
endl;
96 unsigned int isam1 = 0;
97 unsigned int isam2 = 0;
98 for (
AdcRoi roi : rois ) {
101 for (
unsigned int isam=isam1; isam<isam2; ++isam ) signal[isam] =
true;
102 isam1 = roi.second + 1;
104 if ( isam2 > nsam ) isam2 = nsam;
105 for (
unsigned int isam=isam1; isam<isam2; ++isam ) signal[isam] =
true;
111 cout << myname <<
" ROIs after merge (size = " << rois.size() <<
"):" <<
endl;
112 for (
const AdcRoi& roi : rois ) {
113 cout << myname <<
setw(8) << roi.first <<
" " <<
setw(8) << roi.second <<
endl;
116 cout << myname <<
" ROI count after merge: " << acd.
rois.size() <<
endl;
DataMap & setStatus(int stat)
std::pair< AdcIndex, AdcIndex > AdcRoi
void setInt(Name name, int val)
Q_EXPORT QTSManip setw(int w)
std::vector< AdcRoi > AdcRoiVector
std::vector< bool > AdcFilterVector
std::vector< AdcSignal > AdcSignalVector
QTextStream & endl(QTextStream &s)
int DuneAdcSignalFinder::m_LogLevel |
|
private |
AdcIndex DuneAdcSignalFinder::m_TicksAfter |
|
private |
AdcIndex DuneAdcSignalFinder::m_TicksBefore |
|
private |
The documentation for this class was generated from the following files: