|
|
Go to the documentation of this file.
11 :
MESetEcal(_fullPath, _otype, _btype, _kind, 2, nullptr, nullptr, _zaxis) {
17 throw_(
"Unsupported MonitorElement kind");
38 for (
unsigned iME(0); iME <
mes_.size(); iME++) {
43 for (
int iBin(1); iBin <=
me->getNbinsX(); ++iBin)
47 for (
int iBin(1); iBin <=
me->getNbinsX(); ++iBin)
51 for (
int iBin(1); iBin <=
me->getNbinsX() / 2; ++iBin) {
58 for (
unsigned iME(0); iME <
mes_.size(); iME++) {
63 me->setBinLabel(1,
"EE", 2);
64 me->setBinLabel(6,
"EE", 2);
65 me->setBinLabel(3,
"EB", 2);
66 me->setBinLabel(5,
"EB", 2);
95 unsigned nId(ids.size());
96 for (
unsigned iId(0); iId < nId; iId++) {
124 std::vector<DetId> ids(
126 unsigned nId(ids.size());
127 for (
unsigned iId(0); iId < nId; iId++) {
163 unsigned nId(ids.size());
164 for (
unsigned iId(0); iId < nId; iId++) {
213 unsigned nId(ids.size());
214 for (
unsigned iId(0); iId < nId; iId++) {
216 mes_[iME]->setBinError(
bin, _error);
220 mes_[iME]->setBinError(
bin, _error);
234 mes_[iME]->setBinError(
bin, _error);
247 mes_[iME]->setBinError(
bin, _error);
265 unsigned nId(ids.size());
266 for (
unsigned iId(0); iId < nId; iId++) {
268 mes_[iME]->setBinEntries(
bin, _entries);
272 mes_[iME]->setBinEntries(
bin, _entries);
288 mes_[iME]->setBinEntries(
bin, _entries);
301 mes_[iME]->setBinEntries(
bin, _entries);
322 return mes_[iME]->getBinContent(
bin);
336 return mes_[iME]->getBinContent(
bin);
350 return mes_[iME]->getBinContent(
bin);
371 return mes_[iME]->getBinError(
bin);
385 return mes_[iME]->getBinError(
bin);
399 return mes_[iME]->getBinError(
bin);
500 for (
unsigned iME(0); iME < nME; iME++) {
505 int nbinsX(
me->getTH1()->GetNbinsX());
506 int nbinsY(
me->getTH1()->GetNbinsY());
507 for (
int ix(1); ix <=
nbinsX; ix++) {
508 for (
int iy(1); iy <=
nbinsY; iy++) {
513 me->setBinError(
bin, _err);
515 me->setBinEntries(
bin, _entries);
524 if (
me->getBinEntries(_bin) < 0.) {
525 me->setBinContent(_bin, 0.);
526 me->setBinEntries(_bin, 0.);
527 me->getTProfile2D()->SetEntries(
me->getTProfile2D()->GetEntries() + 1.);
537 if (
me->getBinEntries(_bin) < 0.) {
538 me->setBinContent(_bin, 0.);
539 me->setBinEntries(_bin, 0.);
540 me->getTProfile2D()->SetEntries(
me->getTProfile2D()->GetEntries() + 1.);
550 int bin(
me->getTProfile2D()->FindBin(_x, _wy));
551 if (
me->getBinEntries(
bin) < 0.) {
552 me->setBinContent(
bin, 0.);
553 me->setBinEntries(
bin, 0.);
554 me->getTProfile2D()->SetEntries(
me->getTProfile2D()->GetEntries() + 1.);
void throw_(std::string const &_message) const
virtual void fill_(unsigned, int, double)
void reset(double=0., double=0., double=0.) override
void setBinEntries(DetId const &, double) override
bool isEndcapTTId(DetId const &)
bool isValidIdBin(ObjectType, BinningType, unsigned, int)
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
int towerId() const
get the tower id
unsigned getNObjects(ObjectType)
void book(DQMStore::IBooker &) override
ObjectType getObject(ObjectType, unsigned)
binning::ObjectType otype_
unsigned memDCCId(unsigned)
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
int findBin(DetId const &) const
double getBinContent(DetId const &, int=0) const override
void book(DQMStore::IBooker &) override
binning::BinningType btype_
void fill_(unsigned, int, double) override
unsigned findPlotIndex(ObjectType, DetId const &)
double getBinEntries(DetId const &, int=0) const override
const EcalTrigTowerConstituentsMap * getTrigTowerMap()
std::vector< MonitorElement * > mes_
void fill(DetId const &, double=1., double=0., double=0.) override
std::string channelName(uint32_t, BinningType _btype=kDCC)
virtual void checkME_(unsigned _iME) const
double getBinError(DetId const &, int=0) const override
int findBin2D(ObjectType, BinningType, DetId const &)
int stripId() const
get the tower id
virtual void resetAll(double=0., double=0., double=0.)
const EcalElectronicsMapping * getElectronicsMap()
MonitorElement::Kind kind_
void setBinContent(DetId const &, double) override
MESet * clone(std::string const &="") const override
void setBinError(DetId const &, double) override
MESetDet2D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)