1 #ifndef DQMSERVICES_CORE_Q_CRITERION_H
2 # define DQMSERVICES_CORE_Q_CRITERION_H
5 # include "TProfile2D.h"
65 {
return std::vector<DQMChannel>(); }
94 " / Prob = " <<
prob_ << std::endl;
197 message <<
"chi2/Ndof = " <<
chi2_ <<
"/" <<
Ndof_
217 static std::string
getAlgoName(
void) {
return "Comp2RefKolmogorov"; }
360 static std::string
getAlgoName(
void) {
return "ContentsWithinExpected"; }
372 if (fracTolerance >= 0.0)
399 static std::string
getAlgoName(
void) {
return "MeanWithinExpected"; }
403 void useRange(
double xmin,
double xmax);
404 void useSigma(
double expectedSigma);
480 #if 0 // FIXME: need to know what parameters to set before runTest!
492 ~FlatOccupancy1d(
void)
494 delete [] FailedBins[0];
495 delete [] FailedBins[1];
498 static std::string getAlgoName(
void) {
return "RuleFlatOccupancy1d"; }
500 void set_ExclusionMask(
double *mask) { ExclusionMask = mask; }
503 void set_S_fail(
double S) { S_fail = S; }
504 void set_S_pass(
double S) { S_pass = S; }
505 double get_FailedBins(
void) {
return *FailedBins[2]; }
506 int get_result() {
return result; }
511 double *ExclusionMask;
512 double epsilon_min, epsilon_max;
513 double S_fail, S_pass;
514 double *FailedBins[2];
541 static std::string
getAlgoName(
void) {
return "RuleFixedFlatOccupancy1d"; }
611 static std::string
getAlgoName(
void) {
return "CompareToMedian"; }
625 <<
"): Entry fraction within range = " <<
prob_;
659 static std::string
getAlgoName(
void) {
return "CompareLastFilledBin"; }
671 <<
"): Last Bin filled with desired value = " <<
prob_;
681 #if 0 // FIXME: need to know what parameters to set before runTest!
682 class AllContentAlongDiagonal :
public SimpleTest
685 AllContentAlongDiagonal(const std::string &name) :
SimpleTest(name)
689 static std::string getAlgoName(
void) {
return "RuleAllContentAlongDiagonal"; }
692 void set_S_fail(
double S) { S_fail = S; }
693 void set_S_pass(
double S) { S_pass = S; }
694 double get_epsilon_obs() {
return epsilon_obs; }
695 double get_S_fail_obs() {
return S_fail_obs; }
696 double get_S_pass_obs() {
return S_pass_obs; }
697 int get_result() {
return result; }
705 double S_fail, S_pass;
707 double S_fail_obs, S_pass_obs;
712 #endif // DQMSERVICES_CORE_Q_CRITERION_H
ContentsWithinExpected ContentsWithinExpectedROOT
void setErrorProb(float prob)
float runTest(const MonitorElement *me)
std::string getMessage(void) const
get message attached to test
void set_epsilon_min(double epsilon)
FixedFlatOccupancy1d FixedFlatOccupancy1dROOT
static std::string getAlgoName(void)
double getAverage(int bin, const TH1 *h) const
Comp2RefEqualH(const std::string &name)
float runTest(const MonitorElement *me)
void setAlgoName(std::string name)
set algorithm name
std::string getName(void) const
get name of quality test
test that histogram contents are above Ymin
double ymin_
ymin - threshold
CSC01(const std::string &name)
float runTest(const MonitorElement *me)
SimpleTest(const std::string &name, bool keepBadChannels=false)
void set_ExclusionMask(double *mask)
float runTest(const MonitorElement *me)
void setUseEmptyBins(unsigned int useEmptyBins)
static std::string getAlgoName(void)
FlatOccupancy1d FlatOccupancy1dROOT
virtual void setAllowedXRange(double xmin, double xmax)
set allowed range in X-axis (default values: histogram's X-range)
float runTest(const MonitorElement *me, QReport &qr, DQMNet::QValue &qv)
FlatOccupancy1d RuleFlatOccupancy1d
std::string algoName_
name of quality test
Comp2RefChi2 Comp2RefChi2ROOT
static std::string getAlgoName(void)
void setRMSRange(double xmin, double xmax)
set expected value for mean
void useSigma(double expectedSigma)
virtual std::vector< DQMChannel > getBadChannels(void) const
get vector of channels that failed test (not always relevant!)
NoisyChannel NoisyChannelROOT
void setNumNeighbors(unsigned n)
static std::string getAlgoName(void)
Algorithm for testing if histogram's mean value is near expected value.
DeadChannel(const std::string &name)
float runTest(const MonitorElement *me)
ContentsXRange(const std::string &name)
Check if any channels are noisy compared to neighboring ones.
float runTest(const MonitorElement *me)
AllContentAlongDiagonal RuleAllContentAlongDiagonal
Comp2RefEqualH Comp2RefEqualHROOT
ContentsXRange ContentsXRangeROOT
CompareToMedian CompareToMedianROOT
virtual void setMessage(void)
set status & message after test has run
CompareLastFilledBin CompareLastFilledBinROOT
const T & max(const T &a, const T &b)
FixedFlatOccupancy1d RuleFixedFlatOccupancy1d
FixedFlatOccupancy1d(const std::string &name)
Comp2RefKolmogorov Comp2RefKolmogorovROOT
void set_Occupancy(double level)
static std::string getAlgoName(void)
void set_epsilon_max(double epsilon)
static std::string getAlgoName(void)
float prob_
name of algorithm
std::string algoName(void) const
get algorithm name
CompareLastFilledBin(const std::string &name)
static const float ERROR_PROB_THRESHOLD
void setTolerance(float percentage)
unsigned int useEmptyBins_
static std::string getAlgoName(void)
void setMinimumEntries(unsigned n)
set minimum # of entries needed
float runTest(const MonitorElement *me)
MeanWithinExpected MeanWithinExpectedROOT
virtual std::vector< DQMChannel > getBadChannels(void) const
ContentsWithinExpected(const std::string &name)
void setExpectedMean(double mean)
AllContentAlongDiagonal AllContentAlongDiagonalROOT
void setUseEmptyBins(unsigned int useEmptyBins)
std::string message_
quality test status
void useRange(double xmin, double xmax)
static std::string getAlgoName(void)
void set_epsilon_max(double epsilon)
int getStatus(void) const
(class should be created by DQMStore class)
NoisyChannel(const std::string &name)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
float runTest(const MonitorElement *me)
virtual float runTest(const MonitorElement *me)
void set_S_pass(double S)
std::vector< DQMChannel > badChannels_
void setWarningProb(float prob)
set probability limit for warning and error (default: 90% and 50%)
MeanWithinExpected(const std::string &name)
Comparison to reference using the Kolmogorov algorithm.
static std::string getAlgoName(void)
void init(void)
initialize values
void setVerbose(int verbose)
probability limits for warnings, errors
void setMeanRange(double xmin, double xmax)
set expected value for mean
static std::string getAlgoName(void)
float runTest(const MonitorElement *me)
void set_S_fail(double S)
DeadChannel DeadChannelROOT
QCriterion(std::string qtname)
std::vector< DQMChannel > badChannels_
static const int STATUS_OK
float runTest(const MonitorElement *me)
ContentsYRange(const std::string &name)
ContentsYRange ContentsYRangeROOT
virtual ~QCriterion(void)
void setMeanTolerance(float fracTolerance)
set (fractional) tolerance for mean
Comp2RefChi2(const std::string &name)
void setThreshold(double ymin)
set Ymin (inclusive) threshold for "dead" channel (default: 0)
void setMessage(void)
set status & message after test has run
void set_S_fail(double S)
void setAverage(float average)
~FixedFlatOccupancy1d(void)
virtual void setAllowedYRange(double ymin, double ymax)
void set_S_pass(double S)
unsigned int useEmptyBins_
float warningProb_
message attached to test
float runTest(const MonitorElement *me)
double get_FailedBins(void)
virtual void setMessage(void)=0
set message after test has run
static std::string getAlgoName(void)
static std::string getAlgoName(void)
float runTest(const MonitorElement *me)
static const float WARNING_PROB_THRESHOLD
default "probability" values for setting warnings & errors when running tests
Comp2RefKolmogorov(const std::string &name)
void setMessage(void)
set status & message after test has run