CMS 3D CMS Logo

SimpleTest Class Reference

#include <DQMServices/Core/interface/QTest.h>

Inheritance diagram for SimpleTest:

QCriterion AllContentWithinFixedRange AllContentWithinFloatingRange Comp2RefChi2 Comp2RefEqualH Comp2RefKolmogorov ContentsWithinExpected ContentsXRange ContentsYRange CSC01 DeadChannel FixedFlatOccupancy1d MeanWithinExpected NoisyChannel

List of all members.

Public Member Functions

virtual std::vector< DQMChannelgetBadChannels (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< DQMChannelbadChannels_
bool keepBadChannels_
unsigned minEntries_


Detailed Description

Definition at line 165 of file QTest.h.


Constructor & Destructor Documentation

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   {}


Member Function Documentation

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_.

virtual void SimpleTest::setMessage ( void   )  [inline, protected, virtual]

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(); }


Member Data Documentation

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]

Definition at line 195 of file QTest.h.

Referenced by getBadChannels().

unsigned SimpleTest::minEntries_ [protected]

Definition at line 193 of file QTest.h.

Referenced by ContentsWithinExpected::runTest(), Comp2RefChi2::setMessage(), and setMinimumEntries().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:31:43 2009 for CMSSW by  doxygen 1.5.4