#include <AdcRoiSlicer.h>
Definition at line 21 of file AdcRoiSlicer.h.
Definition at line 15 of file AdcRoiSlicer_tool.cc.
20 const Name myname =
"AdcRoiSlicer::ctor: ";
22 cout << myname <<
"Configuration parameters:" <<
endl;
26 cout << myname <<
" CopyRaw: " << (
m_CopyRaw ?
"true" :
"false") << endl;
ChannelGroupService::Name Name
static constexpr double ps
QTextStream & endl(QTextStream &s)
Reimplemented from AdcChannelTool.
Definition at line 32 of file AdcRoiSlicer_tool.cc.
33 const Name myname =
"AdcRoiSlicer::update: ";
38 if ( ! keepRoi && ! keepNot ) {
43 if ( acd.
signal.size() != nsam ) {
44 cout <<
"ERROR: Signal size does not match samples: " << acd.
signal.size()
45 <<
" != " << nsam <<
endl;
52 if ( copyRaw && acd.
raw.size() < nsam ) {
53 cout <<
"ERROR: Insufficient raw data for channel " << acd.
channel() <<
": " 54 << acd.
raw.size() <<
" < " << nsam <<
"." <<
endl;
61 cout << myname <<
"Looping over " << nsam <<
" samples for channel " 64 for (
Index isam=0; isam<nsam; ++isam ) {
65 bool isRoi = acd.
signal[isam];
66 bool keep = (isRoi && keepRoi) || (!isRoi && keepNot);
67 bool changeRoi = isam==0 || acd.
signal[isam] != acd.
signal[isam-1];
68 bool startData = keep && changeRoi;
70 if (
m_LogLevel >= 3 ) cout << myname <<
"Creating data view at tick " << isam <<
endl;
78 if ( copyRaw ) acdout.
raw.push_back(acd.
raw[isam]);
87 cout << myname <<
"End of update. Nview=" << view.size()
88 <<
". # sample keep/skip/tot: " << nsamKeep <<
"/" << nsamSkip
89 <<
"/" << nsam <<
endl;
91 ret.
setInt(
"nRoiView", view.size());
std::vector< AdcChannelData > View
DataMap & setStatus(int stat)
ChannelGroupService::Name Name
AdcChannelData * viewParent
void setInt(Name name, int val)
View & updateView(Name vnam)
bool hasView(Name vnam) const
QTextStream & endl(QTextStream &s)
bool AdcRoiSlicer::m_CopyRaw |
|
private |
int AdcRoiSlicer::m_LogLevel |
|
private |
Name AdcRoiSlicer::m_OutViewName |
|
private |
int AdcRoiSlicer::m_SliceOpt |
|
private |
The documentation for this class was generated from the following files: