#include <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_ |
SimpleTest::SimpleTest | ( | const std::string & | name, |
bool | keepBadChannels = false |
||
) | [inline] |
Definition at line 136 of file QTest.h.
: QCriterion(name), minEntries_ (0), keepBadChannels_ (keepBadChannels) {}
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 144 of file QTest.h.
References badChannels_, and keepBadChannels_.
{ return keepBadChannels_ ? badChannels_ : QCriterion::getBadChannels(); }
virtual void SimpleTest::setMessage | ( | void | ) | [inline, protected, virtual] |
set status & message after test has run
Implements QCriterion.
Reimplemented in Comp2RefChi2, CompareToMedian, and CompareLastFilledBin.
Definition at line 152 of file QTest.h.
References QCriterion::message_.
{ message_.clear(); }
void SimpleTest::setMinimumEntries | ( | unsigned | n | ) | [inline] |
set minimum # of entries needed
Definition at line 142 of file QTest.h.
References minEntries_, and n.
Referenced by QTestConfigure::EnableContentsWithinExpectedTest(), and QTestConfigure::EnableMeanWithinExpectedTest().
{ minEntries_ = n; }
std::vector<DQMChannel> SimpleTest::badChannels_ [protected] |
Definition at line 158 of file QTest.h.
Referenced by getBadChannels().
bool SimpleTest::keepBadChannels_ [protected] |
Definition at line 159 of file QTest.h.
Referenced by getBadChannels().
unsigned SimpleTest::minEntries_ [protected] |
Definition at line 157 of file QTest.h.
Referenced by Comp2RefChi2::setMessage(), and setMinimumEntries().