8 MESetEcal(_fullPath, _otype, _btype, _kind, 2, 0, 0, _zaxis)
15 throw_(
"Unsupported MonitorElement kind");
32 if(_path !=
"")
path_ = _path;
44 for(
unsigned iME(0); iME <
mes_.size(); iME++){
49 for(
int iBin(1); iBin <= me->
getNbinsX(); ++iBin)
53 for(
int iBin(1); iBin <= me->
getNbinsX(); ++iBin)
57 for(
int iBin(1); iBin <= me->
getNbinsX() / 2; ++iBin){
65 for(
unsigned iME(0); iME <
mes_.size(); iME++){
98 unsigned nId(ids.size());
99 for(
unsigned iId(0); iId < nId; iId++){
152 unsigned nId(ids.size());
153 for(
unsigned iId(0); iId < nId; iId++){
155 mes_[iME]->setBinContent(bin, _content);
160 mes_[iME]->setBinContent(bin, _content);
175 mes_[iME]->setBinContent(bin, _content);
189 mes_[iME]->setBinContent(bin, _content);
206 unsigned nId(ids.size());
207 for(
unsigned iId(0); iId < nId; iId++){
209 mes_[iME]->setBinError(bin, _error);
214 mes_[iME]->setBinError(bin, _error);
229 mes_[iME]->setBinError(bin, _error);
243 mes_[iME]->setBinError(bin, _error);
261 unsigned nId(ids.size());
262 for(
unsigned iId(0); iId < nId; iId++){
264 mes_[iME]->setBinEntries(bin, _entries);
269 mes_[iME]->setBinEntries(bin, _entries);
285 mes_[iME]->setBinEntries(bin, _entries);
299 mes_[iME]->setBinEntries(bin, _entries);
322 return mes_[iME]->getBinContent(bin);
337 return mes_[iME]->getBinContent(bin);
352 return mes_[iME]->getBinContent(bin);
375 return mes_[iME]->getBinError(bin);
390 return mes_[iME]->getBinError(bin);
405 return mes_[iME]->getBinError(bin);
430 if(entries < 0.)
return 0.;
448 if(entries < 0.)
return 0.;
465 if(entries < 0.)
return 0.;
507 for(
unsigned iME(0); iME < nME; iME++) {
512 int nbinsX(me->
getTH1()->GetNbinsX());
513 int nbinsY(me->
getTH1()->GetNbinsY());
514 for(
int ix(1); ix <= nbinsX; ix++){
515 for(
int iy(1); iy <= nbinsY; iy++){
516 int bin((nbinsX + 2) * iy + ix);
539 if(me->getBinEntries(_bin) < 0.){
541 me->setBinEntries(_bin, 0.);
542 me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
554 if(me->getBinEntries(_bin) < 0.){
556 me->setBinEntries(_bin, 0.);
557 me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
569 int bin(me->getTProfile2D()->FindBin(_x, _wy));
570 if(me->getBinEntries(
bin) < 0.){
571 me->setBinContent(
bin, 0.);
572 me->setBinEntries(
bin, 0.);
573 me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
double getBinEntries(DetId const &, int=0) const override
MonitorElement::Kind kind_
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual void checkME_(unsigned _iME) const
bool isValidIdBin(ObjectType, BinningType, unsigned, int)
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
unsigned getNObjects(ObjectType)
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)
void reset(double=0., double=0., double=0.) override
MESet * clone(std::string const &="") const override
void setBinContent(DetId const &, double) override
void setBinError(DetId const &, double) override
ObjectType getObject(ObjectType, unsigned)
void book(DQMStore::IBooker &) override
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
void fill(DetId const &, double=1., double=0., double=0.) override
void throw_(std::string const &_message) const
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
void fill_(unsigned, int, double) override
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
double getBinError(DetId const &, int=0) const override
std::string channelName(uint32_t, BinningType _btype=kDCC)
virtual void fill_(unsigned, int, double)
unsigned memDCCId(unsigned)
double getBinContent(DetId const &, int=0) const override
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
virtual void resetAll(double=0., double=0., double=0.)
void softReset() override
int getNbinsX(void) const
get # of bins in X-axis
int findBin(DetId const &) const
binning::ObjectType otype_
void setBinEntries(DetId const &, double) override
MESetDet2D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
binning::BinningType btype_
void setBinEntries(int bin, double nentries)
set # of bin entries (to be used for profiles)
void book(DQMStore::IBooker &) override