9 #include <dqm_core/AlgorithmConfig.h>
19 #include <dqm_core/AlgorithmManager.h>
39 const TObject &
object,
40 const dqm_core::AlgorithmConfig &
config)
44 if(
object.
IsA()->InheritsFrom(
"TH2" ) ) {
47 throw dqm_core::BadConfig( ERS_HERE,
name,
"dimension > 3 " );
50 throw dqm_core::BadConfig( ERS_HERE,
name,
"does not inherit from TH2" );
63 catch ( dqm_core::Exception & ex ) {
65 throw dqm_core::BadConfig( ERS_HERE,
name, ex.what(), ex );
69 double binContents=
histogram -> GetBinContent(xbin,ybin);
72 result->tags_[
"BinContent"] = binContents;
74 result->status_ = dqm_core::Result::Disabled;
87 out<<
"Black bin: Returns status -1 (black) if bin has no contents\n" << std::endl;
89 out<<
"Mandatory parameter: XBin: The label of the X bin that you would like to check\n"<<std::endl;
91 out<<
"Mandatory parameter: YBin: The label of the Y bin that you would like to check\n"<<std::endl;