9 #include <dqm_core/AlgorithmConfig.h>
17 #include <dqm_core/AlgorithmManager.h>
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" );
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 ) {
84 if(
histogram->GetEffectiveEntries() == 0){
86 ERS_DEBUG(1,
"Histogram " <<
histogram->GetName()<<
" does not have all filled bins");
92 if(nbinsX_filled >0 && nbinsX_filled < binsx){
93 ERS_DEBUG(1,
"Histogram " <<
histogram->GetName()<<
" has empty bins");
98 ERS_DEBUG(1,
"Histogram " <<
histogram->GetName()<<
" has all filled bins");
113 if ( m_name ==
"All_Bins_Filled"){
114 out<<
"All_Bins_Filled: Checks that all bins of histogram are filled\n"<<std::endl;
117 out<<
"Optional Parameter: MinStat: Minimum histogram statistics needed to perform Algorithm\n"<<std::endl;