CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
SimpleTest Class Reference

#include <QTest.h>

Inheritance diagram for SimpleTest:
QCriterion CheckVariance CompareLastFilledBin CompareToMedian ContentSigma ContentsWithinExpected ContentsXRange ContentsYRange CSC01 DeadChannel FixedFlatOccupancy1d MeanWithinExpected NoisyChannel

Public Member Functions

std::vector< DQMChannelgetBadChannels () 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
 

Protected Member Functions

void setMessage () override
 set status & message after test has run More...
 
- Protected Member Functions inherited from QCriterion
virtual float runTest (const MonitorElement *me)
 
void setAlgoName (std::string name)
 set algorithm name More...
 
void setVerbose (int verbose)
 probability limits for warnings, errors More...
 

Protected Attributes

std::vector< DQMChannelbadChannels_
 
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...
 

Detailed Description

Definition at line 122 of file QTest.h.

Constructor & Destructor Documentation

◆ SimpleTest()

SimpleTest::SimpleTest ( const std::string &  name,
bool  keepBadChannels = false 
)
inline

Definition at line 124 of file QTest.h.

125  : QCriterion(name), minEntries_(0), keepBadChannels_(keepBadChannels) {}
bool keepBadChannels_
Definition: QTest.h:140
QCriterion(std::string qtname)
Definition: QTest.h:51
unsigned minEntries_
Definition: QTest.h:138

Member Function Documentation

◆ getBadChannels()

std::vector<DQMChannel> SimpleTest::getBadChannels ( ) const
inlineoverridevirtual

get vector of channels that failed test (not always relevant!)

Reimplemented from QCriterion.

Definition at line 130 of file QTest.h.

References badChannels_, QCriterion::getBadChannels(), and keepBadChannels_.

130  {
132  }
bool keepBadChannels_
Definition: QTest.h:140
std::vector< DQMChannel > badChannels_
Definition: QTest.h:139
virtual std::vector< DQMChannel > getBadChannels() const
Definition: QTest.h:49

◆ setMessage()

void SimpleTest::setMessage ( )
inlineoverrideprotectedvirtual

set status & message after test has run

Implements QCriterion.

Reimplemented in CompareLastFilledBin, and CompareToMedian.

Definition at line 136 of file QTest.h.

References QCriterion::message_.

136 { message_.clear(); }
std::string message_
quality test status
Definition: QTest.h:107

◆ setMinimumEntries()

void SimpleTest::setMinimumEntries ( unsigned  n)
inline

set minimum # of entries needed

Definition at line 128 of file QTest.h.

References minEntries_, and dqmiodumpmetadata::n.

128 { minEntries_ = n; }
unsigned minEntries_
Definition: QTest.h:138

Member Data Documentation

◆ badChannels_

std::vector<DQMChannel> SimpleTest::badChannels_
protected

Definition at line 139 of file QTest.h.

Referenced by getBadChannels().

◆ keepBadChannels_

bool SimpleTest::keepBadChannels_
protected

Definition at line 140 of file QTest.h.

Referenced by getBadChannels().

◆ minEntries_

unsigned SimpleTest::minEntries_
protected

Definition at line 138 of file QTest.h.

Referenced by setMinimumEntries().