37 const TObject &
object,
38 const dqm_core::AlgorithmConfig &
config)
42 if(
object.
IsA()->InheritsFrom(
"TH1" ) ) {
45 throw dqm_core::BadConfig( ERS_HERE, name,
"dimension > 2 " );
48 throw dqm_core::BadConfig( ERS_HERE, name,
"does not inherit from TH1" );
60 catch ( dqm_core::Exception & ex ) {
61 throw dqm_core::BadConfig( ERS_HERE, name, ex.what(), ex );
68 catch ( dqm_core::Exception & ex ) {
69 throw dqm_core::BadConfig(ERS_HERE,name,
"Parameter: 'Threshold' is mandatory, cannot continue");
78 dqm_core::Result *
result =
new dqm_core::Result(dqm_core::Result::Undefined);
84 double hdenom =
histogram->GetBinContent(xbin_denom);
86 if ( minrefentries > 0 && hdenom < minrefentries) {
87 dqm_core::Result *
result =
new dqm_core::Result(dqm_core::Result::Undefined);
88 result->tags_[
"InsufficientRefEntries"] = hdenom;
93 double hnum =
histogram -> GetBinContent(xbin_num);
95 double value = hnum/hdenom;
97 dqm_core::Result*
result =
new dqm_core::Result();
98 result->tags_[
"BinRatio"] = value;
100if (rthresho < gthresho){
101 if ( value >= gthresho ) {
102 result->status_ = dqm_core::Result::Green;
103 }
else if ( value < rthresho ) {
104 result->status_ = dqm_core::Result::Red;
106 result->status_ = dqm_core::Result::Yellow;
109 if ( value <= gthresho ) {
110 result->status_ = dqm_core::Result::Green;
111 }
else if ( value > rthresho ) {
112 result->status_ = dqm_core::Result::Red;
114 result->status_ = dqm_core::Result::Yellow;
static dqm_algorithms::BinContentComp myInstance