#include <DQMServices/Core/interface/QTest.h>
Public Member Functions | |
virtual std::vector< DQMChannel > | getBadChannels (void) const |
get vector of channels that failed test (not always relevant!) | |
void | setMinimumEntries (unsigned n) |
set minimum # of entries needed | |
SimpleTest (const std::string &name, bool keepBadChannels=false) | |
Protected Member Functions | |
virtual void | setMessage (void) |
set status & message after test has run | |
Protected Attributes | |
std::vector< DQMChannel > | badChannels_ |
bool | keepBadChannels_ |
unsigned | minEntries_ |
Definition at line 165 of file QTest.h.
SimpleTest::SimpleTest | ( | const std::string & | name, | |
bool | keepBadChannels = false | |||
) | [inline] |
Definition at line 168 of file QTest.h.
00168 : QCriterion(name), 00169 minEntries_ (0), 00170 keepBadChannels_ (keepBadChannels) 00171 {}
virtual std::vector<DQMChannel> SimpleTest::getBadChannels | ( | void | ) | const [inline, virtual] |
get vector of channels that failed test (not always relevant!)
Reimplemented from QCriterion.
Definition at line 178 of file QTest.h.
References badChannels_, QCriterion::getBadChannels(), and keepBadChannels_.
00179 { return keepBadChannels_ ? badChannels_ : QCriterion::getBadChannels(); }
set status & message after test has run
Implements QCriterion.
Reimplemented in Comp2RefChi2, ContentsXRange, ContentsYRange, DeadChannel, NoisyChannel, ContentsWithinExpected, and MeanWithinExpected.
Definition at line 186 of file QTest.h.
References QCriterion::algoName_, QCriterion::message_, QCriterion::prob_, and QCriterion::qtname_.
00186 { 00187 std::ostringstream message; 00188 message << " Test " << this->qtname_ << " (" << this->algoName_ 00189 << "): prob = " << this->prob_; 00190 this->message_ = message.str(); 00191 }
void SimpleTest::setMinimumEntries | ( | unsigned | n | ) | [inline] |
set minimum # of entries needed
Definition at line 174 of file QTest.h.
References minEntries_, and QCriterion::update().
Referenced by QTestConfigure::EnableContentsWithinExpectedTest().
00175 { minEntries_ = n; this->update(); }
std::vector<DQMChannel> SimpleTest::badChannels_ [protected] |
Definition at line 194 of file QTest.h.
Referenced by getBadChannels(), ContentsYRange::runTest(), ContentsXRange::runTest(), ContentsWithinExpected::runTest(), DeadChannel::runTest(), NoisyChannel::runTest(), and Comp2RefEqualH::runTest().
bool SimpleTest::keepBadChannels_ [protected] |
unsigned SimpleTest::minEntries_ [protected] |
Definition at line 193 of file QTest.h.
Referenced by ContentsWithinExpected::runTest(), Comp2RefChi2::setMessage(), and setMinimumEntries().