42 const TObject &
object,
43 const dqm_core::AlgorithmConfig &
config)
47 if(
object.
IsA()->InheritsFrom(
"TH1" ) ) {
50 throw dqm_core::BadConfig( ERS_HERE, name,
"dimension > 3 " );
53 throw dqm_core::BadConfig( ERS_HERE, name,
"does not inherit from TH1" );
59 dqm_core::Result *
result =
new dqm_core::Result(dqm_core::Result::Undefined);
66 if (
m_name ==
"ModuleStatus_All_Bins_Filled" ) {
67 unsigned int nbinsX_filled = 0;
68 const unsigned int binsx =
histogram->GetNbinsX();
71 for (
unsigned int i(1); i <= binsx; ++i ) {
74 double content=
histogram -> GetBinContent(i);
84 if(
histogram->GetEffectiveEntries() == 0){
86 ERS_DEBUG(1,
"Histogram " <<
histogram->GetName()<<
" does not have all filled bins");
87 return new dqm_core::Result(dqm_core::Result::Disabled);
92 if(nbinsX_filled >0 && nbinsX_filled < binsx){
93 ERS_DEBUG(1,
"Histogram " <<
histogram->GetName()<<
" has empty bins");
94 return new dqm_core::Result(dqm_core::Result::Red);
98 ERS_DEBUG(1,
"Histogram " <<
histogram->GetName()<<
" has all filled bins");
99 return new dqm_core::Result(dqm_core::Result::Green);
104 return new dqm_core::Result();