CMS 3D CMS Logo

AllContentWithinFixedRange Class Reference

Base for all MostProbables Children classes. More...

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

Inheritance diagram for AllContentWithinFixedRange:

SimpleTest QCriterion

List of all members.

Public Member Functions

 AllContentWithinFixedRange (const std::string &name)
double get_epsilon_obs (void)
int get_result (void)
double get_S_fail_obs (void)
double get_S_pass_obs (void)
float runTest (const MonitorElement *me)
void set_epsilon_max (double epsilon)
void set_S_fail (double S)
void set_S_pass (double S)
void set_x_max (double x)
void set_x_min (double x)

Static Public Member Functions

static std::string getAlgoName (void)

Protected Attributes

double epsilon_max
double epsilon_obs
TH1F * histogram
int result
double S_fail
double S_fail_obs
double S_pass
double S_pass_obs
double x_max
double x_min


Detailed Description

Base for all MostProbables Children classes.

Thus each child implementation will concentrate on fit itself.

Actual Run Test method. Should return: [0, 1] or <0 for failure. [Note: See SimpleTest<class T> template for details]

Parameters:
poPLOT Plot for Which QTest to be run
Returns:
-1 On Error [0, 1] Measurement of how Fit value is close to Expected one
Each Child should implement fit method which responsibility is to perform actual fit and compare mean value with some additional Cuts if any needed. The reason this task is put into separate method is that a priory it is unknown what distribution QTest is dealing with. It might be simple Gauss, Landau or something more sophisticated. Each Plot needs special treatment (fitting) and extraction of parameters. Children know about that but not Parent class.

Parameters:
poPLOT Plot to be fitted
Returns:
-1 On Error [0,1] Measurement of how close Fit Value is to Expected one
Child should check test if it is valid and return corresponding value Next common tests are performed here: 1. min < max 2. MostProbable is in (min, max) 3. Sigma > 0

Returns:
True Invalid QTest False Otherwise
General function that compares MostProbable value gotten from Fit and Expected one.

Parameters:
rdMP_FIT MostProbable value gotten from Fit
rdSIGMA_FIT Sigma value gotten from Fit
Returns:
Probability of found Value that measures how close is gotten one to expected MostProbable QTest for Landau distributions

Definition at line 796 of file QTest.h.


Constructor & Destructor Documentation

AllContentWithinFixedRange::AllContentWithinFixedRange ( const std::string &  name  )  [inline]

Definition at line 799 of file QTest.h.

References getAlgoName(), and QCriterion::setAlgoName().

00799                                                     : SimpleTest(name)
00800  { setAlgoName(getAlgoName()); }


Member Function Documentation

double AllContentWithinFixedRange::get_epsilon_obs ( void   )  [inline]

Definition at line 810 of file QTest.h.

References epsilon_obs.

00810 { return epsilon_obs; }

int AllContentWithinFixedRange::get_result ( void   )  [inline]

Definition at line 813 of file QTest.h.

References result.

00813 { return result; }

double AllContentWithinFixedRange::get_S_fail_obs ( void   )  [inline]

Definition at line 811 of file QTest.h.

References S_fail_obs.

00811 { return S_fail_obs;  }

double AllContentWithinFixedRange::get_S_pass_obs ( void   )  [inline]

Definition at line 812 of file QTest.h.

References S_pass_obs.

00812 { return S_pass_obs;  }

static std::string AllContentWithinFixedRange::getAlgoName ( void   )  [inline, static]

Definition at line 802 of file QTest.h.

Referenced by AllContentWithinFixedRange().

00803   { return "RuleAllContentWithinFixedRange"; }

float AllContentWithinFixedRange::runTest ( const MonitorElement me  )  [virtual]

Reimplemented from QCriterion.

void AllContentWithinFixedRange::set_epsilon_max ( double  epsilon  )  [inline]

Definition at line 807 of file QTest.h.

References epsilon_max.

00807 { epsilon_max = epsilon; }

void AllContentWithinFixedRange::set_S_fail ( double  S  )  [inline]

Definition at line 808 of file QTest.h.

References S_fail.

00808 { S_fail = S; }

void AllContentWithinFixedRange::set_S_pass ( double  S  )  [inline]

Definition at line 809 of file QTest.h.

References S_pass.

00809 { S_pass = S; }

void AllContentWithinFixedRange::set_x_max ( double  x  )  [inline]

Definition at line 806 of file QTest.h.

References x_max.

00806 { x_max  = x; }

void AllContentWithinFixedRange::set_x_min ( double  x  )  [inline]

Definition at line 805 of file QTest.h.

References x_min.

00805 { x_min  = x; }


Member Data Documentation

double AllContentWithinFixedRange::epsilon_max [protected]

Definition at line 820 of file QTest.h.

Referenced by set_epsilon_max().

double AllContentWithinFixedRange::epsilon_obs [protected]

Definition at line 822 of file QTest.h.

Referenced by get_epsilon_obs().

TH1F* AllContentWithinFixedRange::histogram [protected]

Definition at line 818 of file QTest.h.

int AllContentWithinFixedRange::result [protected]

Definition at line 824 of file QTest.h.

Referenced by get_result().

double AllContentWithinFixedRange::S_fail [protected]

Definition at line 821 of file QTest.h.

Referenced by set_S_fail().

double AllContentWithinFixedRange::S_fail_obs [protected]

Definition at line 823 of file QTest.h.

Referenced by get_S_fail_obs().

double AllContentWithinFixedRange::S_pass [protected]

Definition at line 821 of file QTest.h.

Referenced by set_S_pass().

double AllContentWithinFixedRange::S_pass_obs [protected]

Definition at line 823 of file QTest.h.

Referenced by get_S_pass_obs().

double AllContentWithinFixedRange::x_max [protected]

Definition at line 819 of file QTest.h.

Referenced by set_x_max().

double AllContentWithinFixedRange::x_min [protected]

Definition at line 819 of file QTest.h.

Referenced by set_x_min().


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