CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions
ecaldqm::MESetDet2D Class Reference

#include <MESetDet2D.h>

Inheritance diagram for ecaldqm::MESetDet2D:
ecaldqm::MESetEcal ecaldqm::MESet

Public Member Functions

void book (DQMStore::IBooker &, EcalElectronicsMapping const *) override
 
MESetclone (std::string const &="") const override
 
void fill (EcalDQMSetupObjects const, DetId const &, double=1., double=0., double=0.) override
 
void fill (EcalDQMSetupObjects const, EcalElectronicsId const &, double=1., double=0., double=0.) override
 
void fill (EcalDQMSetupObjects const, int, double=1., double=1., double=1.) override
 
int findBin (EcalDQMSetupObjects const, DetId const &) const
 
int findBin (EcalDQMSetupObjects const, EcalElectronicsId const &) const
 
double getBinContent (EcalDQMSetupObjects const, DetId const &, int=0) const override
 
double getBinContent (EcalDQMSetupObjects const, EcalElectronicsId const &, int=0) const override
 
double getBinContent (EcalDQMSetupObjects const, int, int=0) const override
 
double getBinEntries (EcalDQMSetupObjects const, DetId const &, int=0) const override
 
double getBinEntries (EcalDQMSetupObjects const, EcalElectronicsId const &, int=0) const override
 
double getBinEntries (EcalDQMSetupObjects const, int, int) const override
 
double getBinError (EcalDQMSetupObjects const, DetId const &, int=0) const override
 
double getBinError (EcalDQMSetupObjects const, EcalElectronicsId const &, int=0) const override
 
double getBinError (EcalDQMSetupObjects const, int, int=0) const override
 
 MESetDet2D (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)
 
 MESetDet2D (MESetDet2D const &)
 
void reset (EcalElectronicsMapping const *, double=0., double=0., double=0.) override
 
void setBinContent (EcalDQMSetupObjects const, DetId const &, double) override
 
void setBinContent (EcalDQMSetupObjects const, EcalElectronicsId const &, double) override
 
void setBinContent (EcalDQMSetupObjects const, int, double) override
 
void setBinEntries (EcalDQMSetupObjects const, DetId const &, double) override
 
void setBinEntries (EcalDQMSetupObjects const, EcalElectronicsId const &, double) override
 
void setBinEntries (EcalDQMSetupObjects const, int, double) override
 
void setBinError (EcalDQMSetupObjects const, DetId const &, double) override
 
void setBinError (EcalDQMSetupObjects const, EcalElectronicsId const &, double) override
 
void setBinError (EcalDQMSetupObjects const, int, double) override
 
 ~MESetDet2D () override
 
- Public Member Functions inherited from ecaldqm::MESetEcal
void book (DQMStore::IBooker &, EcalElectronicsMapping const *) override
 
MESetclone (std::string const &="") const override
 
void fill (EcalDQMSetupObjects const, DetId const &, double=1., double=1., double=1.) override
 
void fill (EcalDQMSetupObjects const, EcalElectronicsId const &, double=1., double=1., double=1.) override
 
void fill (EcalDQMSetupObjects const, int, double=1., double=1., double=1.) override
 
void fill (EcalDQMSetupObjects const, double, double=1., double=1.) override
 
virtual int findBin (EcalDQMSetupObjects const, DetId const &, double, double=0.) const
 
virtual int findBin (EcalDQMSetupObjects const, EcalElectronicsId const &, double, double=0.) const
 
virtual int findBin (EcalDQMSetupObjects const, int, double, double=0.) const
 
std::vector< std::string > generatePaths (EcalElectronicsMapping const *) const
 
double getBinContent (EcalDQMSetupObjects const, DetId const &, int) const override
 
double getBinContent (EcalDQMSetupObjects const, EcalElectronicsId const &, int) const override
 
double getBinContent (EcalDQMSetupObjects const, int, int) const override
 
double getBinEntries (EcalDQMSetupObjects const, DetId const &, int) const override
 
double getBinEntries (EcalDQMSetupObjects const, EcalElectronicsId const &, int) const override
 
double getBinEntries (EcalDQMSetupObjects const, int, int) const override
 
double getBinError (EcalDQMSetupObjects const, DetId const &, int) const override
 
double getBinError (EcalDQMSetupObjects const, EcalElectronicsId const &, int) const override
 
double getBinError (EcalDQMSetupObjects const, int, int) const override
 
bool isVariableBinning () const override
 
 MESetEcal (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr)
 
 MESetEcal (MESetEcal const &)
 
MESetoperator= (MESet const &) override
 
bool retrieve (EcalElectronicsMapping const *, DQMStore::IGetter &, std::string *=nullptr) const override
 
void setBinContent (EcalDQMSetupObjects const, DetId const &, int, double) override
 
void setBinContent (EcalDQMSetupObjects const, EcalElectronicsId const &, int, double) override
 
void setBinContent (EcalDQMSetupObjects const, int, int, double) override
 
void setBinEntries (EcalDQMSetupObjects const, DetId const &, int, double) override
 
void setBinEntries (EcalDQMSetupObjects const, EcalElectronicsId const &, int, double) override
 
void setBinEntries (EcalDQMSetupObjects const, int, int, double) override
 
void setBinError (EcalDQMSetupObjects const, DetId const &, int, double) override
 
void setBinError (EcalDQMSetupObjects const, EcalElectronicsId const &, int, double) override
 
void setBinError (EcalDQMSetupObjects const, int, int, double) override
 
 ~MESetEcal () override
 
- Public Member Functions inherited from ecaldqm::MESet
virtual const_iterator begin (EcalElectronicsMapping const *electronicsMap) const
 
virtual iterator begin (EcalElectronicsMapping const *electronicsMap)
 
virtual const_iterator beginChannel (EcalElectronicsMapping const *electronicsMap) const
 
virtual iterator beginChannel (EcalElectronicsMapping const *electronicsMap)
 
virtual void clear () const
 
virtual const_iterator end (EcalElectronicsMapping const *electronicsMap) const
 
virtual iterator end (EcalElectronicsMapping const *electronicsMap)
 
std::string formPath (PathReplacements const &) const
 
bool getBatchMode () const
 
binning::BinningType getBinType () const
 
MonitorElement::Kind getKind () const
 
bool getLumiFlag () const
 
virtual MonitorElement const * getME (unsigned _iME) const
 
virtual MonitorElementgetME (unsigned _iME)
 
binning::ObjectType getObjType () const
 
virtual std::string const & getPath () const
 
bool isActive () const
 
virtual bool maskMatches (DetId const &, uint32_t, StatusManager const *, EcalTrigTowerConstituentsMap const *) const
 
 MESet ()
 
 MESet (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
 
 MESet (MESet const &)
 
virtual void resetAll (double=0., double=0., double=0.)
 
virtual void setAxisTitle (std::string const &, int=1)
 
void setBatchMode ()
 
void setLumiFlag ()
 
virtual ~MESet ()
 

Protected Member Functions

void fill_ (unsigned, int, double) override
 
void fill_ (unsigned, int, double, double) override
 
void fill_ (unsigned, double, double, double) override
 
- Protected Member Functions inherited from ecaldqm::MESet
virtual void checkME_ (unsigned _iME) const
 
void throw_ (std::string const &_message) const
 

Additional Inherited Members

- Public Types inherited from ecaldqm::MESet
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
typedef std::map< std::string,
std::string > 
PathReplacements
 
- Protected Attributes inherited from ecaldqm::MESetEcal
unsigned logicalDimensions_
 
binning::AxisSpecs const * xaxis_
 
binning::AxisSpecs const * yaxis_
 
binning::AxisSpecs const * zaxis_
 
- Protected Attributes inherited from ecaldqm::MESet
bool active_
 
bool batchMode_
 
binning::BinningType btype_
 
MonitorElement::Kind kind_
 
bool lumiFlag_
 
std::vector< MonitorElement * > mes_
 
binning::ObjectType otype_
 
std::string path_
 

Detailed Description

Definition at line 11 of file MESetDet2D.h.

Constructor & Destructor Documentation

ecaldqm::MESetDet2D::MESetDet2D ( std::string const &  _fullPath,
binning::ObjectType  _otype,
binning::BinningType  _btype,
MonitorElement::Kind  _kind,
binning::AxisSpecs const *  _zaxis = nullptr 
)

Definition at line 6 of file MESetDet2D.cc.

References ecaldqm::MESet::kind_, MonitorElementData::TH2F, ecaldqm::MESet::throw_(), and MonitorElementData::TPROFILE2D.

Referenced by clone().

11  : MESetEcal(_fullPath, _otype, _btype, _kind, 2, nullptr, nullptr, _zaxis) {
12  switch (kind_) {
15  break;
16  default:
17  throw_("Unsupported MonitorElement kind");
18  }
19  }
MonitorElement::Kind kind_
Definition: MESet.h:156
MESetEcal(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr)
Definition: MESetEcal.cc:10
void throw_(std::string const &_message) const
Definition: MESet.h:149
ecaldqm::MESetDet2D::MESetDet2D ( MESetDet2D const &  _orig)

Definition at line 21 of file MESetDet2D.cc.

21 : MESetEcal(_orig) {}
MESetEcal(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr)
Definition: MESetEcal.cc:10
ecaldqm::MESetDet2D::~MESetDet2D ( )
override

Definition at line 23 of file MESetDet2D.cc.

23 {}

Member Function Documentation

void ecaldqm::MESetDet2D::book ( DQMStore::IBooker _ibooker,
EcalElectronicsMapping const *  electronicsMap 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 34 of file MESetDet2D.cc.

References ecaldqm::MESet::batchMode_, ecaldqm::MESetEcal::book(), ecaldqm::MESet::btype_, ecaldqm::binning::channelName(), dqm::impl::MonitorElement::getNbinsX(), ecaldqm::binning::getObject(), ecaldqm::binning::kCrystal, ecaldqm::binning::kDCC, ecaldqm::binning::kEBMEM, ecaldqm::kEBmLow, ecaldqm::binning::kEcal, ecaldqm::binning::kEEMEM, ecaldqm::MESet::kind_, ecaldqm::binning::kMEM, hlt_dqm_clientPB-live_cfg::me, ecaldqm::memDCCId(), ecaldqm::MESet::mes_, ecaldqm::MESet::otype_, ecaldqm::MESet::resetAll(), dqm::impl::MonitorElement::setBinLabel(), and MonitorElementData::TPROFILE2D.

34  {
35  MESetEcal::book(_ibooker, electronicsMap);
36 
37  if (btype_ == binning::kCrystal) {
38  for (unsigned iME(0); iME < mes_.size(); iME++) {
39  MonitorElement *me(mes_[iME]);
40 
41  binning::ObjectType actualObject(binning::getObject(otype_, iME));
42  if (actualObject == binning::kMEM) {
43  for (int iBin(1); iBin <= me->getNbinsX(); ++iBin)
44  me->setBinLabel(iBin, binning::channelName(electronicsMap, memDCCId(iBin - 1)));
45  }
46  if (actualObject == binning::kEBMEM) {
47  for (int iBin(1); iBin <= me->getNbinsX(); ++iBin)
48  me->setBinLabel(iBin, binning::channelName(electronicsMap, iBin + kEBmLow));
49  }
50  if (actualObject == binning::kEEMEM) {
51  for (int iBin(1); iBin <= me->getNbinsX() / 2; ++iBin) {
52  me->setBinLabel(iBin, binning::channelName(electronicsMap, memDCCId(iBin - 1)));
53  me->setBinLabel(iBin + me->getNbinsX() / 2, binning::channelName(electronicsMap, memDCCId(iBin + 39)));
54  }
55  }
56  }
57  } else if (btype_ == binning::kDCC) {
58  for (unsigned iME(0); iME < mes_.size(); iME++) {
59  MonitorElement *me(mes_[iME]);
60 
61  binning::ObjectType actualObject(binning::getObject(otype_, iME));
62  if (actualObject == binning::kEcal) {
63  me->setBinLabel(1, "EE", 2);
64  me->setBinLabel(6, "EE", 2);
65  me->setBinLabel(3, "EB", 2);
66  me->setBinLabel(5, "EB", 2);
67  }
68  }
69  }
70 
71  // To avoid the ambiguity between "content == 0 because the mean is 0" and
72  // "content == 0 because the entry is 0" RenderPlugin must be configured
73  // accordingly
75  resetAll(0., 0., -1.);
76  }
MonitorElement::Kind kind_
Definition: MESet.h:156
bool batchMode_
Definition: MESet.h:159
ObjectType getObject(ObjectType, unsigned)
void book(DQMStore::IBooker &, EcalElectronicsMapping const *) override
Definition: MESetEcal.cc:70
unsigned memDCCId(unsigned)
virtual void resetAll(double=0., double=0., double=0.)
Definition: MESet.cc:108
binning::ObjectType otype_
Definition: MESet.h:154
std::string channelName(EcalElectronicsMapping const *, uint32_t, BinningType _btype=kDCC)
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
MESet * ecaldqm::MESetDet2D::clone ( std::string const &  _path = "") const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 25 of file MESetDet2D.cc.

References filterCSVwithJSON::copy, MESetDet2D(), fed_dqm_sourceclient-live_cfg::path, ecaldqm::MESet::path_, and AlCaHLTBitMon_QueryRunRegistry::string.

25  {
27  if (!_path.empty())
28  path_ = _path;
29  MESet *copy(new MESetDet2D(*this));
30  path_ = path;
31  return copy;
32  }
MESetDet2D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr)
Definition: MESetDet2D.cc:6
std::string path_
Definition: MESet.h:153
void ecaldqm::MESetDet2D::fill ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
double  _w = 1.,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 78 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), EcalTrigTowerConstituentsMap::constituentsOf(), ecaldqm::EcalDQMSetupObjects::electronicsMap, fill_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::isEndcapTTId(), ecaldqm::binning::kRCT, ecaldqm::binning::kTriggerTower, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and ecaldqm::EcalDQMSetupObjects::trigtowerMap.

78  {
79  if (!active_)
80  return;
81 
82  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
83  checkME_(iME);
84 
86 
87  int bin;
88 
89  if (btype_ == binning::kRCT) {
90  bin = binning::findBin2D(edso.electronicsMap, obj, btype_, _id);
91  fill_(iME, bin, _w);
92  } else {
93  if (isEndcapTTId(_id)) {
94  std::vector<DetId> ids(edso.trigtowerMap->constituentsOf(EcalTrigTowerDetId(_id)));
95  unsigned nId(ids.size());
96  for (unsigned iId(0); iId < nId; iId++) {
97  bin = binning::findBin2D(edso.electronicsMap, obj, binning::kTriggerTower, ids[iId]);
98  fill_(iME, bin, _w);
99  }
100  } else {
101  bin = binning::findBin2D(edso.electronicsMap, obj, btype_, _id);
102  fill_(iME, bin, _w);
103  }
104  }
105  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:525
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
void ecaldqm::MESetDet2D::fill ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
double  _w = 1.,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 107 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), EcalElectronicsId::dccId(), ecaldqm::EcalDQMSetupObjects::electronicsMap, fill_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::binning::kPseudoStrip, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, EcalElectronicsMapping::pseudoStripConstituents(), EcalElectronicsId::stripId(), and EcalElectronicsId::towerId().

108  {
109  if (!active_)
110  return;
111 
112  unsigned iME(0);
114  iME = binning::findPlotIndex(edso.electronicsMap, otype_, _id.dccId(), binning::kPseudoStrip);
115  else
116  iME = binning::findPlotIndex(edso.electronicsMap, otype_, _id);
117  checkME_(iME);
118 
120 
121  int bin;
122 
123  if (btype_ == binning::kPseudoStrip) {
124  EcalElectronicsId stid(_id);
125  std::vector<DetId> ids(
126  edso.electronicsMap->pseudoStripConstituents(stid.dccId(), stid.towerId(), stid.stripId()));
127  unsigned nId(ids.size());
128  for (unsigned iId(0); iId < nId; iId++) {
129  bin = binning::findBin2D(edso.electronicsMap, obj, btype_, ids[iId]);
130  fill_(iME, bin, _w);
131  }
132  } else {
133  bin = binning::findBin2D(edso.electronicsMap, obj, btype_, _id);
134  fill_(iME, bin, _w);
135  }
136  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
ObjectType getObject(ObjectType, unsigned)
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:525
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
void ecaldqm::MESetDet2D::fill ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
double  _w = 1.,
double  = 1.,
double  = 1. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 138 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, fill_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

138  {
139  if (!active_)
140  return;
141 
142  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid));
143  checkME_(iME);
144 
146 
147  int bin(binning::findBin2D(edso.electronicsMap, obj, btype_, _dcctccid));
148  fill_(iME, bin, _w);
149  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:525
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
void ecaldqm::MESetDet2D::fill_ ( unsigned  _iME,
int  _bin,
double  _w 
)
overrideprotectedvirtual

Reimplemented from ecaldqm::MESet.

Definition at line 525 of file MESetDet2D.cc.

References ecaldqm::MESet::fill_(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, and MonitorElementData::TPROFILE2D.

Referenced by fill().

525  {
527  MonitorElement *me(mes_.at(_iME));
528  if (me->getBinEntries(_bin) < 0.) {
529  me->setBinContent(_bin, 0.);
530  me->setBinEntries(_bin, 0.);
531  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
532  }
533  }
534 
535  MESet::fill_(_iME, _bin, _w);
536  }
MonitorElement::Kind kind_
Definition: MESet.h:156
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:252
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
void ecaldqm::MESetDet2D::fill_ ( unsigned  _iME,
int  _bin,
double  _y,
double  _w 
)
overrideprotectedvirtual

Reimplemented from ecaldqm::MESet.

Definition at line 538 of file MESetDet2D.cc.

References ecaldqm::MESet::fill_(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, and MonitorElementData::TPROFILE2D.

538  {
540  MonitorElement *me(mes_.at(_iME));
541  if (me->getBinEntries(_bin) < 0.) {
542  me->setBinContent(_bin, 0.);
543  me->setBinEntries(_bin, 0.);
544  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
545  }
546  }
547 
548  MESet::fill_(_iME, _bin, _y, _w);
549  }
MonitorElement::Kind kind_
Definition: MESet.h:156
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:252
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
void ecaldqm::MESetDet2D::fill_ ( unsigned  _iME,
double  _x,
double  _wy,
double  _w 
)
overrideprotectedvirtual

Reimplemented from ecaldqm::MESet.

Definition at line 551 of file MESetDet2D.cc.

References newFWLiteAna::bin, ecaldqm::MESet::fill_(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, and MonitorElementData::TPROFILE2D.

551  {
553  MonitorElement *me(mes_.at(_iME));
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.);
559  }
560  }
561 
562  MESet::fill_(_iME, _x, _wy, _w);
563  }
MonitorElement::Kind kind_
Definition: MESet.h:156
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:252
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
int ecaldqm::MESetDet2D::findBin ( EcalDQMSetupObjects const  edso,
DetId const &  _id 
) const

Definition at line 468 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), EcalTrigTowerConstituentsMap::constituentsOf(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and ecaldqm::EcalDQMSetupObjects::trigtowerMap.

468  {
469  if (!active_)
470  return 0;
471 
472  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
473  checkME_(iME);
474 
476 
477  if (isEndcapTTId(_id)) {
478  std::vector<DetId> ids(edso.trigtowerMap->constituentsOf(EcalTrigTowerDetId(_id)));
479  return binning::findBin2D(edso.electronicsMap, obj, binning::kTriggerTower, ids[0]);
480  } else
481  return binning::findBin2D(edso.electronicsMap, obj, btype_, _id);
482  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
int ecaldqm::MESetDet2D::findBin ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id 
) const

Definition at line 484 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

484  {
485  if (!active_)
486  return 0;
487 
488  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
489  checkME_(iME);
490 
492 
493  return binning::findBin2D(edso.electronicsMap, obj, btype_, _id);
494  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
double ecaldqm::MESetDet2D::getBinContent ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 305 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), EcalTrigTowerConstituentsMap::constituentsOf(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and ecaldqm::EcalDQMSetupObjects::trigtowerMap.

305  {
306  if (!active_)
307  return 0.;
308 
309  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
310  checkME_(iME);
311 
313 
314  int bin;
315 
316  if (isEndcapTTId(_id)) {
317  std::vector<DetId> ids(edso.trigtowerMap->constituentsOf(EcalTrigTowerDetId(_id)));
318  bin = binning::findBin2D(edso.electronicsMap, obj, binning::kTriggerTower, ids[0]);
319  } else {
320  bin = binning::findBin2D(edso.electronicsMap, obj, btype_, _id);
321  }
322 
323  return mes_[iME]->getBinContent(bin);
324  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
double ecaldqm::MESetDet2D::getBinContent ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 326 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

326  {
327  if (!active_)
328  return 0.;
329 
330  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
331  checkME_(iME);
332 
334 
335  int bin(binning::findBin2D(edso.electronicsMap, obj, btype_, _id));
336 
337  return mes_[iME]->getBinContent(bin);
338  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
double ecaldqm::MESetDet2D::getBinContent ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 340 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

340  {
341  if (!active_)
342  return 0.;
343 
344  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid));
345  checkME_(iME);
346 
348 
349  int bin(binning::findBin2D(edso.electronicsMap, obj, btype_, _dcctccid));
350 
351  return mes_[iME]->getBinContent(bin);
352  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
double ecaldqm::MESetDet2D::getBinEntries ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 403 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), EcalTrigTowerConstituentsMap::constituentsOf(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::isEndcapTTId(), ecaldqm::MESet::kind_, ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE2D, and ecaldqm::EcalDQMSetupObjects::trigtowerMap.

Referenced by getBinEntries().

403  {
404  if (!active_)
405  return 0.;
407  return 0.;
408 
409  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
410  checkME_(iME);
411 
413 
414  int bin;
415 
416  if (isEndcapTTId(_id)) {
417  std::vector<DetId> ids(edso.trigtowerMap->constituentsOf(EcalTrigTowerDetId(_id)));
418  bin = binning::findBin2D(edso.electronicsMap, obj, binning::kTriggerTower, ids[0]);
419  } else {
420  bin = binning::findBin2D(edso.electronicsMap, obj, btype_, _id);
421  }
422 
423  double entries(mes_[iME]->getBinEntries(bin));
424  if (entries < 0.)
425  return 0.;
426  else
427  return entries;
428  }
MonitorElement::Kind kind_
Definition: MESet.h:156
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
double getBinEntries(EcalDQMSetupObjects const, DetId const &, int=0) const override
Definition: MESetDet2D.cc:403
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
double ecaldqm::MESetDet2D::getBinEntries ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 430 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), getBinEntries(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElementData::TPROFILE2D.

430  {
431  if (!active_)
432  return 0.;
434  return 0.;
435 
436  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
437  checkME_(iME);
438 
440 
441  int bin(binning::findBin2D(edso.electronicsMap, obj, btype_, _id));
442 
443  double entries(mes_[iME]->getBinEntries(bin));
444  if (entries < 0.)
445  return 0.;
446  else
447  return entries;
448  }
MonitorElement::Kind kind_
Definition: MESet.h:156
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
double getBinEntries(EcalDQMSetupObjects const, DetId const &, int=0) const override
Definition: MESetDet2D.cc:403
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
double ecaldqm::MESetDet2D::getBinEntries ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
int   
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 450 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), getBinEntries(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

450  {
451  if (!active_)
452  return 0.;
453 
454  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid));
455  checkME_(iME);
456 
458 
459  int bin(binning::findBin2D(edso.electronicsMap, obj, btype_, _dcctccid));
460 
461  double entries(mes_[iME]->getBinEntries(bin));
462  if (entries < 0.)
463  return 0.;
464  else
465  return entries;
466  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
double getBinEntries(EcalDQMSetupObjects const, DetId const &, int=0) const override
Definition: MESetDet2D.cc:403
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
double ecaldqm::MESetDet2D::getBinError ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 354 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), EcalTrigTowerConstituentsMap::constituentsOf(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and ecaldqm::EcalDQMSetupObjects::trigtowerMap.

354  {
355  if (!active_)
356  return 0.;
357 
358  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
359  checkME_(iME);
360 
362 
363  int bin;
364 
365  if (isEndcapTTId(_id)) {
366  std::vector<DetId> ids(edso.trigtowerMap->constituentsOf(EcalTrigTowerDetId(_id)));
367  bin = binning::findBin2D(edso.electronicsMap, obj, binning::kTriggerTower, ids[0]);
368  } else {
369  bin = binning::findBin2D(edso.electronicsMap, obj, btype_, _id);
370  }
371 
372  return mes_[iME]->getBinError(bin);
373  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
double ecaldqm::MESetDet2D::getBinError ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 375 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

375  {
376  if (!active_)
377  return 0.;
378 
379  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
380  checkME_(iME);
381 
383 
384  int bin(binning::findBin2D(edso.electronicsMap, obj, btype_, _id));
385 
386  return mes_[iME]->getBinError(bin);
387  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
double ecaldqm::MESetDet2D::getBinError ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 389 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

389  {
390  if (!active_)
391  return 0.;
392 
393  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid));
394  checkME_(iME);
395 
397 
398  int bin(binning::findBin2D(edso.electronicsMap, obj, btype_, _dcctccid));
399 
400  return mes_[iME]->getBinError(bin);
401  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
void ecaldqm::MESetDet2D::reset ( EcalElectronicsMapping const *  electronicsMap,
double  _content = 0.,
double  _err = 0.,
double  _entries = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 496 of file MESetDet2D.cc.

References newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::binning::getNObjects(), ecaldqm::binning::getObject(), dqm::legacy::MonitorElement::getTH1(), ecaldqm::binning::isValidIdBin(), ecaldqm::MESet::kind_, hlt_dqm_clientPB-live_cfg::me, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, dqm::impl::MonitorElement::setBinContent(), dqm::impl::MonitorElement::setBinEntries(), dqm::impl::MonitorElement::setBinError(), and MonitorElementData::TPROFILE2D.

499  {
500  unsigned nME(binning::getNObjects(otype_));
501 
502  bool isProfile(kind_ == MonitorElement::Kind::TPROFILE2D);
503 
504  for (unsigned iME(0); iME < nME; iME++) {
505  MonitorElement *me(mes_[iME]);
506 
508 
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++) {
513  int bin((nbinsX + 2) * iy + ix);
514  if (!binning::isValidIdBin(electronicsMap, obj, btype_, iME, bin))
515  continue;
516  me->setBinContent(bin, _content);
517  me->setBinError(bin, _err);
518  if (isProfile)
519  me->setBinEntries(bin, _entries);
520  }
521  }
522  }
523  }
MonitorElement::Kind kind_
Definition: MESet.h:156
bool isValidIdBin(EcalElectronicsMapping const *, ObjectType, BinningType, unsigned, int)
unsigned getNObjects(ObjectType)
ObjectType getObject(ObjectType, unsigned)
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
void ecaldqm::MESetDet2D::setBinContent ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 151 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), EcalTrigTowerConstituentsMap::constituentsOf(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and ecaldqm::EcalDQMSetupObjects::trigtowerMap.

151  {
152  if (!active_)
153  return;
154 
155  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
156  checkME_(iME);
157 
159 
160  int bin;
161 
162  if (isEndcapTTId(_id)) {
163  std::vector<DetId> ids(edso.trigtowerMap->constituentsOf(EcalTrigTowerDetId(_id)));
164  unsigned nId(ids.size());
165  for (unsigned iId(0); iId < nId; iId++) {
166  bin = binning::findBin2D(edso.electronicsMap, obj, binning::kTriggerTower, ids[iId]);
167  mes_[iME]->setBinContent(bin, _content);
168  }
169  } else {
170  bin = binning::findBin2D(edso.electronicsMap, obj, btype_, _id);
171  mes_[iME]->setBinContent(bin, _content);
172  }
173  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
void ecaldqm::MESetDet2D::setBinContent ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 175 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

175  {
176  if (!active_)
177  return;
178 
179  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
180  checkME_(iME);
181 
183 
184  int bin(binning::findBin2D(edso.electronicsMap, obj, btype_, _id));
185  mes_[iME]->setBinContent(bin, _content);
186  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
void ecaldqm::MESetDet2D::setBinContent ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 188 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

188  {
189  if (!active_)
190  return;
191 
192  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid));
193  checkME_(iME);
194 
196 
197  int bin(binning::findBin2D(edso.electronicsMap, obj, btype_, _dcctccid));
198  mes_[iME]->setBinContent(bin, _content);
199  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
void ecaldqm::MESetDet2D::setBinEntries ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 251 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), EcalTrigTowerConstituentsMap::constituentsOf(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::isEndcapTTId(), ecaldqm::MESet::kind_, ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElementData::TPROFILE2D, and ecaldqm::EcalDQMSetupObjects::trigtowerMap.

251  {
252  if (!active_)
253  return;
255  return;
256 
257  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
258  checkME_(iME);
259 
261 
262  int bin;
263 
264  if (isEndcapTTId(_id)) {
265  std::vector<DetId> ids(edso.trigtowerMap->constituentsOf(EcalTrigTowerDetId(_id)));
266  unsigned nId(ids.size());
267  for (unsigned iId(0); iId < nId; iId++) {
268  bin = binning::findBin2D(edso.electronicsMap, obj, binning::kTriggerTower, ids[iId]);
269  mes_[iME]->setBinEntries(bin, _entries);
270  }
271  } else {
272  bin = binning::findBin2D(edso.electronicsMap, obj, btype_, _id);
273  mes_[iME]->setBinEntries(bin, _entries);
274  }
275  }
MonitorElement::Kind kind_
Definition: MESet.h:156
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
void ecaldqm::MESetDet2D::setBinEntries ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 277 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElementData::TPROFILE2D.

277  {
278  if (!active_)
279  return;
281  return;
282 
283  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
284  checkME_(iME);
285 
287 
288  int bin(binning::findBin2D(edso.electronicsMap, obj, btype_, _id));
289  mes_[iME]->setBinEntries(bin, _entries);
290  }
MonitorElement::Kind kind_
Definition: MESet.h:156
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
void ecaldqm::MESetDet2D::setBinEntries ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 292 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

292  {
293  if (!active_)
294  return;
295 
296  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid));
297  checkME_(iME);
298 
300 
301  int bin(binning::findBin2D(edso.electronicsMap, obj, btype_, _dcctccid));
302  mes_[iME]->setBinEntries(bin, _entries);
303  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
void ecaldqm::MESetDet2D::setBinError ( EcalDQMSetupObjects const  edso,
DetId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 201 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), EcalTrigTowerConstituentsMap::constituentsOf(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and ecaldqm::EcalDQMSetupObjects::trigtowerMap.

201  {
202  if (!active_)
203  return;
204 
205  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
206  checkME_(iME);
207 
209 
210  int bin;
211 
212  if (isEndcapTTId(_id)) {
213  std::vector<DetId> ids(edso.trigtowerMap->constituentsOf(EcalTrigTowerDetId(_id)));
214  unsigned nId(ids.size());
215  for (unsigned iId(0); iId < nId; iId++) {
216  bin = binning::findBin2D(edso.electronicsMap, obj, binning::kTriggerTower, ids[iId]);
217  mes_[iME]->setBinError(bin, _error);
218  }
219  } else {
220  bin = binning::findBin2D(edso.electronicsMap, obj, btype_, _id);
221  mes_[iME]->setBinError(bin, _error);
222  }
223  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
void ecaldqm::MESetDet2D::setBinError ( EcalDQMSetupObjects const  edso,
EcalElectronicsId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 225 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

225  {
226  if (!active_)
227  return;
228 
229  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _id));
230  checkME_(iME);
231 
233 
234  int bin(binning::findBin2D(edso.electronicsMap, obj, btype_, _id));
235  mes_[iME]->setBinError(bin, _error);
236  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151
void ecaldqm::MESetDet2D::setBinError ( EcalDQMSetupObjects const  edso,
int  _dcctccid,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 238 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::EcalDQMSetupObjects::electronicsMap, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

238  {
239  if (!active_)
240  return;
241 
242  unsigned iME(binning::findPlotIndex(edso.electronicsMap, otype_, _dcctccid));
243  checkME_(iME);
244 
246 
247  int bin(binning::findBin2D(edso.electronicsMap, obj, btype_, _dcctccid));
248  mes_[iME]->setBinError(bin, _error);
249  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:141
ObjectType getObject(ObjectType, unsigned)
int findBin2D(EcalElectronicsMapping const *, ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(EcalElectronicsMapping const *, ObjectType, DetId const &)
bool active_
Definition: MESet.h:161
binning::ObjectType otype_
Definition: MESet.h:154
binning::BinningType btype_
Definition: MESet.h:155
std::vector< MonitorElement * > mes_
Definition: MESet.h:151