|
|
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++) {
125 std::vector<DetId> ids(
127 unsigned nId(ids.size());
128 for (
unsigned iId(0); iId < nId; iId++) {
164 unsigned nId(ids.size());
165 for (
unsigned iId(0); iId < nId; iId++) {
214 unsigned nId(ids.size());
215 for (
unsigned iId(0); iId < nId; iId++) {
217 mes_[iME]->setBinError(
bin, _error);
221 mes_[iME]->setBinError(
bin, _error);
235 mes_[iME]->setBinError(
bin, _error);
248 mes_[iME]->setBinError(
bin, _error);
266 unsigned nId(ids.size());
267 for (
unsigned iId(0); iId < nId; iId++) {
269 mes_[iME]->setBinEntries(
bin, _entries);
273 mes_[iME]->setBinEntries(
bin, _entries);
289 mes_[iME]->setBinEntries(
bin, _entries);
302 mes_[iME]->setBinEntries(
bin, _entries);
323 return mes_[iME]->getBinContent(
bin);
337 return mes_[iME]->getBinContent(
bin);
351 return mes_[iME]->getBinContent(
bin);
372 return mes_[iME]->getBinError(
bin);
386 return mes_[iME]->getBinError(
bin);
400 return mes_[iME]->getBinError(
bin);
504 for (
unsigned iME(0); iME < nME; iME++) {
509 int nbinsX(
me->getTH1()->GetNbinsX());
510 int nbinsY(
me->getTH1()->GetNbinsY());
511 for (
int ix(1); ix <=
nbinsX; ix++) {
512 for (
int iy(1); iy <=
nbinsY; iy++) {
517 me->setBinError(
bin, _err);
519 me->setBinEntries(
bin, _entries);
528 if (
me->getBinEntries(_bin) < 0.) {
529 me->setBinContent(_bin, 0.);
530 me->setBinEntries(_bin, 0.);
531 me->getTProfile2D()->SetEntries(
me->getTProfile2D()->GetEntries() + 1.);
541 if (
me->getBinEntries(_bin) < 0.) {
542 me->setBinContent(_bin, 0.);
543 me->setBinEntries(_bin, 0.);
544 me->getTProfile2D()->SetEntries(
me->getTProfile2D()->GetEntries() + 1.);
554 int bin(
me->getTProfile2D()->FindBin(_x, _wy));
555 if (
me->getBinEntries(
bin) < 0.) {
556 me->setBinContent(
bin, 0.);
557 me->setBinEntries(
bin, 0.);
558 me->getTProfile2D()->SetEntries(
me->getTProfile2D()->GetEntries() + 1.);
std::string channelName(EcalElectronicsMapping const *, uint32_t, BinningType _btype=kDCC)
void throw_(std::string const &_message) const
virtual void fill_(unsigned, int, double)
void reset(EcalElectronicsMapping const *, double=0., double=0., double=0.) override
bool isEndcapTTId(DetId const &)
void fill(EcalDQMSetupObjects const, DetId const &, double=1., double=0., double=0.) override
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
void setBinError(EcalDQMSetupObjects const, DetId const &, double) override
int towerId() const
get the tower id
unsigned getNObjects(ObjectType)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
double getBinEntries(EcalDQMSetupObjects const, DetId const &, int=0) const override
double getBinContent(EcalDQMSetupObjects const, DetId const &, int=0) const 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 [...
std::vector< DetId > pseudoStripConstituents(int tccId, int tt, int pseudostrip) const
Get the constituent detids for this dccId.
void book(DQMStore::IBooker &, EcalElectronicsMapping const *) override
binning::BinningType btype_
void fill_(unsigned, int, double) override
int findBin(EcalDQMSetupObjects const, DetId const &) const
const EcalTrigTowerConstituentsMap * trigtowerMap
void book(DQMStore::IBooker &, EcalElectronicsMapping const *) override
std::vector< MonitorElement * > mes_
const EcalElectronicsMapping * electronicsMap
std::vector< DetId > constituentsOf(const EcalTrigTowerDetId &id) const
Get the constituent detids for this tower id.
virtual void checkME_(unsigned _iME) const
void setBinContent(EcalDQMSetupObjects const, DetId const &, double) override
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
double getBinError(EcalDQMSetupObjects const, DetId const &, int=0) const override
int stripId() const
get the tower id
virtual void resetAll(double=0., double=0., double=0.)
MonitorElement::Kind kind_
MESet * clone(std::string const &="") const override
bool isValidIdBin(EcalElectronicsMapping const *, ObjectType, BinningType, unsigned, int)
void setBinEntries(EcalDQMSetupObjects const, DetId const &, double) override
MESetDet2D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)