11 :
MESetEcal(_fullPath, _otype, _btype, _kind, 1, nullptr, _yaxis) {
17 throw_(
"Unsupported MonitorElement kind");
25 throw_(
"Unsupported binning");
67 unsigned nIds(ids.size());
69 for (
unsigned iId(0); iId < nIds; iId++)
72 for (
unsigned iId(0); iId < nIds; iId++)
79 if (ieta < 18 && ieta > 0)
99 mes_[iME]->Fill(_x, _w);
121 mes_[iME]->Fill(_x, _w);
136 unsigned nIds(ids.size());
139 for (
unsigned iId(0); iId < nIds; iId++) {
146 for (
unsigned iId(0); iId < nIds; iId++) {
173 if (ieta < 18 && ieta > 0)
181 int bin(
me->getTH1()->FindBin(
x));
197 unsigned nIds(ids.size());
200 for (
unsigned iId(0); iId < nIds; iId++) {
204 me->setBinError(
bin, _error);
207 for (
unsigned iId(0); iId < nIds; iId++) {
211 me->setBinError(
bin, _error);
234 if (ieta < 18 && ieta > 0)
242 int bin(
me->getTH1()->FindBin(
x));
243 me->setBinError(
bin, _error);
258 unsigned nIds(ids.size());
261 for (
unsigned iId(0); iId < nIds; iId++) {
265 me->setBinEntries(
bin, _entries);
268 for (
unsigned iId(0); iId < nIds; iId++) {
272 me->setBinEntries(
bin, _entries);
295 if (ieta < 18 && ieta > 0)
303 int bin(
me->getTH1()->FindBin(
x));
304 me->setBinEntries(
bin, _entries);
321 return me->getBinContent(
bin);
324 return me->getBinContent(
bin);
346 if (ieta < 18 && ieta > 0)
354 int bin(
me->getTH1()->FindBin(
x));
355 return me->getBinContent(
bin);
372 return me->getBinError(
bin);
375 return me->getBinError(
bin);
397 if (ieta < 18 && ieta > 0)
405 int bin(
me->getTH1()->FindBin(
x));
406 return me->getBinError(
bin);
423 return me->getBinEntries(
bin);
426 return me->getBinEntries(
bin);
448 if (ieta < 18 && ieta > 0)
456 int bin(
me->getTH1()->FindBin(
x));
457 return me->getBinEntries(
bin);
MonitorElement::Kind kind_
int ieta() const
get the tower ieta
std::vector< DetId > constituentsOf(const EcalTrigTowerDetId &id) const
Get the constituent detids for this tower id.
void throw_(std::string const &_message) const
double getBinContent(EcalDQMSetupObjects const, DetId const &, int=0) const override
MESet * clone(std::string const &="") const override
void fill(EcalDQMSetupObjects const, DetId const &, double=1., double=0., double=0.) override
void setBinContent(EcalDQMSetupObjects const, DetId const &, double) override
bool isEndcapTTId(DetId const &)
~MESetProjection() override
double getBinEntries(EcalDQMSetupObjects const, DetId const &, int=0) const override
MESetProjection(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)
static const float crystalUnitToEta
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
EcalElectronicsMapping const * electronicsMap
virtual void checkME_(unsigned _iME) const
virtual void fill_(unsigned, int, double)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
void setBinEntries(EcalDQMSetupObjects const, DetId const &, double) override
EcalTrigTowerConstituentsMap const * trigtowerMap
CaloGeometry const * geometry
binning::ObjectType otype_
double eta(EBDetId const &, CaloGeometry const *)
void setBinError(EcalDQMSetupObjects const, DetId const &, double) override
binning::BinningType btype_
double getBinError(EcalDQMSetupObjects const, DetId const &, int=0) const override
double phi(EBDetId const &)
std::vector< MonitorElement * > mes_