test that histogram contents are above Ymin
Definition at line 198 of file QTest.h.
loop over all channels
loop over all bins
Reimplemented from QCriterion.
Definition at line 162 of file QTest.cc.
References newFWLiteAna::bin, officialStyle::chan, relmon_rootfiles_spy::contents, gather_cfg::cout, first, dqm::impl::MonitorElement::getFullname(), dqm::legacy::MonitorElement::getRootObject(), dqm::legacy::MonitorElement::getTH1D(), dqm::legacy::MonitorElement::getTH1F(), dqm::legacy::MonitorElement::getTH1S(), dqm::legacy::MonitorElement::getTH2D(), dqm::legacy::MonitorElement::getTH2F(), dqm::legacy::MonitorElement::getTH2S(), dqm::impl::MonitorElement::kind(), dqmdumpme::last, MonitorElementData::TH1D, MonitorElementData::TH1F, MonitorElementData::TH1S, MonitorElementData::TH2D, MonitorElementData::TH2F, and MonitorElementData::TH2S.
199 <<
" ME " << me->
getFullname() <<
" does not contain TH1F/TH1S/TH1D/TH2F/TH2S/TH2D, exiting\n";
209 int ncx = h1->GetXaxis()->GetNbins();
215 for (bin = first; bin <=
last; ++
bin) {
216 double contents = h1->GetBinContent(bin);
217 bool failure =
false;
218 failure = contents <=
ymin_;
226 return 1. * (ncx - fail) / ncx;
231 else if (h2 !=
nullptr) {
232 int ncx = h2->GetXaxis()->GetNbins();
233 int ncy = h2->GetYaxis()->GetNbins();
236 for (
int cx = 1; cx <= ncx; ++cx) {
237 for (
int cy = 1; cy <= ncy; ++cy) {
238 double contents = h2->GetBinContent(h2->GetBin(cx, cy));
239 bool failure =
false;
240 failure = contents <=
ymin_;
242 DQMChannel chan(cx, cy, 0, contents, h2->GetBinError(h2->GetBin(cx, cy)));
249 return 1. * (ncx * ncy - fail) / (ncx * ncy);
253 <<
" TH1/TH2F are NULL, exiting\n";
virtual TH2D * getTH2D() const
virtual TH2F * getTH2F() const
double ymin_
ymin - threshold
tuple chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
virtual TH1F * getTH1F() const
Kind kind() const
Get the type of the monitor element.
virtual TH1S * getTH1S() const
virtual TH2S * getTH2S() const
virtual TH1D * getTH1D() const
std::vector< DQMChannel > badChannels_
static std::string getAlgoName()
std::string getFullname() const
get full name of ME including Pathname
TObject * getRootObject() const override