55 if(
object.
IsA()->InheritsFrom(
"TH2" ) ) {
56 hist =
static_cast<const TH2 *
>(&
object);
57 if (hist->GetDimension() != 2 ){
58 throw dqm_core::BadConfig( ERS_HERE, name,
"dimension != 2 " );
61 throw dqm_core::BadConfig( ERS_HERE, name,
"does not inherit from TH2" );
70 catch ( dqm_core::Exception & ex ) {
71 throw dqm_core::BadConfig( ERS_HERE, name, ex.what(), ex );
77 TH1* projection = hist->ProjectionY();
79 dqm_core::Result*
result =
new dqm_core::Result();
80 std::map<std::string,double>
tags;
83 result->status_ = dqm_core::Result::Green;
86 for(
int iBin=1;iBin<=projection->GetNbinsX();iBin++)
88 if( projection->GetBinContent(iBin) < thresh )
90 result->status_ = dqm_core::Result::Yellow;
94 tags[
"howmanybad"] = howmanybad;