#include <AdcRangeSampleScaler.h>
Definition at line 24 of file AdcRangeSampleScaler.h.
Definition at line 16 of file AdcRangeSampleScaler_tool.cc.
21 const string myname =
"AdcRangeSampleScaler::ctor: ";
23 cout << myname <<
"Parameters:" <<
endl;
27 cout << myname <<
" Range: Scale: " <<
endl;
29 for (
Index iran=0; ; ++iran ) {
35 if ( imod && imin >= imod ) {
41 if ( imod > 0 && imax >= imod ) {
42 cout << myname <<
"WARNING: Index exceeds modulus: " << imax <<
" >= " << imod <<
endl;
47 cout << myname <<
"ERROR: Too few scale factors." <<
endl;
51 cout << myname <<
" [" << imin <<
", ";
52 if ( haveMax ) cout <<
imax;
54 cout <<
"): " << sfac <<
endl;
55 if ( haveMax ) imin =
imax;
IndexVector m_RangeLimits
static constexpr double ps
FloatVector m_ScaleFactors
Dft::FloatVector FloatVector
QTextStream & endl(QTextStream &s)
AdcRangeSampleScaler::~AdcRangeSampleScaler |
( |
| ) |
|
|
overridedefault |
Reimplemented from AdcChannelTool.
Definition at line 64 of file AdcRangeSampleScaler_tool.cc.
65 const string myname =
"AdcRangeSampleScaler::update: ";
66 if (
m_LogLevel >= 2 ) cout <<
"Processing run " << acd.
run() <<
" event " << acd.
event()
72 cout << myname <<
"ERROR: Invalid channel." <<
endl;
80 if ( ichaMod < imax ) {
86 cout << myname <<
"ERROR: No scale factor for channel " << icha;
87 if ( ichaMod != icha ) cout <<
" (" << ichaMod <<
")";
96 ret.
setFloat(
"arssScaleFactor", sfac);
void setFloat(Name name, float val)
DataMap & setStatus(int stat)
IndexVector m_RangeLimits
FloatVector m_ScaleFactors
QTextStream & endl(QTextStream &s)
int AdcRangeSampleScaler::m_LogLevel |
|
private |
Index AdcRangeSampleScaler::m_RangeModulus |
|
private |
The documentation for this class was generated from the following files: