12 MESet(_fullPath, _otype, _btype, _kind),
13 logicalDimensions_(_logicalDimensions),
14 xaxis_(_xaxis ? new
binning::AxisSpecs(*_xaxis) : 0),
15 yaxis_(_yaxis ? new
binning::AxisSpecs(*_yaxis) : 0),
16 zaxis_(_zaxis ? new
binning::AxisSpecs(*_zaxis) : 0)
19 throw_(
"Need axis specifications");
24 logicalDimensions_(_orig.logicalDimensions_),
25 xaxis_(_orig.xaxis_ ? new
binning::AxisSpecs(*_orig.xaxis_) : 0),
26 yaxis_(_orig.yaxis_ ? new
binning::AxisSpecs(*_orig.yaxis_) : 0),
27 zaxis_(_orig.zaxis_ ? new
binning::AxisSpecs(*_orig.zaxis_) : 0)
48 MESetEcal const* pRhs(dynamic_cast<MESetEcal const*>(&_rhs));
62 if(_path !=
"")
path_ = _path;
77 for(
unsigned iME(0); iME < mePaths.size(); iME++){
78 string&
path(mePaths[iME]);
79 if(path.find(
'%') != string::npos)
80 throw_(
"book() called with incompletely formed path [" + path +
"]");
109 if(isMap && yaxis.
nbins == 0){
123 if(yaxis.
high - yaxis.
low < 1.e-10){
128 if(zaxis.
high - zaxis.
low < 1.e-10){
134 size_t slashPos(path.find_last_of(
'/'));
135 string name(path.substr(slashPos + 1));
171 for(
int iSpec(0); iSpec < 2; iSpec++){
172 if(!specs[iSpec]->
edges){
173 specs[iSpec]->
edges =
new float[specs[iSpec]->
nbins + 1];
175 double low(specs[iSpec]->low), high(specs[iSpec]->high);
176 for(
int i(0);
i < nbins + 1;
i++)
177 specs[iSpec]->
edges[
i] = low + (high - low) / nbins *
i;
193 throw_(
"Variable bin size for 2D profile not implemented");
194 me = _ibooker.
bookProfile2D(
name,
name, xaxis.
nbins, xaxis.
low, xaxis.
high, yaxis.
nbins, yaxis.
low, yaxis.
high, zaxis.
low, zaxis.
high,
"");
203 throw_(
"ME could not be booked");
211 for(
int iBin(1); iBin <= xaxis.
nbins; ++iBin)
215 for(
int iBin(1); iBin <= yaxis.
nbins; ++iBin)
219 for(
int iBin(1); iBin <= zaxis.
nbins; ++iBin)
226 me->
getTH1()->SetBit(uint32_t(actualObject + 1) << 20);
227 if(isMap) me->
getTH1()->SetBit(0x1 << 19);
244 if(mePaths.size() == 0){
245 if(_failedPath) _failedPath->clear();
249 for(
unsigned iME(0); iME < mePaths.size(); iME++){
251 if(path.find(
'%') != std::string::npos)
252 throw_(
"retrieve() called with incompletely formed path [" + path +
"]");
255 if(me)
mes_.push_back(me);
258 if(_failedPath) *_failedPath =
path;
275 fill_(iME, _x, _wy, _w);
286 fill_(iME, _x, _wy, _w);
297 fill_(iME, _x, _wy, _w);
305 if(
mes_.size() != 1)
return;
307 fill_(0, _x, _wy, _w);
318 mes_[iME]->setBinContent(_bin, _content);
329 mes_[iME]->setBinContent(_bin, _content);
340 mes_[iME]->setBinContent(_bin, _content);
351 mes_[iME]->setBinError(_bin, _error);
362 mes_[iME]->setBinError(_bin, _error);
373 mes_[iME]->setBinError(_bin, _error);
385 mes_[iME]->setBinEntries(_bin, _entries);
397 mes_[iME]->setBinEntries(_bin, _entries);
409 mes_[iME]->setBinEntries(_bin, _entries);
420 return mes_[iME]->getBinContent(_bin);
431 return mes_[iME]->getBinContent(_bin);
442 return mes_[iME]->getBinContent(_bin);
453 return mes_[iME]->getBinError(_bin);
464 return mes_[iME]->getBinError(_bin);
475 return mes_[iME]->getBinError(_bin);
487 return mes_[iME]->getBinEntries(_bin);
499 return mes_[iME]->getBinEntries(_bin);
511 return mes_[iME]->getBinEntries(_bin);
522 return mes_[iME]->getTH1()->FindBin(_x, _y);
533 return mes_[iME]->getTH1()->FindBin(_x, _y);
544 return mes_[iME]->getTH1()->FindBin(_x, _y);
553 std::vector<std::string>
558 vector<string>
paths(0);
562 for(
unsigned iME(0); iME < nME; iME++) {
566 map<string, string> replacements;
571 replacements[
"subdet"] =
"EcalBarrel";
572 replacements[
"prefix"] =
"EB";
573 replacements[
"suffix"] =
"";
574 replacements[
"subdetshort"] =
"EB";
575 replacements[
"subdetshortsig"] =
"EB";
576 replacements[
"supercrystal"] =
"trigger tower";
580 replacements[
"subdet"] =
"EcalEndcap";
581 replacements[
"prefix"] =
"EE";
582 replacements[
"subdetshort"] =
"EE";
583 replacements[
"subdetshortsig"] =
"EE";
584 replacements[
"supercrystal"] =
"super crystal";
587 replacements[
"subdet"] =
"EcalEndcap";
588 replacements[
"prefix"] =
"EE";
589 replacements[
"suffix"] =
" EE -";
590 replacements[
"subdetshort"] =
"EE";
591 replacements[
"subdetshortsig"] =
"EEM";
592 replacements[
"supercrystal"] =
"super crystal";
595 replacements[
"subdet"] =
"EcalEndcap";
596 replacements[
"prefix"] =
"EE";
597 replacements[
"suffix"] =
" EE +";
598 replacements[
"subdetshort"] =
"EE";
599 replacements[
"subdetshortsig"] =
"EEP";
600 replacements[
"supercrystal"] =
"super crystal";
603 if(iME <= kEEmHigh || iME >=
kEEpLow){
604 replacements[
"subdet"] =
"EcalEndcap";
605 replacements[
"prefix"] =
"EE";
606 replacements[
"supercrystal"] =
"super crystal";
609 replacements[
"subdet"] =
"EcalBarrel";
610 replacements[
"prefix"] =
"EB";
611 replacements[
"supercrystal"] =
"trigger tower";
616 replacements[
"subdet"] =
"EcalBarrel";
617 replacements[
"prefix"] =
"EB";
619 replacements[
"supercrystal"] =
"trigger tower";
622 replacements[
"subdet"] =
"EcalEndcap";
623 replacements[
"prefix"] =
"EE";
625 replacements[
"supercrystal"] =
"super crystal";
631 if(iDCC <= kEEmHigh || iDCC >=
kEEpLow){
632 replacements[
"subdet"] =
"EcalEndcap";
633 replacements[
"prefix"] =
"EE";
636 replacements[
"subdet"] =
"EcalBarrel";
637 replacements[
"prefix"] =
"EB";
644 unsigned iDCC(
memDCCId(iME + 4) - 1);
645 replacements[
"subdet"] =
"EcalBarrel";
646 replacements[
"prefix"] =
"EB";
652 unsigned iDCC(
memDCCId(iME < 4 ? iME : iME + 36) - 1);
653 replacements[
"subdet"] =
"EcalEndcap";
654 replacements[
"prefix"] =
"EE";
661 paths.push_back(
formPath(replacements));
MonitorElement::Kind kind_
double getBinError(DetId const &, int) const override
MESet & operator=(MESet const &) override
virtual void clear() const
MonitorElement * bookProfile(Args &&...args)
virtual void checkME_(unsigned _iME) const
MonitorElement * get(const std::string &path)
void fill(DetId const &, double=1., double=1., double=1.) override
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
unsigned getNObjects(ObjectType)
bool retrieve(DQMStore::IGetter &, std::string *=0) const override
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
double getBinEntries(DetId const &, int) const override
ObjectType getObject(ObjectType, unsigned)
MESet * clone(std::string const &="") const override
AxisSpecs getBinning(ObjectType, BinningType, bool, int, unsigned)
std::vector< MonitorElement * > mes_
bool isVariableBinning() const override
void setBinEntries(DetId const &, int, double) override
double getBinContent(DetId const &, int) const override
void throw_(std::string const &_message) const
MonitorElement * bookProfile2D(Args &&...args)
MonitorElement * book1D(Args &&...args)
std::string channelName(uint32_t, BinningType _btype=kDCC)
virtual void fill_(unsigned, int, double)
std::string formPath(PathReplacements const &) const
unsigned memDCCId(unsigned)
void setCurrentFolder(const std::string &fullpath)
MESetEcal(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0)
MonitorElement * book2D(Args &&...args)
unsigned findPlotIndex(ObjectType, DetId const &)
virtual int findBin(DetId const &, double, double=0.) const
binning::AxisSpecs const * zaxis_
void setBinContent(DetId const &, int, double) override
binning::ObjectType otype_
binning::AxisSpecs const * xaxis_
std::vector< std::string > generatePaths() const
MonitorElement * bookFloat(Args &&...args)
virtual MESet & operator=(MESet const &)
void setBinError(DetId const &, int, double) override
void setLumiFlag(void)
this ME is meant to be stored for each luminosity section
binning::AxisSpecs const * yaxis_
binning::BinningType btype_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void book(DQMStore::IBooker &) override
unsigned logicalDimensions_