CMS 3D CMS Logo

List of all members | Public Member Functions
ecaldqm::MESetDet1D Class Reference

#include <MESetDet1D.h>

Inheritance diagram for ecaldqm::MESetDet1D:
ecaldqm::MESetEcal ecaldqm::MESet

Public Member Functions

void book (DQMStore::IBooker &) override
 
MESetclone (std::string const &="") const override
 
void fill (DetId const &, double=1., double=1., double=0.) override
 
void fill (EcalElectronicsId const &, double=1., double=1., double=0.) override
 
void fill (int, double=1., double=1., double=0.) override
 
int findBin (DetId const &) const
 
int findBin (EcalElectronicsId const &) const
 
int findBin (int) const
 
int findBin (DetId const &, double, double=0.) const override
 
int findBin (EcalElectronicsId const &, double, double=0.) const override
 
int findBin (int, double, double=0.) const override
 
double getBinContent (DetId const &, int=0) const override
 
double getBinContent (EcalElectronicsId const &, int=0) const override
 
double getBinContent (int, int=0) const override
 
double getBinEntries (DetId const &, int=0) const override
 
double getBinEntries (EcalElectronicsId const &, int=0) const override
 
double getBinEntries (int, int=0) const override
 
double getBinError (DetId const &, int=0) const override
 
double getBinError (EcalElectronicsId const &, int=0) const override
 
double getBinError (int, int=0) const override
 
 MESetDet1D (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
 
 MESetDet1D (MESetDet1D const &)
 
void reset (double=0., double=0., double=0.) override
 
void setBinContent (DetId const &, double) override
 
void setBinContent (EcalElectronicsId const &, double) override
 
void setBinContent (int, double) override
 
void setBinContent (DetId const &, int, double) override
 
void setBinContent (EcalElectronicsId const &, int, double) override
 
void setBinContent (int, int, double) override
 
void setBinEntries (DetId const &, double) override
 
void setBinEntries (EcalElectronicsId const &, double) override
 
void setBinEntries (int, double) override
 
void setBinEntries (DetId const &, int, double) override
 
void setBinEntries (EcalElectronicsId const &, int, double) override
 
void setBinEntries (int, int, double) override
 
void setBinError (DetId const &, double) override
 
void setBinError (EcalElectronicsId const &, double) override
 
void setBinError (int, double) override
 
void setBinError (DetId const &, int, double) override
 
void setBinError (EcalElectronicsId const &, int, double) override
 
void setBinError (int, int, double) override
 
 ~MESetDet1D () override
 
- Public Member Functions inherited from ecaldqm::MESetEcal
void book (DQMStore::IBooker &) override
 
MESetclone (std::string const &="") const override
 
void fill (DetId const &, double=1., double=1., double=1.) override
 
void fill (EcalElectronicsId const &, double=1., double=1., double=1.) override
 
void fill (int, double=1., double=1., double=1.) override
 
void fill (double, double=1., double=1.) override
 
std::vector< std::string > generatePaths () const
 
double getBinContent (DetId const &, int) const override
 
double getBinContent (EcalElectronicsId const &, int) const override
 
double getBinContent (int, int) const override
 
double getBinEntries (DetId const &, int) const override
 
double getBinEntries (EcalElectronicsId const &, int) const override
 
double getBinEntries (int, int) const override
 
double getBinError (DetId const &, int) const override
 
double getBinError (EcalElectronicsId const &, int) const override
 
double getBinError (int, int) const override
 
bool isVariableBinning () const override
 
 MESetEcal (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0)
 
 MESetEcal (MESetEcal const &)
 
MESetoperator= (MESet const &) override
 
bool retrieve (DQMStore::IGetter &, std::string *=0) const override
 
void setBinContent (DetId const &, int, double) override
 
void setBinContent (EcalElectronicsId const &, int, double) override
 
void setBinContent (int, int, double) override
 
void setBinEntries (DetId const &, int, double) override
 
void setBinEntries (EcalElectronicsId const &, int, double) override
 
void setBinEntries (int, int, double) override
 
void setBinError (DetId const &, int, double) override
 
void setBinError (EcalElectronicsId const &, int, double) override
 
void setBinError (int, int, double) override
 
 ~MESetEcal () override
 
- Public Member Functions inherited from ecaldqm::MESet
virtual const_iterator begin () const
 
virtual iterator begin ()
 
virtual const_iterator beginChannel () const
 
virtual iterator beginChannel ()
 
virtual void clear () const
 
virtual const_iterator end () const
 
virtual iterator end ()
 
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 *) const
 
 MESet ()
 
 MESet (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
 
 MESet (MESet const &)
 
virtual void recoverStats ()
 
virtual void resetAll (double=0., double=0., double=0.)
 
virtual void setAxisTitle (std::string const &, int=1)
 
void setBatchMode ()
 
void setLumiFlag ()
 
virtual void softReset ()
 
virtual ~MESet ()
 

Additional Inherited Members

- Public Types inherited from ecaldqm::MESet
typedef std::map< std::string, std::string > PathReplacements
 
- Protected Member Functions inherited from ecaldqm::MESet
virtual void checkME_ (unsigned _iME) const
 
virtual void fill_ (unsigned, int, double)
 
virtual void fill_ (unsigned, int, double, double)
 
virtual void fill_ (unsigned, double, double, double)
 
void throw_ (std::string const &_message) const
 
- 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 13 of file MESetDet1D.h.

Constructor & Destructor Documentation

ecaldqm::MESetDet1D::MESetDet1D ( std::string const &  _fullPath,
binning::ObjectType  _otype,
binning::BinningType  _btype,
MonitorElement::Kind  _kind,
binning::AxisSpecs const *  _yaxis = 0 
)

Definition at line 7 of file MESetDet1D.cc.

References MonitorElement::DQM_KIND_TH1F, MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::MESet::kind_, and ecaldqm::MESet::throw_().

Referenced by clone().

12  : MESetEcal(_fullPath, _otype, _btype, _kind, 1, nullptr, _yaxis, nullptr) {
13  switch (kind_) {
18  break;
19  default:
20  throw_("Unsupported MonitorElement kind");
21  }
22  }
MonitorElement::Kind kind_
Definition: MESet.h:129
void throw_(std::string const &_message) const
Definition: MESet.h:122
MESetEcal(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0)
Definition: MESetEcal.cc:10
ecaldqm::MESetDet1D::MESetDet1D ( MESetDet1D const &  _orig)

Definition at line 24 of file MESetDet1D.cc.

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

Definition at line 26 of file MESetDet1D.cc.

26 {}

Member Function Documentation

void ecaldqm::MESetDet1D::book ( DQMStore::IBooker _ibooker)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 37 of file MESetDet1D.cc.

References ecaldqm::MESetEcal::book(), ecaldqm::MESet::btype_, ecaldqm::binning::channelName(), MonitorElement::getNbinsX(), ecaldqm::binning::getObject(), SurfaceOrientation::inner, ecaldqm::innerTCCs(), ecaldqm::binning::kDCC, ecaldqm::binning::kEB, ecaldqm::kEBmLow, ecaldqm::binning::kEE, ecaldqm::binning::kEEm, ecaldqm::kEEmHigh, ecaldqm::binning::kEEp, ecaldqm::kEEpLow, ecaldqm::binning::kEESM, ecaldqm::binning::kSM, ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, ecaldqm::nTTInner, ecaldqm::nTTOuter, PFRecoTauDiscriminationByIsolation_cfi::offset, ecaldqm::MESet::otype_, SurfaceOrientation::outer, ecaldqm::outerTCCs(), and MonitorElement::setBinLabel().

37  {
38  MESetEcal::book(_ibooker);
39 
40  if (btype_ == binning::kDCC) {
41  for (unsigned iME(0); iME < mes_.size(); iME++) {
42  MonitorElement *me(mes_[iME]);
43 
44  binning::ObjectType actualObject(binning::getObject(otype_, iME));
45  if (actualObject == binning::kEB) {
46  for (int iBin(1); iBin <= me->getNbinsX(); iBin++)
47  me->setBinLabel(iBin, binning::channelName(iBin + kEBmLow));
48  } else if (actualObject == binning::kEE) {
49  for (int iBin(1); iBin <= me->getNbinsX() / 2; iBin++) {
50  me->setBinLabel(iBin, binning::channelName(iBin));
51  me->setBinLabel(iBin + me->getNbinsX() / 2, binning::channelName(iBin + 45));
52  }
53  } else if (actualObject == binning::kEEm) {
54  for (int iBin(1); iBin <= me->getNbinsX(); iBin++)
55  me->setBinLabel(iBin, binning::channelName(iBin));
56  } else if (actualObject == binning::kEEp) {
57  for (int iBin(1); iBin <= me->getNbinsX(); iBin++)
58  me->setBinLabel(iBin, binning::channelName(iBin + 45));
59  }
60  }
61  } else if (btype_ == binning::kTriggerTower) {
62  for (unsigned iME(0); iME < mes_.size(); iME++) {
63  MonitorElement *me(mes_[iME]);
64 
65  binning::ObjectType actualObject(binning::getObject(otype_, iME));
66  unsigned dccid(0);
67  if (actualObject == binning::kSM && (iME <= kEEmHigh || iME >= kEEpLow))
68  dccid = iME + 1;
69  else if (actualObject == binning::kEESM)
70  dccid = iME <= kEEmHigh ? iME + 1 : iME + 37;
71 
72  if (dccid > 0) {
73  std::stringstream ss;
74  std::pair<unsigned, unsigned> inner(innerTCCs(iME + 1));
75  std::pair<unsigned, unsigned> outer(outerTCCs(iME + 1));
76  ss << "TCC" << inner.first << " TT1";
77  me->setBinLabel(1, ss.str());
78  ss.str("");
79  ss << "TCC" << inner.second << " TT1";
80  me->setBinLabel(1 + nTTInner, ss.str());
81  ss.str("");
82  ss << "TCC" << outer.first << " TT1";
83  me->setBinLabel(1 + 2 * nTTInner, ss.str());
84  ss.str("");
85  ss << "TCC" << outer.second << " TT1";
86  me->setBinLabel(1 + 2 * nTTInner + nTTOuter, ss.str());
87  // Bins are numbered:
88  // inner1:(1)-->(nTTInner)
89  // inner2:(1+nTTInner)-->(1+nTTInner + nTTInner-1 = 2*nTTInner)
90  // outer1:(1+2*nTTInner)-->(1+2*nTTInner+nTTOuter-1=2*nTTInner+nTTOuter)
91  // outer2:(1+2*nTTInner+nTTOuter)-->(1+2*nTTInner+nTTOuter + nTTOuter-1
92  // = 2*nTTInner+2*nTTOuter)
93  int offset(0);
94  for (int iBin(4); iBin <= (2 * nTTOuter + 2 * nTTInner); iBin += 4) {
95  if (iBin == 4 + nTTInner)
96  offset = nTTInner;
97  else if (iBin == 4 + 2 * nTTInner)
98  offset = 2 * nTTInner;
99  else if (iBin == 4 + 2 * nTTInner + nTTOuter)
100  offset = 2 * nTTInner + nTTOuter;
101  ss.str("");
102  ss << iBin - offset;
103  me->setBinLabel(iBin, ss.str());
104  }
105  }
106  }
107  }
108  }
std::pair< unsigned, unsigned > outerTCCs(unsigned)
ObjectType getObject(ObjectType, unsigned)
std::string channelName(uint32_t, BinningType _btype=kDCC)
std::pair< unsigned, unsigned > innerTCCs(unsigned)
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void book(DQMStore::IBooker &) override
Definition: MESetEcal.cc:70
MESet * ecaldqm::MESetDet1D::clone ( std::string const &  _path = "") const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 28 of file MESetDet1D.cc.

References popcon2dropbox::copy(), MESetDet1D(), callgraph::path, ecaldqm::MESet::path_, and AlCaHLTBitMon_QueryRunRegistry::string.

28  {
30  if (!_path.empty())
31  path_ = _path;
32  MESet *copy(new MESetDet1D(*this));
33  path_ = path;
34  return copy;
35  }
def copy(args, dbName)
MESetDet1D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
Definition: MESetDet1D.cc:7
std::string path_
Definition: MESet.h:126
void ecaldqm::MESetDet1D::fill ( DetId const &  _id,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 110 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::MESet::fill_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

110  {
111  if (!active_)
112  return;
113 
114  unsigned iME(binning::findPlotIndex(otype_, _id));
115  checkME_(iME);
116 
118  int xbin(binning::findBin1D(obj, btype_, _id));
119 
121  fill_(iME, xbin, _wy, _w);
122  else
123  fill_(iME, xbin, _wy);
124  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:266
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
void ecaldqm::MESetDet1D::fill ( EcalElectronicsId const &  _id,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 126 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::MESet::fill_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

126  {
127  if (!active_)
128  return;
129 
130  unsigned iME(binning::findPlotIndex(otype_, _id));
131  checkME_(iME);
132 
134  int xbin(binning::findBin1D(obj, btype_, _id));
135 
137  fill_(iME, xbin, _wy, _w);
138  else
139  fill_(iME, xbin, _wy);
140  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:266
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
void ecaldqm::MESetDet1D::fill ( int  _dcctccid,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 142 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::MESet::fill_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

142  {
143  if (!active_)
144  return;
145 
146  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
147  checkME_(iME);
148 
150  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
151 
153  fill_(iME, xbin, _wy, _w);
154  else
155  fill_(iME, xbin, _wy);
156  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:266
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
int ecaldqm::MESetDet1D::findBin ( DetId const &  _id) const

Definition at line 644 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

644  {
645  if (!active_)
646  return -1;
648  return -1;
649 
650  unsigned iME(binning::findPlotIndex(otype_, _id));
651  checkME_(iME);
652 
654  return binning::findBin1D(obj, btype_, _id);
655  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
int ecaldqm::MESetDet1D::findBin ( EcalElectronicsId const &  _id) const

Definition at line 657 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

657  {
658  if (!active_)
659  return -1;
661  return -1;
662 
663  unsigned iME(binning::findPlotIndex(otype_, _id));
664  checkME_(iME);
665 
667  return binning::findBin1D(obj, btype_, _id);
668  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
int ecaldqm::MESetDet1D::findBin ( int  _dcctccid) const

Definition at line 670 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

670  {
671  if (!active_)
672  return -1;
674  return -1;
675 
676  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
677  checkME_(iME);
678 
680  return binning::findBin1D(obj, btype_, _dcctccid);
681  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
int ecaldqm::MESetDet1D::findBin ( DetId const &  _id,
double  _y,
double  = 0. 
) const
overridevirtual

Reimplemented from ecaldqm::MESetEcal.

Definition at line 683 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

683  {
684  if (!active_)
685  return -1;
687  return -1;
688 
689  unsigned iME(binning::findPlotIndex(otype_, _id));
690  checkME_(iME);
691 
692  MonitorElement *me(mes_[iME]);
693 
695  int xbin(binning::findBin1D(obj, btype_, _id));
696  int nbinsX(me->getTH1()->GetNbinsX());
697  return xbin + (nbinsX + 2) * me->getTH1()->GetYaxis()->FindBin(_y);
698  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
int ecaldqm::MESetDet1D::findBin ( EcalElectronicsId const &  _id,
double  _y,
double  = 0. 
) const
overridevirtual

Reimplemented from ecaldqm::MESetEcal.

Definition at line 700 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

700  {
701  if (!active_)
702  return -1;
704  return -1;
705 
706  unsigned iME(binning::findPlotIndex(otype_, _id));
707  checkME_(iME);
708 
709  MonitorElement *me(mes_[iME]);
710 
712  int xbin(binning::findBin1D(obj, btype_, _id));
713  int nbinsX(me->getTH1()->GetNbinsX());
714  return xbin + (nbinsX + 2) * me->getTH1()->GetYaxis()->FindBin(_y);
715  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
int ecaldqm::MESetDet1D::findBin ( int  _dcctccid,
double  _y,
double  = 0. 
) const
overridevirtual

Reimplemented from ecaldqm::MESetEcal.

Definition at line 717 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

717  {
718  if (!active_)
719  return -1;
721  return -1;
722 
723  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
724  checkME_(iME);
725 
726  MonitorElement *me(mes_[iME]);
727 
729  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
730  int nbinsX(me->getTH1()->GetNbinsX());
731  return xbin + (nbinsX + 2) * me->getTH1()->GetYaxis()->FindBin(_y);
732  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet1D::getBinContent ( DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 494 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinContent(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::mes_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

494  {
495  if (!active_)
496  return 0.;
497 
498  unsigned iME(binning::findPlotIndex(otype_, _id));
499  checkME_(iME);
500 
501  MonitorElement *me(mes_[iME]);
502 
504  int xbin(binning::findBin1D(obj, btype_, _id));
505  int nbinsX(me->getTH1()->GetNbinsX());
506 
507  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
508  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet1D::getBinContent ( EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 510 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinContent(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::mes_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

510  {
511  if (!active_)
512  return 0.;
513 
514  unsigned iME(binning::findPlotIndex(otype_, _id));
515  checkME_(iME);
516 
517  MonitorElement *me(mes_[iME]);
518 
520  int xbin(binning::findBin1D(obj, btype_, _id));
521  int nbinsX(me->getTH1()->GetNbinsX());
522 
523  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
524  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet1D::getBinContent ( int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 526 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinContent(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::mes_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

526  {
527  if (!active_)
528  return 0.;
529 
530  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
531  checkME_(iME);
532 
533  MonitorElement *me(mes_[iME]);
534 
536  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
537  int nbinsX(me->getTH1()->GetNbinsX());
538 
539  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
540  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet1D::getBinEntries ( DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 590 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinEntries(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

590  {
591  if (!active_)
592  return 0.;
594  return 0.;
595 
596  unsigned iME(binning::findPlotIndex(otype_, _id));
597  checkME_(iME);
598 
599  MonitorElement *me(mes_[iME]);
600 
602  int xbin(binning::findBin1D(obj, btype_, _id));
603  int nbinsX(me->getTH1()->GetNbinsX());
604 
605  return me->getBinEntries((nbinsX + 2) * _ybin + xbin);
606  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet1D::getBinEntries ( EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 608 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinEntries(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

608  {
609  if (!active_)
610  return 0.;
612  return 0.;
613 
614  unsigned iME(binning::findPlotIndex(otype_, _id));
615  checkME_(iME);
616 
617  MonitorElement *me(mes_[iME]);
618 
620  int xbin(binning::findBin1D(obj, btype_, _id));
621  int nbinsX(me->getTH1()->GetNbinsX());
622 
623  return me->getBinEntries((nbinsX + 2) * _ybin + xbin);
624  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet1D::getBinEntries ( int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 626 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinEntries(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

626  {
627  if (!active_)
628  return 0.;
630  return 0.;
631 
632  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
633  checkME_(iME);
634 
635  MonitorElement *me(mes_[iME]);
636 
638  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
639  int nbinsX(me->getTH1()->GetNbinsX());
640 
641  return me->getBinEntries((nbinsX + 2) * _ybin + xbin);
642  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet1D::getBinError ( DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 542 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinError(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::mes_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

542  {
543  if (!active_)
544  return 0.;
545 
546  unsigned iME(binning::findPlotIndex(otype_, _id));
547  checkME_(iME);
548 
549  MonitorElement *me(mes_[iME]);
550 
552  int xbin(binning::findBin1D(obj, btype_, _id));
553  int nbinsX(me->getTH1()->GetNbinsX());
554 
555  return me->getBinError((nbinsX + 2) * _ybin + xbin);
556  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet1D::getBinError ( EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 558 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinError(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::mes_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

558  {
559  if (!active_)
560  return 0.;
561 
562  unsigned iME(binning::findPlotIndex(otype_, _id));
563  checkME_(iME);
564 
565  MonitorElement *me(mes_[iME]);
566 
568  int xbin(binning::findBin1D(obj, btype_, _id));
569  int nbinsX(me->getTH1()->GetNbinsX());
570 
571  return me->getBinError((nbinsX + 2) * _ybin + xbin);
572  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet1D::getBinError ( int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 574 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinError(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::mes_, hgcalPlots::obj, and ecaldqm::MESet::otype_.

574  {
575  if (!active_)
576  return 0.;
577 
578  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
579  checkME_(iME);
580 
581  MonitorElement *me(mes_[iME]);
582 
584  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
585  int nbinsX(me->getTH1()->GetNbinsX());
586 
587  return me->getBinError((nbinsX + 2) * _ybin + xbin);
588  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::reset ( double  _content = 0.,
double  _err = 0.,
double  _entries = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 734 of file MESetDet1D.cc.

References stringResolutionProvider_cfi::bin, MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::getNObjects(), MonitorElement::getTH1(), fastTrackerRecHitType::is2D(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, ecaldqm::MESet::otype_, MonitorElement::setBinContent(), MonitorElement::setBinEntries(), and MonitorElement::setBinError().

734  {
735  unsigned nME(binning::getNObjects(otype_));
736 
739 
740  for (unsigned iME(0); iME < nME; iME++) {
741  MonitorElement *me(mes_[iME]);
742 
743  int nbinsX(me->getTH1()->GetNbinsX());
744  int nbinsY(me->getTH1()->GetNbinsY());
745  for (int ix(1); ix <= nbinsX; ix++) {
746  for (int iy(1); iy <= nbinsY; iy++) {
747  int bin(is2D ? (nbinsX + 2) * iy + ix : ix);
748  me->setBinContent(bin, _content);
749  me->setBinError(bin, _err);
750  if (isProfile)
751  me->setBinEntries(bin, _entries);
752  }
753  }
754  }
755  }
MonitorElement::Kind kind_
Definition: MESet.h:129
unsigned getNObjects(ObjectType)
bool is2D(HitType hitType)
bin
set the eta bin as selection string.
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinContent ( DetId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 158 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinContent().

158  {
159  if (!active_)
160  return;
161 
162  unsigned iME(binning::findPlotIndex(otype_, _id));
163  checkME_(iME);
164 
165  MonitorElement *me(mes_[iME]);
166 
168  int xbin(binning::findBin1D(obj, btype_, _id));
169 
171  int nbinsY(me->getTH1()->GetNbinsY());
172  for (int iY(1); iY <= nbinsY; iY++)
173  me->setBinContent(xbin, iY, _content);
174  } else
175  me->setBinContent(xbin, _content);
176  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinContent ( EcalElectronicsId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 178 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinContent().

178  {
179  if (!active_)
180  return;
181 
182  unsigned iME(binning::findPlotIndex(otype_, _id));
183  checkME_(iME);
184 
185  MonitorElement *me(mes_[iME]);
186 
188  int xbin(binning::findBin1D(obj, btype_, _id));
189 
191  int nbinsY(me->getTH1()->GetNbinsY());
192  for (int iY(1); iY <= nbinsY; iY++)
193  me->setBinContent(xbin, iY, _content);
194  } else
195  me->setBinContent(xbin, _content);
196  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinContent ( int  _dcctccid,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 198 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinContent().

198  {
199  if (!active_)
200  return;
201 
202  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
203  checkME_(iME);
204 
205  MonitorElement *me(mes_[iME]);
206 
208  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
209 
211  int nbinsY(me->getTH1()->GetNbinsY());
212  for (int iY(1); iY <= nbinsY; iY++)
213  me->setBinContent(xbin, iY, _content);
214  } else
215  me->setBinContent(xbin, _content);
216  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinContent ( DetId const &  _id,
int  _ybin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 218 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinContent().

218  {
219  if (!active_)
220  return;
222  return;
223 
224  unsigned iME(binning::findPlotIndex(otype_, _id));
225  checkME_(iME);
226 
227  MonitorElement *me(mes_[iME]);
228 
230  int xbin(binning::findBin1D(obj, btype_, _id));
231  me->setBinContent(xbin, _ybin, _content);
232  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinContent ( EcalElectronicsId const &  _id,
int  _ybin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 234 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinContent().

234  {
235  if (!active_)
236  return;
238  return;
239 
240  unsigned iME(binning::findPlotIndex(otype_, _id));
241  checkME_(iME);
242 
243  MonitorElement *me(mes_[iME]);
244 
246  int xbin(binning::findBin1D(obj, btype_, _id));
247  me->setBinContent(xbin, _ybin, _content);
248  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinContent ( int  _dcctccid,
int  _ybin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 250 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinContent().

250  {
251  if (!active_)
252  return;
254  return;
255 
256  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
257  checkME_(iME);
258 
259  MonitorElement *me(mes_[iME]);
260 
262  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
263  me->setBinContent(xbin, _ybin, _content);
264  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinEntries ( DetId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 374 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinEntries().

374  {
375  if (!active_)
376  return;
378  return;
379 
380  unsigned iME(binning::findPlotIndex(otype_, _id));
381  checkME_(iME);
382 
383  MonitorElement *me(mes_[iME]);
384 
386  int xbin(binning::findBin1D(obj, btype_, _id));
387 
389  int nbinsX(me->getTH1()->GetNbinsX());
390  int nbinsY(me->getTH1()->GetNbinsY());
391  for (int iY(1); iY <= nbinsY; iY++)
392  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
393  } else
394  me->setBinEntries(xbin, _entries);
395  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinEntries ( EcalElectronicsId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 397 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinEntries().

397  {
398  if (!active_)
399  return;
401  return;
402 
403  unsigned iME(binning::findPlotIndex(otype_, _id));
404  checkME_(iME);
405 
406  MonitorElement *me(mes_[iME]);
407 
409  int xbin(binning::findBin1D(obj, btype_, _id));
410 
412  int nbinsX(me->getTH1()->GetNbinsX());
413  int nbinsY(me->getTH1()->GetNbinsY());
414  for (int iY(1); iY <= nbinsY; iY++)
415  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
416  } else
417  me->setBinEntries(xbin, _entries);
418  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinEntries ( int  _dcctccid,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 420 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinEntries().

420  {
421  if (!active_)
422  return;
424  return;
425 
426  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
427  checkME_(iME);
428 
429  MonitorElement *me(mes_[iME]);
430 
432  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
433 
435  int nbinsX(me->getTH1()->GetNbinsX());
436  int nbinsY(me->getTH1()->GetNbinsY());
437  for (int iY(1); iY <= nbinsY; iY++)
438  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
439  } else
440  me->setBinEntries(xbin, _entries);
441  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinEntries ( DetId const &  _id,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 443 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinEntries().

443  {
444  if (!active_)
445  return;
447  return;
448 
449  unsigned iME(binning::findPlotIndex(otype_, _id));
450  checkME_(iME);
451 
452  MonitorElement *me(mes_[iME]);
453 
455  int xbin(binning::findBin1D(obj, btype_, _id));
456  int nbinsX(me->getTH1()->GetNbinsX());
457  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
458  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinEntries ( EcalElectronicsId const &  _id,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 460 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinEntries().

460  {
461  if (!active_)
462  return;
464  return;
465 
466  unsigned iME(binning::findPlotIndex(otype_, _id));
467  checkME_(iME);
468 
469  MonitorElement *me(mes_[iME]);
470 
472  int xbin(binning::findBin1D(obj, btype_, _id));
473  int nbinsX(me->getTH1()->GetNbinsX());
474  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
475  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinEntries ( int  _dcctccid,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 477 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinEntries().

477  {
478  if (!active_)
479  return;
481  return;
482 
483  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
484  checkME_(iME);
485 
486  MonitorElement *me(mes_[iME]);
487 
489  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
490  int nbinsX(me->getTH1()->GetNbinsX());
491  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
492  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinError ( DetId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 266 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinError().

266  {
267  if (!active_)
268  return;
269 
270  unsigned iME(binning::findPlotIndex(otype_, _id));
271  checkME_(iME);
272 
273  MonitorElement *me(mes_[iME]);
274 
276  int xbin(binning::findBin1D(obj, btype_, _id));
277 
279  int nbinsY(me->getTH1()->GetNbinsY());
280  for (int iY(1); iY <= nbinsY; iY++)
281  me->setBinError(xbin, iY, _error);
282  } else
283  me->setBinError(xbin, _error);
284  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinError ( EcalElectronicsId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 286 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinError().

286  {
287  if (!active_)
288  return;
289 
290  unsigned iME(binning::findPlotIndex(otype_, _id));
291  checkME_(iME);
292 
293  MonitorElement *me(mes_[iME]);
294 
296  int xbin(binning::findBin1D(obj, btype_, _id));
297 
299  int nbinsY(me->getTH1()->GetNbinsY());
300  for (int iY(1); iY <= nbinsY; iY++)
301  me->setBinError(xbin, iY, _error);
302  } else
303  me->setBinError(xbin, _error);
304  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinError ( int  _dcctccid,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 306 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinError().

306  {
307  if (!active_)
308  return;
309 
310  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
311  checkME_(iME);
312 
313  MonitorElement *me(mes_[iME]);
314 
316  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
317 
319  int nbinsY(me->getTH1()->GetNbinsY());
320  for (int iY(1); iY <= nbinsY; iY++)
321  me->setBinError(xbin, iY, _error);
322  } else
323  me->setBinError(xbin, _error);
324  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinError ( DetId const &  _id,
int  _ybin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 326 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinError().

326  {
327  if (!active_)
328  return;
330  return;
331 
332  unsigned iME(binning::findPlotIndex(otype_, _id));
333  checkME_(iME);
334 
335  MonitorElement *me(mes_[iME]);
336 
338  int xbin(binning::findBin1D(obj, btype_, _id));
339  me->setBinError(xbin, _ybin, _error);
340  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinError ( EcalElectronicsId const &  _id,
int  _ybin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 342 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinError().

342  {
343  if (!active_)
344  return;
346  return;
347 
348  unsigned iME(binning::findPlotIndex(otype_, _id));
349  checkME_(iME);
350 
351  MonitorElement *me(mes_[iME]);
352 
354  int xbin(binning::findBin1D(obj, btype_, _id));
355  me->setBinError(xbin, _ybin, _error);
356  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet1D::setBinError ( int  _dcctccid,
int  _ybin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 358 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, hgcalPlots::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinError().

358  {
359  if (!active_)
360  return;
362  return;
363 
364  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
365  checkME_(iME);
366 
367  MonitorElement *me(mes_[iME]);
368 
370  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
371  me->setBinError(xbin, _ybin, _error);
372  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124