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(
"TH1" ) ) {
47 throw dqm_core::BadConfig( ERS_HERE,
name,
"dimension > 2 " );
50 throw dqm_core::BadConfig( ERS_HERE,
name,
"does not inherit from TH1" );
63 catch ( dqm_core::Exception & ex ) {
65 throw dqm_core::BadConfig( ERS_HERE,
name, ex.what(), ex );
69 double binContents=
histogram -> GetBinContent(xbin);
72 result->tags_[
"BinContent"] = binContents;
74 result->status_ = dqm_core::Result::Disabled;
87 out<<
"Black bin 1D: 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;