12 :
MESetEcal(_fullPath, _otype, _btype, _kind, 1, nullptr, _yaxis, nullptr) {
20 throw_(
"Unsupported MonitorElement kind");
41 for (
unsigned iME(0); iME <
mes_.size(); iME++) {
46 for (
int iBin(1); iBin <=
me->getNbinsX(); iBin++)
49 for (
int iBin(1); iBin <=
me->getNbinsX() / 2; iBin++) {
54 for (
int iBin(1); iBin <=
me->getNbinsX(); iBin++)
57 for (
int iBin(1); iBin <=
me->getNbinsX(); iBin++)
62 for (
unsigned iME(0); iME <
mes_.size(); iME++) {
70 dccid = iME <=
kEEmHigh ? iME + 1 : iME + 37;
76 ss <<
"TCC" <<
inner.first <<
" TT1";
77 me->setBinLabel(1,
ss.str());
79 ss <<
"TCC" <<
inner.second <<
" TT1";
82 ss <<
"TCC" <<
outer.first <<
" TT1";
85 ss <<
"TCC" <<
outer.second <<
" TT1";
103 me->setBinLabel(iBin,
ss.str());
122 fill_(iME, xbin, _wy, _w);
124 fill_(iME, xbin, _wy);
139 fill_(iME, xbin, _wy, _w);
141 fill_(iME, xbin, _wy);
156 fill_(iME, xbin, _wy, _w);
158 fill_(iME, xbin, _wy);
174 int nbinsY(
me->getTH1()->GetNbinsY());
175 for (
int iY(1); iY <=
nbinsY; iY++)
194 int nbinsY(
me->getTH1()->GetNbinsY());
195 for (
int iY(1); iY <=
nbinsY; iY++)
214 int nbinsY(
me->getTH1()->GetNbinsY());
215 for (
int iY(1); iY <=
nbinsY; iY++)
285 int nbinsY(
me->getTH1()->GetNbinsY());
286 for (
int iY(1); iY <=
nbinsY; iY++)
287 me->setBinError(xbin, iY, _error);
289 me->setBinError(xbin, _error);
305 int nbinsY(
me->getTH1()->GetNbinsY());
306 for (
int iY(1); iY <=
nbinsY; iY++)
307 me->setBinError(xbin, iY, _error);
309 me->setBinError(xbin, _error);
325 int nbinsY(
me->getTH1()->GetNbinsY());
326 for (
int iY(1); iY <=
nbinsY; iY++)
327 me->setBinError(xbin, iY, _error);
329 me->setBinError(xbin, _error);
345 me->setBinError(xbin, _ybin, _error);
361 me->setBinError(xbin, _ybin, _error);
377 me->setBinError(xbin, _ybin, _error);
395 int nbinsX(
me->getTH1()->GetNbinsX());
396 int nbinsY(
me->getTH1()->GetNbinsY());
397 for (
int iY(1); iY <=
nbinsY; iY++)
398 me->setBinEntries((
nbinsX + 2) * iY + xbin, _entries);
400 me->setBinEntries(xbin, _entries);
418 int nbinsX(
me->getTH1()->GetNbinsX());
419 int nbinsY(
me->getTH1()->GetNbinsY());
420 for (
int iY(1); iY <=
nbinsY; iY++)
421 me->setBinEntries((
nbinsX + 2) * iY + xbin, _entries);
423 me->setBinEntries(xbin, _entries);
441 int nbinsX(
me->getTH1()->GetNbinsX());
442 int nbinsY(
me->getTH1()->GetNbinsY());
443 for (
int iY(1); iY <=
nbinsY; iY++)
444 me->setBinEntries((
nbinsX + 2) * iY + xbin, _entries);
446 me->setBinEntries(xbin, _entries);
462 int nbinsX(
me->getTH1()->GetNbinsX());
463 me->setBinEntries((
nbinsX + 2) * _ybin + xbin, _entries);
482 int nbinsX(
me->getTH1()->GetNbinsX());
483 me->setBinEntries((
nbinsX + 2) * _ybin + xbin, _entries);
499 int nbinsX(
me->getTH1()->GetNbinsX());
500 me->setBinEntries((
nbinsX + 2) * _ybin + xbin, _entries);
514 int nbinsX(
me->getTH1()->GetNbinsX());
516 return me->getBinContent((
nbinsX + 2) * _ybin + xbin);
532 int nbinsX(
me->getTH1()->GetNbinsX());
534 return me->getBinContent((
nbinsX + 2) * _ybin + xbin);
548 int nbinsX(
me->getTH1()->GetNbinsX());
550 return me->getBinContent((
nbinsX + 2) * _ybin + xbin);
564 int nbinsX(
me->getTH1()->GetNbinsX());
566 return me->getBinError((
nbinsX + 2) * _ybin + xbin);
582 int nbinsX(
me->getTH1()->GetNbinsX());
584 return me->getBinError((
nbinsX + 2) * _ybin + xbin);
598 int nbinsX(
me->getTH1()->GetNbinsX());
600 return me->getBinError((
nbinsX + 2) * _ybin + xbin);
616 int nbinsX(
me->getTH1()->GetNbinsX());
618 return me->getBinEntries((
nbinsX + 2) * _ybin + xbin);
636 int nbinsX(
me->getTH1()->GetNbinsX());
638 return me->getBinEntries((
nbinsX + 2) * _ybin + xbin);
654 int nbinsX(
me->getTH1()->GetNbinsX());
656 return me->getBinEntries((
nbinsX + 2) * _ybin + xbin);
711 int nbinsX(
me->getTH1()->GetNbinsX());
712 return xbin + (
nbinsX + 2) *
me->getTH1()->GetYaxis()->FindBin(_y);
728 int nbinsX(
me->getTH1()->GetNbinsX());
729 return xbin + (
nbinsX + 2) *
me->getTH1()->GetYaxis()->FindBin(_y);
745 int nbinsX(
me->getTH1()->GetNbinsX());
746 return xbin + (
nbinsX + 2) *
me->getTH1()->GetYaxis()->FindBin(_y);
758 for (
unsigned iME(0); iME < nME; iME++) {
761 int nbinsX(
me->getTH1()->GetNbinsX());
762 int nbinsY(
me->getTH1()->GetNbinsY());
767 me->setBinError(
bin, _err);
769 me->setBinEntries(
bin, _entries);
MonitorElement::Kind kind_
double getBinError(EcalDQMSetupObjects const, DetId const &, int=0) const override
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
unsigned getNObjects(ObjectType)
void throw_(std::string const &_message) const
std::pair< unsigned, unsigned > outerTCCs(unsigned)
int findBin(EcalDQMSetupObjects const, DetId const &) const
ObjectType getObject(ObjectType, unsigned)
void setBinContent(EcalDQMSetupObjects const, DetId const &, double) override
void setBinEntries(EcalDQMSetupObjects const, DetId const &, double) override
void fill(EcalDQMSetupObjects const, DetId const &, double=1., double=1., double=0.) override
MESetDet1D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)
bool is2D(HitType hitType)
MESet * clone(std::string const &="") const override
void setBinError(EcalDQMSetupObjects const, DetId const &, double) override
EcalElectronicsMapping const * electronicsMap
void book(DQMStore::IBooker &, EcalElectronicsMapping const *) override
virtual void checkME_(unsigned _iME) const
virtual void fill_(unsigned, int, double)
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t ix(uint32_t id)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
double getBinEntries(EcalDQMSetupObjects const, DetId const &, int=0) const override
std::pair< unsigned, unsigned > innerTCCs(unsigned)
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t iy(uint32_t id)
binning::ObjectType otype_
std::string channelName(EcalElectronicsMapping const *, uint32_t, BinningType _btype=kDCC)
void book(DQMStore::IBooker &, EcalElectronicsMapping const *) override
void reset(EcalElectronicsMapping const *, double=0., double=0., double=0.) override
binning::BinningType btype_
double getBinContent(EcalDQMSetupObjects const, DetId const &, int=0) const override
int findBin1D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
std::vector< MonitorElement * > mes_