Check the sigma of each bin against the rest of the chamber by a factor of tolerance/. More...
#include <QTest.h>
Public Member Functions | |
ContentSigma (const std::string &name) | |
float | runTest (const MonitorElement *me) override |
void | setDead (bool dead) |
void | setNoisy (bool noisy) |
void | setNumNeighborsX (unsigned ncx) |
void | setNumNeighborsY (unsigned ncy) |
void | setNumXblocks (unsigned ncx) |
void | setNumYblocks (unsigned ncy) |
void | setToleranceDead (float factorDead) |
void | setToleranceNoisy (float factorNoisy) |
void | setXMax (unsigned xMax) |
void | setXMin (unsigned xMin) |
void | setYMax (unsigned yMax) |
void | setYMin (unsigned yMin) |
Public Member Functions inherited from SimpleTest | |
std::vector< DQMChannel > | getBadChannels () const override |
get vector of channels that failed test (not always relevant!) More... | |
void | setMinimumEntries (unsigned n) |
set minimum # of entries needed More... | |
SimpleTest (const std::string &name, bool keepBadChannels=false) | |
Public Member Functions inherited from QCriterion | |
std::string | algoName () const |
get algorithm name More... | |
std::string | getMessage () const |
get message attached to test More... | |
std::string | getName () const |
get name of quality test More... | |
int | getStatus () const |
get test status More... | |
void | init () |
initialize values More... | |
QCriterion (std::string qtname) | |
float | runTest (const MonitorElement *me, QReport &qr, DQMNet::QValue &qv) |
void | setErrorProb (float prob) |
void | setWarningProb (float prob) |
set probability limit for warning and error (default: 90% and 50%) More... | |
virtual | ~QCriterion ()=default |
Static Public Member Functions | |
static std::string | getAlgoName () |
Protected Member Functions | |
double | getNeighborSigma (double average, unsigned groupx, unsigned groupy, unsigned Xblocks, unsigned Yblocks, unsigned neighborsX, unsigned neighborsY, const TH1 *h) const |
double | getNeighborSum (unsigned groupx, unsigned groupy, unsigned Xblocks, unsigned Yblocks, unsigned neighborsX, unsigned neighborsY, const TH1 *h) const |
for each bin get sum of the surrounding neighbors More... | |
Protected Member Functions inherited from SimpleTest | |
void | setMessage () override |
set status & message after test has run More... | |
Protected Member Functions inherited from QCriterion | |
void | setAlgoName (std::string name) |
set algorithm name More... | |
void | setVerbose (int verbose) |
probability limits for warnings, errors More... | |
Protected Attributes | |
bool | dead_ |
bool | noisy_ |
unsigned | numNeighborsX_ |
unsigned | numNeighborsY_ |
unsigned | numXblocks_ |
unsigned | numYblocks_ |
bool | rangeInitialized_ |
float | toleranceDead_ |
float | toleranceNoisy_ |
unsigned | xMax_ |
unsigned | xMin_ |
unsigned | yMax_ |
unsigned | yMin_ |
Protected Attributes inherited from SimpleTest | |
std::vector< DQMChannel > | badChannels_ |
bool | keepBadChannels_ |
unsigned | minEntries_ |
Protected Attributes inherited from QCriterion | |
std::string | algoName_ |
name of quality test More... | |
float | errorProb_ |
std::string | message_ |
quality test status More... | |
float | prob_ |
name of algorithm More... | |
std::string | qtname_ |
int | status_ |
int | verbose_ |
float | warningProb_ |
message attached to test More... | |
Additional Inherited Members | |
Public Types inherited from QCriterion | |
typedef dqm::legacy::MonitorElement | MonitorElement |
(class should be created by DQMStore class) More... | |
Static Public Attributes inherited from QCriterion | |
static const float | ERROR_PROB_THRESHOLD = 0.50 |
static const float | WARNING_PROB_THRESHOLD = 0.90 |
default "probability" values for setting warnings & errors when running tests More... | |
Check the sigma of each bin against the rest of the chamber by a factor of tolerance/.
|
inline |
Definition at line 269 of file QTest.h.
References getAlgoName(), numNeighborsX_, numNeighborsY_, numXblocks_, numYblocks_, rangeInitialized_, and QCriterion::setAlgoName().
|
inlinestatic |
Definition at line 277 of file QTest.h.
Referenced by ContentSigma(), and QualityTester::makeQCriterion().
|
protected |
Definition at line 775 of file QTest.cc.
References hlt_dqm_clientPB-live_cfg::nbinsX, hlt_dqm_clientPB-live_cfg::nbinsY, multiplicitycorr_cfi::xMax, photonAnalyzer_cfi::xMin, multiplicitycorr_cfi::yMax, and photonAnalyzer_cfi::yMin.
|
protected |
for each bin get sum of the surrounding neighbors
Definition at line 695 of file QTest.cc.
References hlt_dqm_clientPB-live_cfg::nbinsX, hlt_dqm_clientPB-live_cfg::nbinsY, multiplicitycorr_cfi::xMax, photonAnalyzer_cfi::xMin, multiplicitycorr_cfi::yMax, and photonAnalyzer_cfi::yMin.
|
overridevirtual |
Reimplemented from QCriterion.
Definition at line 488 of file QTest.cc.
References funct::abs(), gather_cfg::cout, hlt_dqm_clientPB-live_cfg::me, hlt_dqm_clientPB-live_cfg::nbinsX, hlt_dqm_clientPB-live_cfg::nbinsY, mathSSE::sqrt(), MonitorElementData::TH1D, MonitorElementData::TH1F, MonitorElementData::TH1S, MonitorElementData::TH2D, MonitorElementData::TH2F, MonitorElementData::TH2S, multiplicitycorr_cfi::xMax, photonAnalyzer_cfi::xMin, multiplicitycorr_cfi::yMax, and photonAnalyzer_cfi::yMin.
|
inline |
|
inline |
|
inline |
Definition at line 295 of file QTest.h.
References numNeighborsX_.
|
inline |
Definition at line 299 of file QTest.h.
References numNeighborsY_.
|
inline |
set # of neighboring channels for calculating average to be used for comparison with channel under consideration; use 1 for considering bin+1 and bin-1 (default), use 2 for considering bin+1,bin-1, bin+2,bin-2, etc; Will use rollover when bin+i or bin-i is beyond histogram limits (e.g. for histogram with N bins, bin N+1 corresponds to bin 1, and bin -1 corresponds to bin N)
Definition at line 287 of file QTest.h.
References numXblocks_.
|
inline |
Definition at line 291 of file QTest.h.
References numYblocks_.
|
inline |
|
inline |
set factor tolerance for considering a channel noisy or dead; eg. if tolerance = 1, channel will be noisy if (content - 1 x sigma) > chamber_avg or channel will be dead if (content - 1 x sigma) < chamber_avg
Definition at line 307 of file QTest.h.
References rangeInitialized_, and toleranceNoisy_.
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 346 of file QTest.h.
Referenced by setNoisy().
|
protected |
Definition at line 352 of file QTest.h.
Referenced by ContentSigma(), and setNumNeighborsX().
|
protected |
Definition at line 354 of file QTest.h.
Referenced by ContentSigma(), and setNumNeighborsY().
|
protected |
Definition at line 350 of file QTest.h.
Referenced by ContentSigma(), and setNumXblocks().
|
protected |
Definition at line 351 of file QTest.h.
Referenced by ContentSigma(), and setNumYblocks().
|
protected |
Definition at line 356 of file QTest.h.
Referenced by ContentSigma(), setToleranceDead(), and setToleranceNoisy().
|
protected |
Definition at line 349 of file QTest.h.
Referenced by setToleranceDead().
|
protected |
Definition at line 348 of file QTest.h.
Referenced by setToleranceNoisy().
|
protected |
|
protected |
|
protected |