#include <BasicStatCheck.h>
Definition at line 20 of file BasicStatCheck.h.
 
◆ BasicStatCheck()
      
        
          | dqm_algorithms::BasicStatCheck::BasicStatCheck | ( | const std::string & | name | ) |  | 
      
 
 
◆ clone()
◆ execute()
Definition at line 42 of file BasicStatCheck.cxx.
   48   if( 
object.
IsA()->InheritsFrom( 
"TH1" ) ) {
 
   51       throw dqm_core::BadConfig( ERS_HERE, 
name, 
"dimension > 2 " );
 
   54     throw dqm_core::BadConfig( ERS_HERE, 
name, 
"does not inherit from TH1" );
 
   73   std::map<std::string, double> 
params;
 
   77     ERS_DEBUG(1,
"XMean Value " <<
histogram->GetMean(1)<<
" YMean Value " <<
histogram->GetMean(2));
 
   78   } 
else if (
m_name == 
"RMS" ) {
 
   81     ERS_DEBUG(1,
"XRMS Value " <<
histogram->GetRMS(1)<<
" YRMS Value "<<
histogram->GetRMS(2));
 
   91   catch ( dqm_core::Exception & ex ) {
 
   92     throw dqm_core::BadConfig( ERS_HERE, 
name, ex.what(), ex );
 
   96       if (publishType & 0x01) 
result->tags_[
"XMean"] = 
params[
"XMean"];
 
   97       if (publishType & 0x02) 
result->tags_[
"YMean"] = 
params[
"YMean"];
 
   98   } 
else if (
m_name == 
"RMS") {
 
   99       if (publishType & 0x01) 
result->tags_[
"XRMS"] = 
params[
"XRMS"];
 
  100       if (publishType & 0x02) 
result->tags_[
"YRMS"] = 
params[
"YRMS"];
 
 
 
 
◆ printDescription()
      
        
          | void dqm_algorithms::BasicStatCheck::printDescription | ( | std::ostream & | out | ) |  | 
      
 
Definition at line 107 of file BasicStatCheck.cxx.
  110     out<<
"CheckHisto_Mean: Checks that X and Y Mean of histo are within specified thresholds\n"<<std::endl;
 
  111     out<<
"Green/Red Threshold: XMean or AbsXMean: X Mean value to give Green/Red result; AbsXMean checks the absolute value"<<std::endl;
 
  112     out<<
"Green/Red Threshold: YMean or AbsYMean: Y Mean value to give Green/Red result; AbsYMean checks the absolute value\n"<<std::endl;
 
  113   }
else if (
m_name == 
"RMS"){
 
  114     out<<
"CheckHisto_RMS: Checks that X and Y RMS of histo are within specified thresholds\n"<<std::endl;
 
  115     out<<
"Green/Red Threshold: XRMS: X RMS value to give Green/Red result"<<std::endl;
 
  116     out<<
"Green/Red Threshold: YRMS: Y RMS value to give Green/Red result\n"<<std::endl;
 
  118   out<<
"Optional Parameter: MinStat: Minimum histogram statistics needed to perform Algorithm"<<std::endl;
 
  119   out<<
"Optional Parameter: xmin: minimum x range"<<std::endl;
 
  120   out<<
"Optional Parameter: xmax: maximum x range"<<std::endl;
 
  121   out<<
"Optional Parameter: ymin: minimum y range"<<std::endl;
 
  122   out<<
"Optional Parameter: ymax: maximum y range"<<std::endl;
 
  123   out<<
"Optional Parameter: SubtractFromXMean: value subtracted from XMean before test is applied: allows using AbsXMean for non-zero expected mean"<<std::endl;
 
  124   out<<
"Optional Parameter: SubtractFromYMean: value subtracted from YMean before test is applied: allows using AbsYMean for non-zero expected mean"<<std::endl;
 
  125   out<<
"Optional Parameter: PublishType: 0 = publish no results, 1 = publish X result, 2 = publish Y result, 3 = publish both results (default)."<<std::endl;
 
 
 
 
◆ m_name
  
  | 
        
          | std::string dqm_algorithms::BasicStatCheck::m_name |  | private | 
 
 
The documentation for this struct was generated from the following files: