23 std::vector<std::string> dummy;
48 if (Nlumiblocks_<=0) Nlumiblocks_=1000;
61 std::cout <<
"<HcalBaseMonitor> WARNING: etaMax_ value of "<<
etaMax_<<
" exceeds maximum allowed value of 44.5"<<std::endl;
62 std::cout <<
" Value being set back to 44.5."<<std::endl;
63 std::cout <<
" Additional code changes are necessary to allow value of "<<
etaMax_<<std::endl;
69 std::cout <<
"<HcalBaseMonitor> WARNING: etaMin_ value of "<<etaMin_<<
" exceeds minimum allowed value of 44.5"<<std::endl;
70 std::cout <<
" Value being set back to -44.5."<<std::endl;
71 std::cout <<
" Additional code changes are necessary to allow value of "<<etaMin_<<std::endl;
208 unsigned int badc = atoi(
badCells_[
i].c_str());
209 if(
id.rawId() == badc)
return true;
223 unsigned int badc = atoi(
badCells_[
i].c_str());
243 std::stringstream
name;
245 std::stringstream unitname;
246 std::stringstream unittitle;
250 unittitle<<
"No Units";
254 unitname<<
" "<<Units;
258 h=ib.
book2D((
"All "+name.str()+unitname.str()).c_str(),
259 (name.str() +
" for all HCAL ("+unittitle.str().c_str()+
")"),
272 hh.
setup(ib, Name, Units);
290 std::stringstream
name;
292 std::stringstream unitname;
293 std::stringstream unittitle;
297 unittitle<<
"No Units";
301 unitname<<
" "<<Units;
305 h=ib.
book2D((
"All "+name.str()+unitname.str()).c_str(),
306 (name.str() +
" for all HCAL ("+unittitle.str().c_str()+
")"),
339 std::stringstream
name;
342 std::stringstream unitname;
343 std::stringstream unittitle;
347 unittitle<<
"No Units";
351 unitname<<
" "<<Units;
356 hh.push_back(ib.
book2D((
"HB HF Depth 1 "+name.str()+unitname.str()).c_str(),
357 (name.str()+
" Depth 1 -- HB & HF only ("+unittitle.str().c_str()+
")"),
360 hh.push_back( ib.
book2D((
"HB HF Depth 2 "+name.str()+unitname.str()).c_str(),
361 (name.str()+
" Depth 2 -- HB & HF only ("+unittitle.str().c_str()+
")"),
364 hh.push_back( ib.
book2D((
"HE Depth 3 "+name.str()+unitname.str()).c_str(),
365 (name.str()+
" Depth 3 -- HE ("+unittitle.str().c_str()+
")"),
368 hh.push_back( ib.
book2D((
"HO ZDC "+name.str()+unitname.str()).c_str(),
369 (name.str()+
" -- HO & ZDC ("+unittitle.str().c_str()+
")"),
372 hh.push_back(ib.
book2D((
"HE Depth 1 "+name.str()+unitname.str()).c_str(),
373 (name.str()+
" Depth 1 -- HE only ("+unittitle.str().c_str()+
")"),
376 hh.push_back(ib.
book2D((
"HE Depth 2 "+name.str()+unitname.str()).c_str(),
377 (name.str()+
" Depth 2 -- HE only ("+unittitle.str().c_str()+
")"),
380 for (
unsigned int i=0;
i<hh.size();++
i)
382 hh[
i]->setAxisTitle(
"i#eta",1);
383 hh[
i]->setAxisTitle(
"i#phi",2);
398 int nbinsx,
int lowboundx,
int highboundx,
399 int nbinsy,
int lowboundy,
int highboundy)
412 std::stringstream
name;
414 std::stringstream unitname;
415 std::stringstream unittitle;
419 unittitle<<
"No Units";
423 unitname<<
" "<<Units;
427 h=ib.
book2D((
"All "+name.str()+unitname.str()).c_str(),
428 (name.str() +
" for all HCAL ("+unittitle.str().c_str()+
")"),
429 nbinsx, lowboundx, highboundx,
430 nbinsy, lowboundy, highboundy);
433 nbinsx, lowboundx, highboundx,
434 nbinsy, lowboundy, highboundy);
448 int nbinsx,
int lowboundx,
int highboundx,
449 int nbinsy,
int lowboundy,
int highboundy)
464 std::stringstream
name;
467 std::stringstream unitname;
468 std::stringstream unittitle;
472 unittitle<<
"No Units";
476 unitname<<
" "<<Units;
481 hh.push_back(ib.
book2D((
"HB HF Depth 1 "+name.str()+unitname.str()).c_str(),
482 (name.str()+
" Depth 1 -- HB & HF only ("+unittitle.str().c_str()+
")"),
483 nbinsx, lowboundx, highboundx,
484 nbinsy, lowboundy, highboundy));
485 hh.push_back( ib.
book2D((
"HB HF Depth 2 "+name.str()+unitname.str()).c_str(),
486 (name.str()+
" Depth 2 -- HB & HF only ("+unittitle.str().c_str()+
")"),
487 nbinsx, lowboundx, highboundx,
488 nbinsy, lowboundy, highboundy));
489 hh.push_back( ib.
book2D((
"HE Depth 3 "+name.str()+unitname.str()).c_str(),
490 (name.str()+
" Depth 3 -- HE ("+unittitle.str().c_str()+
")"),
491 nbinsx, lowboundx, highboundx,
492 nbinsy, lowboundy, highboundy));
493 hh.push_back( ib.
book2D((
"HO ZDC "+name.str()+unitname.str()).c_str(),
494 (name.str()+
" -- HO & ZDC ("+unittitle.str().c_str()+
")"),
495 nbinsx, lowboundx, highboundx,
496 nbinsy, lowboundy, highboundy));
497 hh.push_back(ib.
book2D((
"HE Depth 1 "+name.str()+unitname.str()).c_str(),
498 (name.str()+
" Depth 1 -- HE only ("+unittitle.str().c_str()+
")"),
499 nbinsx, lowboundx, highboundx,
500 nbinsy, lowboundy, highboundy));
501 hh.push_back(ib.
book2D((
"HE Depth 2 "+name.str()+unitname.str()).c_str(),
502 (name.str()+
" Depth 2 -- HE only ("+unittitle.str().c_str()+
")"),
503 nbinsx, lowboundx, highboundx,
504 nbinsy, lowboundy, highboundy));
524 std::stringstream
name;
527 std::stringstream unitname;
528 std::stringstream unittitle;
532 unittitle<<
"No Units";
536 unitname<<
" "<<Units;
541 h=ib.
book1D((
"All "+name.str()+unitname.str()).c_str(),
542 (name.str() +
" for all HCAL ("+unittitle.str().c_str()+
")"),
543 Nbins,lowbound,highbound);
567 std::stringstream
name;
569 std::stringstream unitname;
570 std::stringstream unittitle;
574 unittitle<<
"No Units";
578 unitname<<
" "<<Units;
583 hh.push_back(ib.
book1D((
"HB "+name.str()+unitname.str()).c_str(),
584 (name.str()+
" HB ("+unittitle.str().c_str()+
")"),
585 Nbins,lowbound,highbound));
586 hh.push_back( ib.
book1D((
"HE "+name.str()+unitname.str()).c_str(),
587 (name.str()+
" HE ("+unittitle.str().c_str()+
")"),
588 Nbins,lowbound,highbound));
589 hh.push_back( ib.
book1D((
"HO "+name.str()+unitname.str()).c_str(),
590 (name.str()+
" HO ("+unittitle.str().c_str()+
")"),
591 Nbins,lowbound,highbound));
592 hh.push_back( ib.
book1D((
"HF "+name.str()+unitname.str()).c_str(),
593 (name.str()+
" HF ("+unittitle.str().c_str()+
")"),
594 Nbins,lowbound,highbound));
596 for (
unsigned int i=0;
i<hh.size();++
i)
598 hh[
i]->setAxisTitle(unitname.str().c_str(),1);
612 for (
unsigned int i=0;
i<hh.size();++
i)
614 TH2F*
histo=hh[
i]->getTH2F();
615 histo->SetMinimum(min);
616 histo->SetMaximum(max);
623 for (
unsigned int i=0;
i<hh.size();++
i)
625 TH1F*
histo=hh[
i]->getTH1F();
626 histo->SetMinimum(min);
627 histo->SetMaximum(max);
T getUntrackedParameter(std::string const &, T const &) const
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * ProblemsVsLB_HE
std::vector< int > AllowedCalibTypes_
MonitorElement * ProblemsVsLB_HO
void endLuminosityBlock()
void SetupEtaPhiHists(DQMStore::IBooker &ib, MonitorElement *&h, EtaPhiHists &hh, std::string Name, std::string Units)
virtual void setup(const edm::ParameterSet &ps, DQMStore::IBooker &ib)
MonitorElement * ProblemsVsLB_HBHEHF
void setupDepthHists2D(DQMStore::IBooker &ib, MonitorElement *&h, std::vector< MonitorElement * > &hh, std::string Name, std::string Units)
EtaPhiHists ProblemCellsByDepth
MonitorElement * meTOTALEVT_
void LumiBlockUpdate(int lb)
MonitorElement * ProblemsVsLB_HF
std::vector< MonitorElement * > depth
MonitorElement * ProblemsVsLB
MonitorElement * ProblemsVsLB_HB
MonitorElement * book1D(Args &&...args)
MonitorElement * ProblemCells
void setup(DQMStore::IBooker &m_dbe, std::string Name, std::string Units="")
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
virtual void periodicReset()
void setupDepthHists1D(DQMStore::IBooker &ib, MonitorElement *&h, std::vector< MonitorElement * > &hh, std::string Name, std::string Units, int lowbound, int highbound, int Nbins)
void beginLuminosityBlock(int lb)
void setMinMaxHists1D(std::vector< MonitorElement * > &hh, double min, double max)
void setMinMaxHists2D(std::vector< MonitorElement * > &hh, double min, double max)
MonitorElement * book2D(Args &&...args)
std::vector< std::string > badCells_
int CalcEtaBin(int subdet, int ieta, int depth)
bool vetoCell(HcalDetId &id)
virtual ~HcalBaseMonitor()
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void Reset(void)
reset ME (ie. contents, errors, etc)