CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Private Member Functions
ecaldqm::MESetEcal Class Reference

#include <MESetEcal.h>

Inheritance diagram for ecaldqm::MESetEcal:
ecaldqm::MESet ecaldqm::MESetDet0D ecaldqm::MESetDet1D ecaldqm::MESetDet2D ecaldqm::MESetProjection ecaldqm::MESetTrend

Public Member Functions

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
 
virtual int findBin (DetId const &, double, double=0.) const
 
virtual int findBin (EcalElectronicsId const &, double, double=0.) const
 
virtual int findBin (int, double, double=0.) const
 
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 reset (double=0., double=0., double=0.)
 
virtual void resetAll (double=0., double=0., double=0.)
 
virtual void setAxisTitle (std::string const &, int=1)
 
void setBatchMode ()
 
virtual void setBinContent (DetId const &, double)
 
virtual void setBinContent (EcalElectronicsId const &, double)
 
virtual void setBinContent (int, double)
 
virtual void setBinEntries (DetId const &, double)
 
virtual void setBinEntries (EcalElectronicsId const &, double)
 
virtual void setBinEntries (int, double)
 
virtual void setBinError (DetId const &, double)
 
virtual void setBinError (EcalElectronicsId const &, double)
 
virtual void setBinError (int, double)
 
void setLumiFlag ()
 
virtual void softReset ()
 
virtual ~MESet ()
 

Protected Attributes

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_
 

Private Member Functions

template<class Bookable >
void doBook_ (Bookable &)
 

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
 

Detailed Description

Definition at line 15 of file MESetEcal.h.

Constructor & Destructor Documentation

ecaldqm::MESetEcal::MESetEcal ( std::string const &  _fullPath,
binning::ObjectType  _otype,
binning::BinningType  _btype,
MonitorElement::Kind  _kind,
unsigned  _logicalDimensions,
binning::AxisSpecs const *  _xaxis = 0,
binning::AxisSpecs const *  _yaxis = 0,
binning::AxisSpecs const *  _zaxis = 0 
)

Definition at line 10 of file MESetEcal.cc.

References ecaldqm::MESet::btype_, ecaldqm::binning::kUser, logicalDimensions_, ecaldqm::MESet::throw_(), xaxis_, and yaxis_.

Referenced by clone().

18  : MESet(_fullPath, _otype, _btype, _kind),
19  logicalDimensions_(_logicalDimensions),
20  xaxis_(_xaxis ? new binning::AxisSpecs(*_xaxis) : nullptr),
21  yaxis_(_yaxis ? new binning::AxisSpecs(*_yaxis) : nullptr),
22  zaxis_(_zaxis ? new binning::AxisSpecs(*_zaxis) : nullptr) {
23  if (btype_ == binning::kUser && ((logicalDimensions_ > 0 && !xaxis_) || (logicalDimensions_ > 1 && !yaxis_)))
24  throw_("Need axis specifications");
25  }
void throw_(std::string const &_message) const
Definition: MESet.h:122
binning::AxisSpecs const * zaxis_
Definition: MESetEcal.h:76
binning::AxisSpecs const * xaxis_
Definition: MESetEcal.h:74
binning::AxisSpecs const * yaxis_
Definition: MESetEcal.h:75
binning::BinningType btype_
Definition: MESet.h:128
unsigned logicalDimensions_
Definition: MESetEcal.h:73
ecaldqm::MESetEcal::MESetEcal ( MESetEcal const &  _orig)

Definition at line 27 of file MESetEcal.cc.

28  : MESet(_orig),
29  logicalDimensions_(_orig.logicalDimensions_),
30  xaxis_(_orig.xaxis_ ? new binning::AxisSpecs(*_orig.xaxis_) : nullptr),
31  yaxis_(_orig.yaxis_ ? new binning::AxisSpecs(*_orig.yaxis_) : nullptr),
32  zaxis_(_orig.zaxis_ ? new binning::AxisSpecs(*_orig.zaxis_) : nullptr) {}
binning::AxisSpecs const * zaxis_
Definition: MESetEcal.h:76
binning::AxisSpecs const * xaxis_
Definition: MESetEcal.h:74
binning::AxisSpecs const * yaxis_
Definition: MESetEcal.h:75
unsigned logicalDimensions_
Definition: MESetEcal.h:73
ecaldqm::MESetEcal::~MESetEcal ( )
override

Definition at line 34 of file MESetEcal.cc.

References xaxis_, yaxis_, and zaxis_.

34  {
35  delete xaxis_;
36  delete yaxis_;
37  delete zaxis_;
38  }
binning::AxisSpecs const * zaxis_
Definition: MESetEcal.h:76
binning::AxisSpecs const * xaxis_
Definition: MESetEcal.h:74
binning::AxisSpecs const * yaxis_
Definition: MESetEcal.h:75

Member Function Documentation

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

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetTrend.

Definition at line 70 of file MESetEcal.cc.

References ecaldqm::MESet::active_, DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::bookFloat(), DQMStore::IBooker::bookProfile(), DQMStore::IBooker::bookProfile2D(), ecaldqm::MESet::btype_, DQMStore::IBooker::cd(), ecaldqm::MESet::clear(), popcon2dropbox::copy(), MonitorElement::DQM_KIND_REAL, MonitorElement::DQM_KIND_TH1F, MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::AxisSpecs::edges, generatePaths(), ecaldqm::binning::getBinning(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::binning::AxisSpecs::high, mps_fire::i, ecaldqm::MESet::kind_, tablePrinter::labels, ecaldqm::binning::AxisSpecs::labels, logicalDimensions_, ecaldqm::binning::AxisSpecs::low, ecaldqm::MESet::lumiFlag_, SiStripPI::max, ecaldqm::MESet::mes_, dataset::name, ecaldqm::binning::AxisSpecs::nbins, pileupCalc::nbins, ecaldqm::MESet::otype_, callgraph::path, MonitorElement::setAxisTitle(), MonitorElement::setBinLabel(), DQMStore::IBooker::setCurrentFolder(), MonitorElement::setLumiFlag(), SiPixelPhase1DigisV_cfi::specs, AlCaHLTBitMon_QueryRunRegistry::string, ecaldqm::MESet::throw_(), runGCPTkAlMap::title, ecaldqm::binning::AxisSpecs::title, xaxis_, yaxis_, trackingPlots::zaxis, and zaxis_.

Referenced by ecaldqm::MESetDet2D::book(), ecaldqm::MESetDet1D::book(), and ecaldqm::MESetTrend::book().

70  {
71  using namespace std;
72 
73  clear();
74 
75  vector<string> mePaths(generatePaths());
76 
77  for (unsigned iME(0); iME < mePaths.size(); iME++) {
78  string &path(mePaths[iME]);
79  if (path.find('%') != string::npos)
80  throw_("book() called with incompletely formed path [" + path + "]");
81 
82  binning::ObjectType actualObject(binning::getObject(otype_, iME));
83 
84  binning::AxisSpecs xaxis, yaxis, zaxis;
85 
86  bool isHistogram(logicalDimensions_ > 0);
87  bool isMap(logicalDimensions_ > 1);
88 
89  if (isHistogram) {
90  if (xaxis_)
91  xaxis = *xaxis_;
92  if (yaxis_)
93  yaxis = *yaxis_;
94  if (zaxis_)
95  zaxis = *zaxis_;
96 
97  if (xaxis.nbins == 0) { // uses preset
98  binning::AxisSpecs xdef(binning::getBinning(actualObject, btype_, isMap, 1, iME));
99  if (xaxis.labels || !xaxis.title.empty()) { // PSet specifies title / label only
100  std::string *labels(xaxis.labels);
101  std::string title(xaxis.title);
102  xaxis = xdef;
103  delete[] xaxis.labels;
104  xaxis.labels = labels;
105  xaxis.title = title;
106  } else
107  xaxis = xdef;
108  }
109 
110  if (isMap && yaxis.nbins == 0) {
111  binning::AxisSpecs ydef(binning::getBinning(actualObject, btype_, isMap, 2, iME));
112  if (yaxis.labels || !yaxis.title.empty()) { // PSet specifies title / label only
113  std::string *labels(yaxis.labels);
114  std::string title(yaxis.title);
115  yaxis = ydef;
116  delete[] yaxis.labels;
117  yaxis.labels = labels;
118  yaxis.title = title;
119  } else
120  yaxis = ydef;
121  }
122 
123  if (yaxis.high - yaxis.low < 1.e-10) {
124  yaxis.low = -numeric_limits<double>::max();
125  yaxis.high = numeric_limits<double>::max();
126  }
127 
128  if (zaxis.high - zaxis.low < 1.e-10) {
129  zaxis.low = -numeric_limits<double>::max();
130  zaxis.high = numeric_limits<double>::max();
131  }
132  }
133 
134  size_t slashPos(path.find_last_of('/'));
135  string name(path.substr(slashPos + 1));
136  _ibooker.cd();
137  _ibooker.setCurrentFolder(path.substr(0, slashPos));
138 
139  MonitorElement *me(nullptr);
140 
141  switch (kind_) {
143  me = _ibooker.bookFloat(name);
144 
145  break;
146 
148  if (xaxis.edges)
149  me = _ibooker.book1D(name, name, xaxis.nbins, xaxis.edges);
150  else
151  me = _ibooker.book1D(name, name, xaxis.nbins, xaxis.low, xaxis.high);
152 
153  break;
154 
156  if (xaxis.edges) {
157  // DQMStore bookProfile interface uses double* for bin edges
158  double *edges(new double[xaxis.nbins + 1]);
159  std::copy(xaxis.edges, xaxis.edges + xaxis.nbins + 1, edges);
160  me = _ibooker.bookProfile(name, name, xaxis.nbins, edges, yaxis.low, yaxis.high, "");
161  delete[] edges;
162  } else
163  me = _ibooker.bookProfile(name, name, xaxis.nbins, xaxis.low, xaxis.high, yaxis.low, yaxis.high, "");
164 
165  break;
166 
168  if (xaxis.edges || yaxis.edges) {
169  binning::AxisSpecs *specs[] = {&xaxis, &yaxis};
170  for (int iSpec(0); iSpec < 2; iSpec++) {
171  if (!specs[iSpec]->edges) {
172  specs[iSpec]->edges = new float[specs[iSpec]->nbins + 1];
173  int nbins(specs[iSpec]->nbins);
174  double low(specs[iSpec]->low), high(specs[iSpec]->high);
175  for (int i(0); i < nbins + 1; i++)
176  specs[iSpec]->edges[i] = low + (high - low) / nbins * i;
177  }
178  }
179  me = _ibooker.book2D(name, name, xaxis.nbins, xaxis.edges, yaxis.nbins, yaxis.edges);
180  } else
181  me = _ibooker.book2D(name, name, xaxis.nbins, xaxis.low, xaxis.high, yaxis.nbins, yaxis.low, yaxis.high);
182 
183  break;
184 
186  if (zaxis.edges) {
187  zaxis.low = zaxis.edges[0];
188  zaxis.high = zaxis.edges[zaxis.nbins];
189  }
190  if (xaxis.edges || yaxis.edges)
191  throw_("Variable bin size for 2D profile not implemented");
192  me = _ibooker.bookProfile2D(name,
193  name,
194  xaxis.nbins,
195  xaxis.low,
196  xaxis.high,
197  yaxis.nbins,
198  yaxis.low,
199  yaxis.high,
200  zaxis.low,
201  zaxis.high,
202  "");
203 
204  break;
205 
206  default:
207  break;
208  }
209 
210  if (!me)
211  throw_("ME could not be booked");
212 
213  if (isHistogram) {
214  me->setAxisTitle(xaxis.title, 1);
215  me->setAxisTitle(yaxis.title, 2);
216  if (isMap)
217  me->setAxisTitle(zaxis.title, 3);
218 
219  if (xaxis.labels) {
220  for (int iBin(1); iBin <= xaxis.nbins; ++iBin)
221  me->setBinLabel(iBin, xaxis.labels[iBin - 1], 1);
222  }
223  if (yaxis.labels) {
224  for (int iBin(1); iBin <= yaxis.nbins; ++iBin)
225  me->setBinLabel(iBin, yaxis.labels[iBin - 1], 2);
226  }
227  if (zaxis.labels) {
228  for (int iBin(1); iBin <= zaxis.nbins; ++iBin)
229  me->setBinLabel(iBin, zaxis.labels[iBin - 1], 3);
230  }
231 
232  /* FIX: In ROOT 6.0.12 bit 20 is used by ROOT (bit 19 was already in use
233  in 6.0.x). Talking with the ROOT team, users should never use SetBit for
234  their own purpose since those bits are reserved for ROOT internally. See
235  https://github.com/cms-sw/cmssw/issues/21423 for some alternative ways of
236  attaching additional information to a TH1
237 
238  // For plot tagging in RenderPlugin; default values are 1 for both
239  // bits 19 - 23 are free in TH1::fBits
240  // can only pack object + logical dimensions into 5 bits (4 bits for
241  object, 1 bit for dim (1 -> dim >= 2))
242  me->getTH1()->SetBit(uint32_t(actualObject + 1) << 20);
243  if(isMap) me->getTH1()->SetBit(0x1 << 19);
244  */
245 
246  // The render plugin requires some metadata in order to set the correct
247  // rendering for each plot. The original solution was to use bits number
248  // 19 to 23 in TH1::fBits, but these were meant for ROOT's internal usage
249  // and eventually started breaking things, see:
250  // https://github.com/cms-sw/cmssw/issues/21423 The current solution is to
251  // use the UniqueID field in the parent TObject, which is expected to work
252  // if there is no TRef pointing to the TObject.
253 
254  // To check that indeed there is no such TRef, one can use
255  // TestBit(kIsReferenced), e.g. std::cout << "Need to set unique ID at
256  // path = " << path << "; for this path, TestBit(kIsReferenced) is: " <<
257  // (me->getTH1()->TestBit(kIsReferenced)? "true": "false") << std::endl;
258  // // should always output false for the solution to work
259 
260  // Originally, bit 19 in TH1::fBits was set to isMap, while bits 20-23
261  // contained (actualObject+1). The idea is to make sure that both these
262  // variables are easily recoverable in the render plugin, as in this
263  // solution, where isMap is the last bit.
264  me->getTH1()->SetUniqueID(uint32_t(2 * (actualObject + 1) + (isMap ? 1 : 0)));
265  }
266 
267  if (lumiFlag_)
268  me->setLumiFlag();
269 
270  mes_.push_back(me);
271  }
272 
273  active_ = true;
274  }
MonitorElement::Kind kind_
Definition: MESet.h:129
def copy(args, dbName)
virtual void clear() const
Definition: MESet.cc:84
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:113
ObjectType getObject(ObjectType, unsigned)
AxisSpecs getBinning(ObjectType, BinningType, bool, int, unsigned)
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
void throw_(std::string const &_message) const
Definition: MESet.h:122
MonitorElement * bookProfile2D(Args &&...args)
Definition: DQMStore.h:114
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
bool lumiFlag_
Definition: MESet.h:130
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:109
binning::AxisSpecs const * zaxis_
Definition: MESetEcal.h:76
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::AxisSpecs const * xaxis_
Definition: MESetEcal.h:74
std::vector< std::string > generatePaths() const
Definition: MESetEcal.cc:572
MonitorElement * bookFloat(Args &&...args)
Definition: DQMStore.h:105
binning::AxisSpecs const * yaxis_
Definition: MESetEcal.h:75
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
unsigned logicalDimensions_
Definition: MESetEcal.h:73
MESet * ecaldqm::MESetEcal::clone ( std::string const &  _path = "") const
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetTrend, and ecaldqm::MESetProjection.

Definition at line 61 of file MESetEcal.cc.

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

61  {
63  if (!_path.empty())
64  path_ = _path;
65  MESet *copy(new MESetEcal(*this));
66  path_ = path;
67  return copy;
68  }
def copy(args, dbName)
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
std::string path_
Definition: MESet.h:126
template<class Bookable >
void ecaldqm::MESetEcal::doBook_ ( Bookable &  )
private
void ecaldqm::MESetEcal::fill ( DetId const &  _id,
double  _x = 1.,
double  _wy = 1.,
double  _w = 1. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetTrend, and ecaldqm::MESetProjection.

Definition at line 306 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::MESet::fill_(), ecaldqm::binning::findPlotIndex(), and ecaldqm::MESet::otype_.

306  {
307  if (!active_)
308  return;
309 
310  unsigned iME(binning::findPlotIndex(otype_, _id));
311  checkME_(iME);
312 
313  fill_(iME, _x, _wy, _w);
314  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
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
void ecaldqm::MESetEcal::fill ( EcalElectronicsId const &  _id,
double  _x = 1.,
double  _wy = 1.,
double  _w = 1. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetTrend.

Definition at line 316 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::MESet::fill_(), ecaldqm::binning::findPlotIndex(), and ecaldqm::MESet::otype_.

316  {
317  if (!active_)
318  return;
319 
320  unsigned iME(binning::findPlotIndex(otype_, _id));
321  checkME_(iME);
322 
323  fill_(iME, _x, _wy, _w);
324  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
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
void ecaldqm::MESetEcal::fill ( int  _dcctccid,
double  _x = 1.,
double  _wy = 1.,
double  _w = 1. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetTrend, and ecaldqm::MESetProjection.

Definition at line 326 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::MESet::fill_(), ecaldqm::binning::findPlotIndex(), and ecaldqm::MESet::otype_.

326  {
327  if (!active_)
328  return;
329 
330  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
331  checkME_(iME);
332 
333  fill_(iME, _x, _wy, _w);
334  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
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::MESetEcal::fill ( double  _x,
double  _wy = 1.,
double  _w = 1. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetTrend, and ecaldqm::MESetProjection.

Definition at line 336 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::fill_(), and ecaldqm::MESet::mes_.

336  {
337  if (!active_)
338  return;
339 
340  if (mes_.size() != 1)
341  return;
342 
343  fill_(0, _x, _wy, _w);
344  }
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:266
bool active_
Definition: MESet.h:134
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
int ecaldqm::MESetEcal::findBin ( DetId const &  _id,
double  _x,
double  _y = 0. 
) const
virtual

Reimplemented in ecaldqm::MESetDet1D, and ecaldqm::MESetTrend.

Definition at line 538 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

538  {
539  if (!active_)
540  return -1;
541 
542  unsigned iME(binning::findPlotIndex(otype_, _id));
543  checkME_(iME);
544 
545  return mes_[iME]->getTH1()->FindBin(_x, _y);
546  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
int ecaldqm::MESetEcal::findBin ( EcalElectronicsId const &  _id,
double  _x,
double  _y = 0. 
) const
virtual

Reimplemented in ecaldqm::MESetDet1D, and ecaldqm::MESetTrend.

Definition at line 548 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

548  {
549  if (!active_)
550  return -1;
551 
552  unsigned iME(binning::findPlotIndex(otype_, _id));
553  checkME_(iME);
554 
555  return mes_[iME]->getTH1()->FindBin(_x, _y);
556  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
int ecaldqm::MESetEcal::findBin ( int  _dcctccid,
double  _x,
double  _y = 0. 
) const
virtual

Reimplemented in ecaldqm::MESetDet1D, and ecaldqm::MESetTrend.

Definition at line 558 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

558  {
559  if (!active_)
560  return -1;
561 
562  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
563  checkME_(iME);
564 
565  return mes_[iME]->getTH1()->FindBin(_x, _y);
566  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
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
std::vector< std::string > ecaldqm::MESetEcal::generatePaths ( ) const

Definition at line 572 of file MESetEcal.cc.

References ecaldqm::binning::channelName(), ecaldqm::MESet::formPath(), ecaldqm::binning::getNObjects(), ecaldqm::binning::getObject(), ecaldqm::binning::kEB, ecaldqm::binning::kEBMEM, ecaldqm::kEBmLow, ecaldqm::binning::kEBSM, ecaldqm::binning::kEBSMMEM, ecaldqm::binning::kEE, ecaldqm::binning::kEEm, ecaldqm::binning::kEEMEM, ecaldqm::kEEmHigh, ecaldqm::binning::kEEp, ecaldqm::kEEpLow, ecaldqm::binning::kEESM, ecaldqm::binning::kEESMMEM, ecaldqm::binning::kSM, ecaldqm::binning::kSMMEM, ecaldqm::memDCCId(), hgcalPlots::obj, ecaldqm::MESet::otype_, callgraph::path, and ecaldqm::MESet::path_.

Referenced by book(), and retrieve().

572  {
573  using namespace std;
574 
575  vector<string> paths(0);
576 
577  unsigned nME(binning::getNObjects(otype_));
578 
579  for (unsigned iME(0); iME < nME; iME++) {
581 
582  string path(path_);
583  map<string, string> replacements;
584 
585  switch (obj) {
586  case binning::kEB:
587  case binning::kEBMEM:
588  replacements["subdet"] = "EcalBarrel";
589  replacements["prefix"] = "EB";
590  replacements["suffix"] = "";
591  replacements["subdetshort"] = "EB";
592  replacements["subdetshortsig"] = "EB";
593  replacements["supercrystal"] = "trigger tower";
594  break;
595  case binning::kEE:
596  case binning::kEEMEM:
597  replacements["subdet"] = "EcalEndcap";
598  replacements["prefix"] = "EE";
599  replacements["subdetshort"] = "EE";
600  replacements["subdetshortsig"] = "EE";
601  replacements["supercrystal"] = "super crystal";
602  break;
603  case binning::kEEm:
604  replacements["subdet"] = "EcalEndcap";
605  replacements["prefix"] = "EE";
606  replacements["suffix"] = " EE -";
607  replacements["subdetshort"] = "EE";
608  replacements["subdetshortsig"] = "EEM";
609  replacements["supercrystal"] = "super crystal";
610  break;
611  case binning::kEEp:
612  replacements["subdet"] = "EcalEndcap";
613  replacements["prefix"] = "EE";
614  replacements["suffix"] = " EE +";
615  replacements["subdetshort"] = "EE";
616  replacements["subdetshortsig"] = "EEP";
617  replacements["supercrystal"] = "super crystal";
618  break;
619  case binning::kSM:
620  if (iME <= kEEmHigh || iME >= kEEpLow) {
621  replacements["subdet"] = "EcalEndcap";
622  replacements["prefix"] = "EE";
623  replacements["supercrystal"] = "super crystal";
624  } else {
625  replacements["subdet"] = "EcalBarrel";
626  replacements["prefix"] = "EB";
627  replacements["supercrystal"] = "trigger tower";
628  }
629  replacements["sm"] = binning::channelName(iME + 1);
630  break;
631  case binning::kEBSM:
632  replacements["subdet"] = "EcalBarrel";
633  replacements["prefix"] = "EB";
634  replacements["sm"] = binning::channelName(iME + kEBmLow + 1);
635  replacements["supercrystal"] = "trigger tower";
636  break;
637  case binning::kEESM:
638  replacements["subdet"] = "EcalEndcap";
639  replacements["prefix"] = "EE";
640  replacements["sm"] = binning::channelName(iME <= kEEmHigh ? iME + 1 : iME + 37);
641  replacements["supercrystal"] = "super crystal";
642  break;
643  case binning::kSMMEM: {
644  unsigned iDCC(memDCCId(iME) - 1);
645  // dccId(unsigned) skips DCCs without MEM
646  if (iDCC <= kEEmHigh || iDCC >= kEEpLow) {
647  replacements["subdet"] = "EcalEndcap";
648  replacements["prefix"] = "EE";
649  } else {
650  replacements["subdet"] = "EcalBarrel";
651  replacements["prefix"] = "EB";
652  }
653  replacements["sm"] = binning::channelName(iDCC + 1);
654  } break;
655  case binning::kEBSMMEM: {
656  unsigned iDCC(memDCCId(iME + 4) - 1);
657  replacements["subdet"] = "EcalBarrel";
658  replacements["prefix"] = "EB";
659  replacements["sm"] = binning::channelName(iDCC + 1);
660  } break;
661  case binning::kEESMMEM: {
662  unsigned iDCC(memDCCId(iME < 4 ? iME : iME + 36) - 1);
663  replacements["subdet"] = "EcalEndcap";
664  replacements["prefix"] = "EE";
665  replacements["sm"] = binning::channelName(iDCC + 1);
666  }
667  default:
668  break;
669  }
670 
671  paths.push_back(formPath(replacements));
672  }
673 
674  return paths;
675  }
unsigned getNObjects(ObjectType)
ObjectType getObject(ObjectType, unsigned)
std::string channelName(uint32_t, BinningType _btype=kDCC)
std::string formPath(PathReplacements const &) const
Definition: MESet.cc:150
unsigned memDCCId(unsigned)
binning::ObjectType otype_
Definition: MESet.h:127
std::string path_
Definition: MESet.h:126
double ecaldqm::MESetEcal::getBinContent ( DetId const &  _id,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetProjection.

Definition at line 442 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

442  {
443  if (!active_)
444  return 0.;
445 
446  unsigned iME(binning::findPlotIndex(otype_, _id));
447  checkME_(iME);
448 
449  return mes_[iME]->getBinContent(_bin);
450  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetEcal::getBinContent ( EcalElectronicsId const &  _id,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 452 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

452  {
453  if (!active_)
454  return 0.;
455 
456  unsigned iME(binning::findPlotIndex(otype_, _id));
457  checkME_(iME);
458 
459  return mes_[iME]->getBinContent(_bin);
460  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetEcal::getBinContent ( int  _dcctccid,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 462 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

462  {
463  if (!active_)
464  return 0.;
465 
466  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
467  checkME_(iME);
468 
469  return mes_[iME]->getBinContent(_bin);
470  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
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::MESetEcal::getBinEntries ( DetId const &  _id,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetProjection.

Definition at line 502 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

502  {
503  if (!active_)
504  return 0.;
506  return 0.;
507 
508  unsigned iME(binning::findPlotIndex(otype_, _id));
509  checkME_(iME);
510 
511  return mes_[iME]->getBinEntries(_bin);
512  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetEcal::getBinEntries ( EcalElectronicsId const &  _id,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 514 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

514  {
515  if (!active_)
516  return 0.;
518  return 0.;
519 
520  unsigned iME(binning::findPlotIndex(otype_, _id));
521  checkME_(iME);
522 
523  return mes_[iME]->getBinEntries(_bin);
524  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetEcal::getBinEntries ( int  _dcctccid,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 526 of file MESetEcal.cc.

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

526  {
527  if (!active_)
528  return 0.;
530  return 0.;
531 
532  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
533  checkME_(iME);
534 
535  return mes_[iME]->getBinEntries(_bin);
536  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
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::MESetEcal::getBinError ( DetId const &  _id,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetProjection.

Definition at line 472 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

472  {
473  if (!active_)
474  return 0.;
475 
476  unsigned iME(binning::findPlotIndex(otype_, _id));
477  checkME_(iME);
478 
479  return mes_[iME]->getBinError(_bin);
480  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetEcal::getBinError ( EcalElectronicsId const &  _id,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 482 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

482  {
483  if (!active_)
484  return 0.;
485 
486  unsigned iME(binning::findPlotIndex(otype_, _id));
487  checkME_(iME);
488 
489  return mes_[iME]->getBinError(_bin);
490  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetEcal::getBinError ( int  _dcctccid,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 492 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

492  {
493  if (!active_)
494  return 0.;
495 
496  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
497  checkME_(iME);
498 
499  return mes_[iME]->getBinError(_bin);
500  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
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
bool ecaldqm::MESetEcal::isVariableBinning ( ) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetTrend.

Definition at line 568 of file MESetEcal.cc.

References ecaldqm::binning::AxisSpecs::edges, xaxis_, yaxis_, and zaxis_.

568  {
569  return (xaxis_ && xaxis_->edges) || (yaxis_ && yaxis_->edges) || (zaxis_ && zaxis_->edges);
570  }
binning::AxisSpecs const * zaxis_
Definition: MESetEcal.h:76
binning::AxisSpecs const * xaxis_
Definition: MESetEcal.h:74
binning::AxisSpecs const * yaxis_
Definition: MESetEcal.h:75
MESet & ecaldqm::MESetEcal::operator= ( MESet const &  _rhs)
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetTrend.

Definition at line 40 of file MESetEcal.cc.

References logicalDimensions_, ecaldqm::MESet::operator=(), xaxis_, yaxis_, and zaxis_.

Referenced by ecaldqm::MESetTrend::operator=().

40  {
41  delete xaxis_;
42  delete yaxis_;
43  delete zaxis_;
44  xaxis_ = nullptr;
45  yaxis_ = nullptr;
46  zaxis_ = nullptr;
47 
48  MESetEcal const *pRhs(dynamic_cast<MESetEcal const *>(&_rhs));
49  if (pRhs) {
50  logicalDimensions_ = pRhs->logicalDimensions_;
51  if (pRhs->xaxis_)
52  xaxis_ = new binning::AxisSpecs(*pRhs->xaxis_);
53  if (pRhs->yaxis_)
54  yaxis_ = new binning::AxisSpecs(*pRhs->yaxis_);
55  if (pRhs->zaxis_)
56  zaxis_ = new binning::AxisSpecs(*pRhs->zaxis_);
57  }
58  return MESet::operator=(_rhs);
59  }
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
binning::AxisSpecs const * zaxis_
Definition: MESetEcal.h:76
binning::AxisSpecs const * xaxis_
Definition: MESetEcal.h:74
virtual MESet & operator=(MESet const &)
Definition: MESet.cc:64
binning::AxisSpecs const * yaxis_
Definition: MESetEcal.h:75
unsigned logicalDimensions_
Definition: MESetEcal.h:73
bool ecaldqm::MESetEcal::retrieve ( DQMStore::IGetter _igetter,
std::string *  _failedPath = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 276 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::clear(), generatePaths(), DQMStore::IGetter::get(), ecaldqm::MESet::mes_, callgraph::path, AlCaHLTBitMon_QueryRunRegistry::string, and ecaldqm::MESet::throw_().

276  {
277  clear();
278 
279  std::vector<std::string> mePaths(generatePaths());
280  if (mePaths.empty()) {
281  if (_failedPath)
282  _failedPath->clear();
283  return false;
284  }
285 
286  for (unsigned iME(0); iME < mePaths.size(); iME++) {
287  std::string &path(mePaths[iME]);
288  if (path.find('%') != std::string::npos)
289  throw_("retrieve() called with incompletely formed path [" + path + "]");
290 
291  MonitorElement *me(_igetter.get(path));
292  if (me)
293  mes_.push_back(me);
294  else {
295  clear();
296  if (_failedPath)
297  *_failedPath = path;
298  return false;
299  }
300  }
301 
302  active_ = true;
303  return true;
304  }
virtual void clear() const
Definition: MESet.cc:84
void throw_(std::string const &_message) const
Definition: MESet.h:122
MonitorElement * get(std::string const &path)
Definition: DQMStore.cc:303
bool active_
Definition: MESet.h:134
std::vector< std::string > generatePaths() const
Definition: MESetEcal.cc:572
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetEcal::setBinContent ( DetId const &  _id,
int  _bin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 346 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

346  {
347  if (!active_)
348  return;
349 
350  unsigned iME(binning::findPlotIndex(otype_, _id));
351  checkME_(iME);
352 
353  mes_[iME]->setBinContent(_bin, _content);
354  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetEcal::setBinContent ( EcalElectronicsId const &  _id,
int  _bin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 356 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

356  {
357  if (!active_)
358  return;
359 
360  unsigned iME(binning::findPlotIndex(otype_, _id));
361  checkME_(iME);
362 
363  mes_[iME]->setBinContent(_bin, _content);
364  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetEcal::setBinContent ( int  _dcctccid,
int  _bin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 366 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

366  {
367  if (!active_)
368  return;
369 
370  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
371  checkME_(iME);
372 
373  mes_[iME]->setBinContent(_bin, _content);
374  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
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::MESetEcal::setBinEntries ( DetId const &  _id,
int  _bin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 406 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

406  {
407  if (!active_)
408  return;
410  return;
411 
412  unsigned iME(binning::findPlotIndex(otype_, _id));
413  checkME_(iME);
414 
415  mes_[iME]->setBinEntries(_bin, _entries);
416  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetEcal::setBinEntries ( EcalElectronicsId const &  _id,
int  _bin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 418 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

418  {
419  if (!active_)
420  return;
422  return;
423 
424  unsigned iME(binning::findPlotIndex(otype_, _id));
425  checkME_(iME);
426 
427  mes_[iME]->setBinEntries(_bin, _entries);
428  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetEcal::setBinEntries ( int  _dcctccid,
int  _bin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 430 of file MESetEcal.cc.

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

430  {
431  if (!active_)
432  return;
434  return;
435 
436  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
437  checkME_(iME);
438 
439  mes_[iME]->setBinEntries(_bin, _entries);
440  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
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::MESetEcal::setBinError ( DetId const &  _id,
int  _bin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 376 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

376  {
377  if (!active_)
378  return;
379 
380  unsigned iME(binning::findPlotIndex(otype_, _id));
381  checkME_(iME);
382 
383  mes_[iME]->setBinError(_bin, _error);
384  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetEcal::setBinError ( EcalElectronicsId const &  _id,
int  _bin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 386 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

386  {
387  if (!active_)
388  return;
389 
390  unsigned iME(binning::findPlotIndex(otype_, _id));
391  checkME_(iME);
392 
393  mes_[iME]->setBinError(_bin, _error);
394  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetEcal::setBinError ( int  _dcctccid,
int  _bin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 396 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findPlotIndex(), ecaldqm::MESet::mes_, and ecaldqm::MESet::otype_.

396  {
397  if (!active_)
398  return;
399 
400  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
401  checkME_(iME);
402 
403  mes_[iME]->setBinError(_bin, _error);
404  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
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

Member Data Documentation

unsigned ecaldqm::MESetEcal::logicalDimensions_
protected

Definition at line 73 of file MESetEcal.h.

Referenced by book(), MESetEcal(), and operator=().

binning::AxisSpecs const* ecaldqm::MESetEcal::xaxis_
protected
binning::AxisSpecs const* ecaldqm::MESetEcal::yaxis_
protected

Definition at line 75 of file MESetEcal.h.

Referenced by book(), isVariableBinning(), MESetEcal(), operator=(), and ~MESetEcal().

binning::AxisSpecs const* ecaldqm::MESetEcal::zaxis_
protected

Definition at line 76 of file MESetEcal.h.

Referenced by book(), isVariableBinning(), operator=(), and ~MESetEcal().