CMS 3D CMS Logo

List of all members | Public Member Functions
ecaldqm::MESetDet1D Class Reference

#include <MESetDet1D.h>

Inheritance diagram for ecaldqm::MESetDet1D:
ecaldqm::MESetEcal ecaldqm::MESet

Public Member Functions

void book (DQMStore::IBooker &) override
 
MESetclone (std::string const &="") const override
 
void fill (DetId const &, double=1., double=1., double=0.) override
 
void fill (EcalElectronicsId const &, double=1., double=1., double=0.) override
 
void fill (int, double=1., double=1., double=0.) override
 
int findBin (DetId const &) const
 
int findBin (DetId const &, double, double=0.) const override
 
int findBin (EcalElectronicsId const &) const
 
int findBin (EcalElectronicsId const &, double, double=0.) const override
 
int findBin (int) const
 
int findBin (int, double, double=0.) const override
 
double getBinContent (DetId const &, int=0) const override
 
double getBinContent (EcalElectronicsId const &, int=0) const override
 
double getBinContent (int, int=0) const override
 
double getBinEntries (DetId const &, int=0) const override
 
double getBinEntries (EcalElectronicsId const &, int=0) const override
 
double getBinEntries (int, int=0) const override
 
double getBinError (DetId const &, int=0) const override
 
double getBinError (EcalElectronicsId const &, int=0) const override
 
double getBinError (int, int=0) const override
 
 MESetDet1D (MESetDet1D const &)
 
 MESetDet1D (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)
 
void reset (double=0., double=0., double=0.) override
 
void setBinContent (DetId const &, double) override
 
void setBinContent (DetId const &, int, double) override
 
void setBinContent (EcalElectronicsId const &, double) override
 
void setBinContent (EcalElectronicsId const &, int, double) override
 
void setBinContent (int, double) override
 
void setBinContent (int, int, double) override
 
void setBinEntries (DetId const &, double) override
 
void setBinEntries (DetId const &, int, double) override
 
void setBinEntries (EcalElectronicsId const &, double) override
 
void setBinEntries (EcalElectronicsId const &, int, double) override
 
void setBinEntries (int, double) override
 
void setBinEntries (int, int, double) override
 
void setBinError (DetId const &, double) override
 
void setBinError (DetId const &, int, double) override
 
void setBinError (EcalElectronicsId const &, double) override
 
void setBinError (EcalElectronicsId const &, int, double) override
 
void setBinError (int, double) override
 
void setBinError (int, int, double) override
 
 ~MESetDet1D () override
 
- Public Member Functions inherited from ecaldqm::MESetEcal
void book (DQMStore::IBooker &) override
 
MESetclone (std::string const &="") const override
 
void fill (DetId const &, double=1., double=1., double=1.) override
 
void fill (double, double=1., double=1.) override
 
void fill (EcalElectronicsId const &, double=1., double=1., double=1.) override
 
void fill (int, double=1., double=1., double=1.) override
 
std::vector< std::string > generatePaths () const
 
double getBinContent (DetId const &, int) const override
 
double getBinContent (EcalElectronicsId const &, int) const override
 
double getBinContent (int, int) const override
 
double getBinEntries (DetId const &, int) const override
 
double getBinEntries (EcalElectronicsId const &, int) const override
 
double getBinEntries (int, int) const override
 
double getBinError (DetId const &, int) const override
 
double getBinError (EcalElectronicsId const &, int) const override
 
double getBinError (int, int) const override
 
bool isVariableBinning () const override
 
 MESetEcal (MESetEcal const &)
 
 MESetEcal (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr)
 
MESetoperator= (MESet const &) override
 
bool retrieve (DQMStore::IGetter &, std::string *=nullptr) const override
 
void setBinContent (DetId const &, int, double) override
 
void setBinContent (EcalElectronicsId const &, int, double) override
 
void setBinContent (int, int, double) override
 
void setBinEntries (DetId const &, int, double) override
 
void setBinEntries (EcalElectronicsId const &, int, double) override
 
void setBinEntries (int, int, double) override
 
void setBinError (DetId const &, int, double) override
 
void setBinError (EcalElectronicsId const &, int, double) override
 
void setBinError (int, int, double) override
 
 ~MESetEcal () override
 
- Public Member Functions inherited from ecaldqm::MESet
virtual iterator begin ()
 
virtual const_iterator begin () const
 
virtual iterator beginChannel ()
 
virtual const_iterator beginChannel () const
 
virtual void clear () const
 
virtual iterator end ()
 
virtual const_iterator end () const
 
std::string formPath (PathReplacements const &) const
 
bool getBatchMode () const
 
binning::BinningType getBinType () const
 
MonitorElement::Kind getKind () const
 
bool getLumiFlag () const
 
virtual MonitorElementgetME (unsigned _iME)
 
virtual const MonitorElementgetME (unsigned _iME) const
 
binning::ObjectType getObjType () const
 
virtual const std::string & getPath () const
 
bool isActive () const
 
virtual bool maskMatches (DetId const &, uint32_t, StatusManager const *) const
 
 MESet ()
 
 MESet (MESet const &)
 
 MESet (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
 
virtual void resetAll (double=0., double=0., double=0.)
 
virtual void setAxisTitle (std::string const &, int=1)
 
void setBatchMode ()
 
void setLumiFlag ()
 
virtual ~MESet ()
 

Additional Inherited Members

- Public Types inherited from ecaldqm::MESet
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
typedef std::map< std::string, std::string > PathReplacements
 
- Protected Member Functions inherited from ecaldqm::MESet
virtual void checkME_ (unsigned _iME) const
 
virtual void fill_ (unsigned, double, double, double)
 
virtual void fill_ (unsigned, int, double)
 
virtual void fill_ (unsigned, int, double, double)
 
void throw_ (std::string const &_message) const
 
- Protected Attributes inherited from ecaldqm::MESetEcal
unsigned logicalDimensions_
 
const binning::AxisSpecsxaxis_
 
const binning::AxisSpecsyaxis_
 
const binning::AxisSpecszaxis_
 
- Protected Attributes inherited from ecaldqm::MESet
bool active_
 
bool batchMode_
 
binning::BinningType btype_
 
MonitorElement::Kind kind_
 
bool lumiFlag_
 
std::vector< MonitorElement * > mes_
 
binning::ObjectType otype_
 
std::string path_
 

Detailed Description

Definition at line 13 of file MESetDet1D.h.

Constructor & Destructor Documentation

◆ MESetDet1D() [1/2]

ecaldqm::MESetDet1D::MESetDet1D ( std::string const &  _fullPath,
binning::ObjectType  _otype,
binning::BinningType  _btype,
MonitorElement::Kind  _kind,
binning::AxisSpecs const *  _yaxis = nullptr 
)

Definition at line 7 of file MESetDet1D.cc.

12  : MESetEcal(_fullPath, _otype, _btype, _kind, 1, nullptr, _yaxis, nullptr) {
13  switch (kind_) {
18  break;
19  default:
20  throw_("Unsupported MonitorElement kind");
21  }
22  }

References ecaldqm::MESet::kind_, MonitorElementData::TH1F, MonitorElementData::TH2F, ecaldqm::MESet::throw_(), MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

Referenced by clone().

◆ MESetDet1D() [2/2]

ecaldqm::MESetDet1D::MESetDet1D ( MESetDet1D const &  _orig)

Definition at line 24 of file MESetDet1D.cc.

24 : MESetEcal(_orig) {}

◆ ~MESetDet1D()

ecaldqm::MESetDet1D::~MESetDet1D ( )
override

Definition at line 26 of file MESetDet1D.cc.

26 {}

Member Function Documentation

◆ book()

void ecaldqm::MESetDet1D::book ( DQMStore::IBooker _ibooker)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 37 of file MESetDet1D.cc.

37  {
38  MESetEcal::book(_ibooker);
39 
40  if (btype_ == binning::kDCC) {
41  for (unsigned iME(0); iME < mes_.size(); iME++) {
42  MonitorElement *me(mes_[iME]);
43 
44  binning::ObjectType actualObject(binning::getObject(otype_, iME));
45  if (actualObject == binning::kEB) {
46  for (int iBin(1); iBin <= me->getNbinsX(); iBin++)
47  me->setBinLabel(iBin, binning::channelName(iBin + kEBmLow));
48  } else if (actualObject == binning::kEE) {
49  for (int iBin(1); iBin <= me->getNbinsX() / 2; iBin++) {
50  me->setBinLabel(iBin, binning::channelName(iBin));
51  me->setBinLabel(iBin + me->getNbinsX() / 2, binning::channelName(iBin + 45));
52  }
53  } else if (actualObject == binning::kEEm) {
54  for (int iBin(1); iBin <= me->getNbinsX(); iBin++)
55  me->setBinLabel(iBin, binning::channelName(iBin));
56  } else if (actualObject == binning::kEEp) {
57  for (int iBin(1); iBin <= me->getNbinsX(); iBin++)
58  me->setBinLabel(iBin, binning::channelName(iBin + 45));
59  }
60  }
61  } else if (btype_ == binning::kTriggerTower) {
62  for (unsigned iME(0); iME < mes_.size(); iME++) {
63  MonitorElement *me(mes_[iME]);
64 
65  binning::ObjectType actualObject(binning::getObject(otype_, iME));
66  unsigned dccid(0);
67  if (actualObject == binning::kSM && (iME <= kEEmHigh || iME >= kEEpLow))
68  dccid = iME + 1;
69  else if (actualObject == binning::kEESM)
70  dccid = iME <= kEEmHigh ? iME + 1 : iME + 37;
71 
72  if (dccid > 0) {
73  std::stringstream ss;
74  std::pair<unsigned, unsigned> inner(innerTCCs(iME + 1));
75  std::pair<unsigned, unsigned> outer(outerTCCs(iME + 1));
76  ss << "TCC" << inner.first << " TT1";
77  me->setBinLabel(1, ss.str());
78  ss.str("");
79  ss << "TCC" << inner.second << " TT1";
80  me->setBinLabel(1 + nTTInner, ss.str());
81  ss.str("");
82  ss << "TCC" << outer.first << " TT1";
83  me->setBinLabel(1 + 2 * nTTInner, ss.str());
84  ss.str("");
85  ss << "TCC" << outer.second << " TT1";
86  me->setBinLabel(1 + 2 * nTTInner + nTTOuter, ss.str());
87  // Bins are numbered:
88  // inner1:(1)-->(nTTInner)
89  // inner2:(1+nTTInner)-->(1+nTTInner + nTTInner-1 = 2*nTTInner)
90  // outer1:(1+2*nTTInner)-->(1+2*nTTInner+nTTOuter-1=2*nTTInner+nTTOuter)
91  // outer2:(1+2*nTTInner+nTTOuter)-->(1+2*nTTInner+nTTOuter + nTTOuter-1
92  // = 2*nTTInner+2*nTTOuter)
93  int offset(0);
94  for (int iBin(4); iBin <= (2 * nTTOuter + 2 * nTTInner); iBin += 4) {
95  if (iBin == 4 + nTTInner)
96  offset = nTTInner;
97  else if (iBin == 4 + 2 * nTTInner)
98  offset = 2 * nTTInner;
99  else if (iBin == 4 + 2 * nTTInner + nTTOuter)
100  offset = 2 * nTTInner + nTTOuter;
101  ss.str("");
102  ss << iBin - offset;
103  me->setBinLabel(iBin, ss.str());
104  }
105  }
106  }
107  }
108  }

References ecaldqm::MESetEcal::book(), ecaldqm::MESet::btype_, ecaldqm::binning::channelName(), ecaldqm::binning::getObject(), SurfaceOrientation::inner, ecaldqm::innerTCCs(), ecaldqm::binning::kDCC, ecaldqm::binning::kEB, ecaldqm::kEBmLow, ecaldqm::binning::kEE, ecaldqm::binning::kEEm, ecaldqm::kEEmHigh, ecaldqm::binning::kEEp, ecaldqm::kEEpLow, ecaldqm::binning::kEESM, ecaldqm::binning::kSM, ecaldqm::binning::kTriggerTower, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, ecaldqm::nTTInner, ecaldqm::nTTOuter, hltrates_dqm_sourceclient-live_cfg::offset, ecaldqm::MESet::otype_, SurfaceOrientation::outer, ecaldqm::outerTCCs(), and contentValuesCheck::ss.

◆ clone()

MESet * ecaldqm::MESetDet1D::clone ( std::string const &  _path = "") const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 28 of file MESetDet1D.cc.

28  {
30  if (!_path.empty())
31  path_ = _path;
32  MESet *copy(new MESetDet1D(*this));
33  path_ = path;
34  return copy;
35  }

References filterCSVwithJSON::copy, MESetDet1D(), castor_dqm_sourceclient_file_cfg::path, ecaldqm::MESet::path_, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ fill() [1/3]

void ecaldqm::MESetDet1D::fill ( DetId const &  _id,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

◆ fill() [2/3]

void ecaldqm::MESetDet1D::fill ( EcalElectronicsId const &  _id,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

◆ fill() [3/3]

void ecaldqm::MESetDet1D::fill ( int  _dcctccid,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

◆ findBin() [1/6]

int ecaldqm::MESetDet1D::findBin ( DetId const &  _id) const

◆ findBin() [2/6]

int ecaldqm::MESetDet1D::findBin ( DetId const &  _id,
double  _y,
double  = 0. 
) const
overridevirtual

◆ findBin() [3/6]

int ecaldqm::MESetDet1D::findBin ( EcalElectronicsId const &  _id) const

◆ findBin() [4/6]

int ecaldqm::MESetDet1D::findBin ( EcalElectronicsId const &  _id,
double  _y,
double  = 0. 
) const
overridevirtual

◆ findBin() [5/6]

int ecaldqm::MESetDet1D::findBin ( int  _dcctccid) const

◆ findBin() [6/6]

int ecaldqm::MESetDet1D::findBin ( int  _dcctccid,
double  _y,
double  = 0. 
) const
overridevirtual

Reimplemented from ecaldqm::MESetEcal.

Definition at line 717 of file MESetDet1D.cc.

717  {
718  if (!active_)
719  return -1;
721  return -1;
722 
723  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
724  checkME_(iME);
725 
726  MonitorElement *me(mes_[iME]);
727 
729  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
730  int nbinsX(me->getTH1()->GetNbinsX());
731  return xbin + (nbinsX + 2) * me->getTH1()->GetYaxis()->FindBin(_y);
732  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

◆ getBinContent() [1/3]

double ecaldqm::MESetDet1D::getBinContent ( DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 494 of file MESetDet1D.cc.

494  {
495  if (!active_)
496  return 0.;
497 
498  unsigned iME(binning::findPlotIndex(otype_, _id));
499  checkME_(iME);
500 
501  MonitorElement *me(mes_[iME]);
502 
504  int xbin(binning::findBin1D(obj, btype_, _id));
505  int nbinsX(me->getTH1()->GetNbinsX());
506 
507  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
508  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

◆ getBinContent() [2/3]

double ecaldqm::MESetDet1D::getBinContent ( EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 510 of file MESetDet1D.cc.

510  {
511  if (!active_)
512  return 0.;
513 
514  unsigned iME(binning::findPlotIndex(otype_, _id));
515  checkME_(iME);
516 
517  MonitorElement *me(mes_[iME]);
518 
520  int xbin(binning::findBin1D(obj, btype_, _id));
521  int nbinsX(me->getTH1()->GetNbinsX());
522 
523  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
524  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

◆ getBinContent() [3/3]

double ecaldqm::MESetDet1D::getBinContent ( int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 526 of file MESetDet1D.cc.

526  {
527  if (!active_)
528  return 0.;
529 
530  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
531  checkME_(iME);
532 
533  MonitorElement *me(mes_[iME]);
534 
536  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
537  int nbinsX(me->getTH1()->GetNbinsX());
538 
539  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
540  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

◆ getBinEntries() [1/3]

double ecaldqm::MESetDet1D::getBinEntries ( DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

◆ getBinEntries() [2/3]

double ecaldqm::MESetDet1D::getBinEntries ( EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

◆ getBinEntries() [3/3]

double ecaldqm::MESetDet1D::getBinEntries ( int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

◆ getBinError() [1/3]

double ecaldqm::MESetDet1D::getBinError ( DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 542 of file MESetDet1D.cc.

542  {
543  if (!active_)
544  return 0.;
545 
546  unsigned iME(binning::findPlotIndex(otype_, _id));
547  checkME_(iME);
548 
549  MonitorElement *me(mes_[iME]);
550 
552  int xbin(binning::findBin1D(obj, btype_, _id));
553  int nbinsX(me->getTH1()->GetNbinsX());
554 
555  return me->getBinError((nbinsX + 2) * _ybin + xbin);
556  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

◆ getBinError() [2/3]

double ecaldqm::MESetDet1D::getBinError ( EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 558 of file MESetDet1D.cc.

558  {
559  if (!active_)
560  return 0.;
561 
562  unsigned iME(binning::findPlotIndex(otype_, _id));
563  checkME_(iME);
564 
565  MonitorElement *me(mes_[iME]);
566 
568  int xbin(binning::findBin1D(obj, btype_, _id));
569  int nbinsX(me->getTH1()->GetNbinsX());
570 
571  return me->getBinError((nbinsX + 2) * _ybin + xbin);
572  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

◆ getBinError() [3/3]

double ecaldqm::MESetDet1D::getBinError ( int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 574 of file MESetDet1D.cc.

574  {
575  if (!active_)
576  return 0.;
577 
578  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
579  checkME_(iME);
580 
581  MonitorElement *me(mes_[iME]);
582 
584  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
585  int nbinsX(me->getTH1()->GetNbinsX());
586 
587  return me->getBinError((nbinsX + 2) * _ybin + xbin);
588  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

◆ reset()

void ecaldqm::MESetDet1D::reset ( double  _content = 0.,
double  _err = 0.,
double  _entries = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 734 of file MESetDet1D.cc.

734  {
735  unsigned nME(binning::getNObjects(otype_));
736 
739 
740  for (unsigned iME(0); iME < nME; iME++) {
741  MonitorElement *me(mes_[iME]);
742 
743  int nbinsX(me->getTH1()->GetNbinsX());
744  int nbinsY(me->getTH1()->GetNbinsY());
745  for (int ix(1); ix <= nbinsX; ix++) {
746  for (int iy(1); iy <= nbinsY; iy++) {
747  int bin(is2D ? (nbinsX + 2) * iy + ix : ix);
748  me->setBinContent(bin, _content);
749  me->setBinError(bin, _err);
750  if (isProfile)
751  me->setBinEntries(bin, _entries);
752  }
753  }
754  }
755  }

References btvTracks_cfi::_content, newFWLiteAna::bin, ecaldqm::binning::getNObjects(), fastTrackerRecHitType::is2D(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, hlt_dqm_clientPB-live_cfg::nbinsY, ecaldqm::MESet::otype_, MonitorElementData::TH2F, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

◆ setBinContent() [1/6]

void ecaldqm::MESetDet1D::setBinContent ( DetId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 158 of file MESetDet1D.cc.

158  {
159  if (!active_)
160  return;
161 
162  unsigned iME(binning::findPlotIndex(otype_, _id));
163  checkME_(iME);
164 
165  MonitorElement *me(mes_[iME]);
166 
168  int xbin(binning::findBin1D(obj, btype_, _id));
169 
171  int nbinsY(me->getTH1()->GetNbinsY());
172  for (int iY(1); iY <= nbinsY; iY++)
173  me->setBinContent(xbin, iY, _content);
174  } else
175  me->setBinContent(xbin, _content);
176  }

References btvTracks_cfi::_content, ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

◆ setBinContent() [2/6]

void ecaldqm::MESetDet1D::setBinContent ( DetId const &  _id,
int  _ybin,
double  _content 
)
overridevirtual

◆ setBinContent() [3/6]

void ecaldqm::MESetDet1D::setBinContent ( EcalElectronicsId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 178 of file MESetDet1D.cc.

178  {
179  if (!active_)
180  return;
181 
182  unsigned iME(binning::findPlotIndex(otype_, _id));
183  checkME_(iME);
184 
185  MonitorElement *me(mes_[iME]);
186 
188  int xbin(binning::findBin1D(obj, btype_, _id));
189 
191  int nbinsY(me->getTH1()->GetNbinsY());
192  for (int iY(1); iY <= nbinsY; iY++)
193  me->setBinContent(xbin, iY, _content);
194  } else
195  me->setBinContent(xbin, _content);
196  }

References btvTracks_cfi::_content, ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

◆ setBinContent() [4/6]

void ecaldqm::MESetDet1D::setBinContent ( EcalElectronicsId const &  _id,
int  _ybin,
double  _content 
)
overridevirtual

◆ setBinContent() [5/6]

void ecaldqm::MESetDet1D::setBinContent ( int  _dcctccid,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 198 of file MESetDet1D.cc.

198  {
199  if (!active_)
200  return;
201 
202  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
203  checkME_(iME);
204 
205  MonitorElement *me(mes_[iME]);
206 
208  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
209 
211  int nbinsY(me->getTH1()->GetNbinsY());
212  for (int iY(1); iY <= nbinsY; iY++)
213  me->setBinContent(xbin, iY, _content);
214  } else
215  me->setBinContent(xbin, _content);
216  }

References btvTracks_cfi::_content, ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

◆ setBinContent() [6/6]

void ecaldqm::MESetDet1D::setBinContent ( int  _dcctccid,
int  _ybin,
double  _content 
)
overridevirtual

◆ setBinEntries() [1/6]

void ecaldqm::MESetDet1D::setBinEntries ( DetId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 374 of file MESetDet1D.cc.

374  {
375  if (!active_)
376  return;
378  return;
379 
380  unsigned iME(binning::findPlotIndex(otype_, _id));
381  checkME_(iME);
382 
383  MonitorElement *me(mes_[iME]);
384 
386  int xbin(binning::findBin1D(obj, btype_, _id));
387 
389  int nbinsX(me->getTH1()->GetNbinsX());
390  int nbinsY(me->getTH1()->GetNbinsY());
391  for (int iY(1); iY <= nbinsY; iY++)
392  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
393  } else
394  me->setBinEntries(xbin, _entries);
395  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, hlt_dqm_clientPB-live_cfg::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

◆ setBinEntries() [2/6]

void ecaldqm::MESetDet1D::setBinEntries ( DetId const &  _id,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 443 of file MESetDet1D.cc.

443  {
444  if (!active_)
445  return;
447  return;
448 
449  unsigned iME(binning::findPlotIndex(otype_, _id));
450  checkME_(iME);
451 
452  MonitorElement *me(mes_[iME]);
453 
455  int xbin(binning::findBin1D(obj, btype_, _id));
456  int nbinsX(me->getTH1()->GetNbinsX());
457  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
458  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElementData::TPROFILE2D.

◆ setBinEntries() [3/6]

void ecaldqm::MESetDet1D::setBinEntries ( EcalElectronicsId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 397 of file MESetDet1D.cc.

397  {
398  if (!active_)
399  return;
401  return;
402 
403  unsigned iME(binning::findPlotIndex(otype_, _id));
404  checkME_(iME);
405 
406  MonitorElement *me(mes_[iME]);
407 
409  int xbin(binning::findBin1D(obj, btype_, _id));
410 
412  int nbinsX(me->getTH1()->GetNbinsX());
413  int nbinsY(me->getTH1()->GetNbinsY());
414  for (int iY(1); iY <= nbinsY; iY++)
415  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
416  } else
417  me->setBinEntries(xbin, _entries);
418  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, hlt_dqm_clientPB-live_cfg::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

◆ setBinEntries() [4/6]

void ecaldqm::MESetDet1D::setBinEntries ( EcalElectronicsId const &  _id,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 460 of file MESetDet1D.cc.

460  {
461  if (!active_)
462  return;
464  return;
465 
466  unsigned iME(binning::findPlotIndex(otype_, _id));
467  checkME_(iME);
468 
469  MonitorElement *me(mes_[iME]);
470 
472  int xbin(binning::findBin1D(obj, btype_, _id));
473  int nbinsX(me->getTH1()->GetNbinsX());
474  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
475  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElementData::TPROFILE2D.

◆ setBinEntries() [5/6]

void ecaldqm::MESetDet1D::setBinEntries ( int  _dcctccid,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 420 of file MESetDet1D.cc.

420  {
421  if (!active_)
422  return;
424  return;
425 
426  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
427  checkME_(iME);
428 
429  MonitorElement *me(mes_[iME]);
430 
432  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
433 
435  int nbinsX(me->getTH1()->GetNbinsX());
436  int nbinsY(me->getTH1()->GetNbinsY());
437  for (int iY(1); iY <= nbinsY; iY++)
438  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
439  } else
440  me->setBinEntries(xbin, _entries);
441  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, hlt_dqm_clientPB-live_cfg::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

◆ setBinEntries() [6/6]

void ecaldqm::MESetDet1D::setBinEntries ( int  _dcctccid,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 477 of file MESetDet1D.cc.

477  {
478  if (!active_)
479  return;
481  return;
482 
483  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
484  checkME_(iME);
485 
486  MonitorElement *me(mes_[iME]);
487 
489  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
490  int nbinsX(me->getTH1()->GetNbinsX());
491  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
492  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsX, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElementData::TPROFILE2D.

◆ setBinError() [1/6]

void ecaldqm::MESetDet1D::setBinError ( DetId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 266 of file MESetDet1D.cc.

266  {
267  if (!active_)
268  return;
269 
270  unsigned iME(binning::findPlotIndex(otype_, _id));
271  checkME_(iME);
272 
273  MonitorElement *me(mes_[iME]);
274 
276  int xbin(binning::findBin1D(obj, btype_, _id));
277 
279  int nbinsY(me->getTH1()->GetNbinsY());
280  for (int iY(1); iY <= nbinsY; iY++)
281  me->setBinError(xbin, iY, _error);
282  } else
283  me->setBinError(xbin, _error);
284  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

◆ setBinError() [2/6]

void ecaldqm::MESetDet1D::setBinError ( DetId const &  _id,
int  _ybin,
double  _error 
)
overridevirtual

◆ setBinError() [3/6]

void ecaldqm::MESetDet1D::setBinError ( EcalElectronicsId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 286 of file MESetDet1D.cc.

286  {
287  if (!active_)
288  return;
289 
290  unsigned iME(binning::findPlotIndex(otype_, _id));
291  checkME_(iME);
292 
293  MonitorElement *me(mes_[iME]);
294 
296  int xbin(binning::findBin1D(obj, btype_, _id));
297 
299  int nbinsY(me->getTH1()->GetNbinsY());
300  for (int iY(1); iY <= nbinsY; iY++)
301  me->setBinError(xbin, iY, _error);
302  } else
303  me->setBinError(xbin, _error);
304  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

◆ setBinError() [4/6]

void ecaldqm::MESetDet1D::setBinError ( EcalElectronicsId const &  _id,
int  _ybin,
double  _error 
)
overridevirtual

◆ setBinError() [5/6]

void ecaldqm::MESetDet1D::setBinError ( int  _dcctccid,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 306 of file MESetDet1D.cc.

306  {
307  if (!active_)
308  return;
309 
310  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
311  checkME_(iME);
312 
313  MonitorElement *me(mes_[iME]);
314 
316  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
317 
319  int nbinsY(me->getTH1()->GetNbinsY());
320  for (int iY(1); iY <= nbinsY; iY++)
321  me->setBinError(xbin, iY, _error);
322  } else
323  me->setBinError(xbin, _error);
324  }

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, hlt_dqm_clientPB-live_cfg::nbinsY, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TH2F, and MonitorElementData::TPROFILE2D.

◆ setBinError() [6/6]

void ecaldqm::MESetDet1D::setBinError ( int  _dcctccid,
int  _ybin,
double  _error 
)
overridevirtual
ecaldqm::MESet::throw_
void throw_(std::string const &_message) const
Definition: MESet.h:121
ecaldqm::MESet::fill_
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:246
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
ecaldqm::outerTCCs
std::pair< unsigned, unsigned > outerTCCs(unsigned)
Definition: EcalDQMCommonUtils.cc:153
MonitorElementData::Kind::TH1F
ecaldqm::binning::kEEp
Definition: MESetBinningUtils.h:21
ecaldqm::binning::kEB
Definition: MESetBinningUtils.h:18
hlt_dqm_clientPB-live_cfg.nbinsX
nbinsX
Definition: hlt_dqm_clientPB-live_cfg.py:60
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
ecaldqm::binning::kEE
Definition: MESetBinningUtils.h:19
ecaldqm::MESetDet1D::MESetDet1D
MESetDet1D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)
Definition: MESetDet1D.cc:7
MonitorElementData::Kind::TH2F
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
ecaldqm::binning::getNObjects
unsigned getNObjects(ObjectType)
Definition: MESetBinningUtils.cc:512
SurfaceOrientation::inner
Definition: Surface.h:19
ecaldqm::binning::getObject
ObjectType getObject(ObjectType, unsigned)
Definition: MESetBinningUtils.cc:467
ecaldqm::MESet::otype_
binning::ObjectType otype_
Definition: MESet.h:126
ecaldqm::kEEmHigh
Definition: EcalDQMCommonUtils.h:82
ecaldqm::MESet::active_
bool active_
Definition: MESet.h:133
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
hlt_dqm_clientPB-live_cfg.nbinsY
nbinsY
Definition: hlt_dqm_clientPB-live_cfg.py:64
ecaldqm::binning::ObjectType
ObjectType
Definition: MESetBinningUtils.h:17
ecaldqm::MESetEcal::book
void book(DQMStore::IBooker &) override
Definition: MESetEcal.cc:70
ecaldqm::MESet::btype_
binning::BinningType btype_
Definition: MESet.h:127
ecaldqm::binning::kEESM
Definition: MESetBinningUtils.h:24
ecaldqm::MESet::path_
std::string path_
Definition: MESet.h:125
ecaldqm::nTTOuter
Definition: EcalDQMCommonUtils.h:98
ecaldqm::binning::findPlotIndex
unsigned findPlotIndex(ObjectType, DetId const &)
Definition: MESetBinningUtils.cc:299
ecaldqm::kEBmLow
Definition: EcalDQMCommonUtils.h:85
ecaldqm::nTTInner
Definition: EcalDQMCommonUtils.h:99
ecaldqm::MESet::mes_
std::vector< MonitorElement * > mes_
Definition: MESet.h:123
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
ecaldqm::binning::findBin1D
int findBin1D(ObjectType, BinningType, DetId const &)
Definition: MESetBinningUtils.cc:58
MonitorElementData::Kind::TPROFILE2D
ecaldqm::binning::channelName
std::string channelName(uint32_t, BinningType _btype=kDCC)
Definition: MESetBinningUtils.cc:591
ecaldqm::MESet::checkME_
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:113
ecaldqm::kEEpLow
Definition: EcalDQMCommonUtils.h:83
ecaldqm::binning::kDCC
Definition: MESetBinningUtils.h:46
fastTrackerRecHitType::is2D
bool is2D(HitType hitType)
Definition: FastTrackerRecHit.h:36
ecaldqm::MESet::MESet
MESet()
Definition: MESet.cc:14
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
SurfaceOrientation::outer
Definition: Surface.h:19
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:56
ecaldqm::innerTCCs
std::pair< unsigned, unsigned > innerTCCs(unsigned)
Definition: EcalDQMCommonUtils.cc:133
ecaldqm::MESet::kind_
MonitorElement::Kind kind_
Definition: MESet.h:128
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:78
ecaldqm::binning::kSM
Definition: MESetBinningUtils.h:22
ecaldqm::binning::kTriggerTower
Definition: MESetBinningUtils.h:42
btvTracks_cfi._content
_content
Definition: btvTracks_cfi.py:5
ecaldqm::binning::kEEm
Definition: MESetBinningUtils.h:20
MonitorElementData::Kind::TPROFILE
ecaldqm::MESetEcal::MESetEcal
MESetEcal(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr)
Definition: MESetEcal.cc:10