CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes

SimpleTest Class Reference

#include <QTest.h>

Inheritance diagram for SimpleTest:
QCriterion Comp2RefChi2 Comp2RefEqualH Comp2RefKolmogorov CompareToMedian 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 132 of file QTest.h.


Constructor & Destructor Documentation

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

Definition at line 135 of file QTest.h.

                                                                  : QCriterion(name),
  minEntries_ (0),
  keepBadChannels_ (keepBadChannels) 
  {}

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 143 of file QTest.h.

References badChannels_, and keepBadChannels_.

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

set status & message after test has run

Implements QCriterion.

Reimplemented in Comp2RefChi2, and CompareToMedian.

Definition at line 151 of file QTest.h.

References QCriterion::message_.

  {
    message_.clear();
  }
void SimpleTest::setMinimumEntries ( unsigned  n) [inline]

set minimum # of entries needed

Definition at line 141 of file QTest.h.

References minEntries_, and n.

Referenced by QTestConfigure::EnableContentsWithinExpectedTest(), and QTestConfigure::EnableMeanWithinExpectedTest().

{ minEntries_ = n; }

Member Data Documentation

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

Definition at line 157 of file QTest.h.

Referenced by getBadChannels().

bool SimpleTest::keepBadChannels_ [protected]

Definition at line 158 of file QTest.h.

Referenced by getBadChannels().

unsigned SimpleTest::minEntries_ [protected]

Definition at line 156 of file QTest.h.

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