Definition at line 223 of file AdcChannelMetric.h.
void AdcChannelMetric::MetricSummary::add |
( |
double |
val, |
|
|
double |
weight |
|
) |
| |
|
inline |
double AdcChannelMetric::MetricSummary::center |
( |
| ) |
const |
|
inline |
double AdcChannelMetric::MetricSummary::dmean |
( |
| ) |
const |
|
inline |
double AdcChannelMetric::MetricSummary::drms |
( |
| ) |
const |
|
inline |
Definition at line 251 of file AdcChannelMetric.h.
253 double rmsVal =
rms();
254 double rmsVar =
meansq() + rmsVal*(rmsVal - 2.0*
mean());
255 return rmsVar > 0.0 ? sqrt(rmsVar/
neff()) : 0.0;
double AdcChannelMetric::MetricSummary::getValue |
( |
Name |
vnam | ) |
const |
|
inline |
Definition at line 273 of file AdcChannelMetric.h.
274 if ( vnam ==
"weightFlag" )
return weightFlag;
276 if ( vnam ==
"eventCount" )
return eventCount;
277 if ( vnam ==
"weightSum" )
return weightSum;
278 if ( vnam ==
"mean" )
return mean();
279 if ( vnam ==
"rms" )
return rms();
280 if ( vnam ==
"sdev" )
return sdev();
281 if ( vnam ==
"min" )
return minval;
282 if ( vnam ==
"max" )
return maxval;
283 if ( vnam ==
"center" )
return center();
284 if ( vnam ==
"range" )
return range();
285 if ( vnam ==
"halfRange" )
return 0.5*
range();
286 if ( vnam ==
"dmean" )
return dmean();
287 if ( vnam ==
"drms" )
return drms();
static bool AdcChannelMetric::MetricSummary::isValueName |
( |
Name |
vnam | ) |
|
|
inlinestatic |
Definition at line 265 of file AdcChannelMetric.h.
266 const std::set<Name> sumVals =
267 {
"weightFlag",
"eventCount",
"weightedEventCount",
"weightSum",
268 "mean",
"rms",
"sdev",
"min",
"max",
"dmean",
"drms",
269 "center",
"range",
"halfRange"};
270 return sumVals.find(vnam) != sumVals.end();
double AdcChannelMetric::MetricSummary::mean |
( |
| ) |
const |
|
inline |
double AdcChannelMetric::MetricSummary::meansq |
( |
| ) |
const |
|
inline |
double AdcChannelMetric::MetricSummary::neff |
( |
| ) |
const |
|
inline |
double AdcChannelMetric::MetricSummary::range |
( |
| ) |
const |
|
inline |
double AdcChannelMetric::MetricSummary::rms |
( |
| ) |
const |
|
inline |
double AdcChannelMetric::MetricSummary::sdev |
( |
| ) |
const |
|
inline |
Index AdcChannelMetric::MetricSummary::eventCount = 0 |
double AdcChannelMetric::MetricSummary::maxval = 0.0 |
double AdcChannelMetric::MetricSummary::minval = 0.0 |
double AdcChannelMetric::MetricSummary::sum = 0.0 |
double AdcChannelMetric::MetricSummary::sumsq = 0.0 |
Index AdcChannelMetric::MetricSummary::weightedEventCount = 0 |
Index AdcChannelMetric::MetricSummary::weightFlag = 0 |
double AdcChannelMetric::MetricSummary::weightSum |
The documentation for this class was generated from the following file: