CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 &) override
 
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 const &, 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 ()
 
- 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 11 of file MESetEcal.cc.

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

Referenced by clone().

11  :
12  MESet(_fullPath, _otype, _btype, _kind),
13  logicalDimensions_(_logicalDimensions),
14  xaxis_(_xaxis ? new binning::AxisSpecs(*_xaxis) : 0),
15  yaxis_(_yaxis ? new binning::AxisSpecs(*_yaxis) : 0),
16  zaxis_(_zaxis ? new binning::AxisSpecs(*_zaxis) : 0)
17  {
18  if(btype_ == binning::kUser && ((logicalDimensions_ > 0 && !xaxis_) || (logicalDimensions_ > 1 && !yaxis_)))
19  throw_("Need axis specifications");
20  }
void throw_(std::string const &_message) const
Definition: MESet.h:125
binning::AxisSpecs const * zaxis_
Definition: MESetEcal.h:71
binning::AxisSpecs const * xaxis_
Definition: MESetEcal.h:69
binning::AxisSpecs const * yaxis_
Definition: MESetEcal.h:70
binning::BinningType btype_
Definition: MESet.h:134
unsigned logicalDimensions_
Definition: MESetEcal.h:68
ecaldqm::MESetEcal::MESetEcal ( MESetEcal const &  _orig)

Definition at line 22 of file MESetEcal.cc.

22  :
23  MESet(_orig),
24  logicalDimensions_(_orig.logicalDimensions_),
25  xaxis_(_orig.xaxis_ ? new binning::AxisSpecs(*_orig.xaxis_) : 0),
26  yaxis_(_orig.yaxis_ ? new binning::AxisSpecs(*_orig.yaxis_) : 0),
27  zaxis_(_orig.zaxis_ ? new binning::AxisSpecs(*_orig.zaxis_) : 0)
28  {
29  }
binning::AxisSpecs const * zaxis_
Definition: MESetEcal.h:71
binning::AxisSpecs const * xaxis_
Definition: MESetEcal.h:69
binning::AxisSpecs const * yaxis_
Definition: MESetEcal.h:70
unsigned logicalDimensions_
Definition: MESetEcal.h:68
ecaldqm::MESetEcal::~MESetEcal ( )

Definition at line 31 of file MESetEcal.cc.

References xaxis_, yaxis_, and zaxis_.

32  {
33  delete xaxis_;
34  delete yaxis_;
35  delete zaxis_;
36  }
binning::AxisSpecs const * zaxis_
Definition: MESetEcal.h:71
binning::AxisSpecs const * xaxis_
Definition: MESetEcal.h:69
binning::AxisSpecs const * yaxis_
Definition: MESetEcal.h:70

Member Function Documentation

void ecaldqm::MESetEcal::book ( DQMStore _dqmStore)
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetTrend.

Definition at line 69 of file MESetEcal.cc.

References doBook_().

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

70  {
71  doBook_(_dqmStore);
72  }
void doBook_(Bookable &)
Definition: MESetEcal.cc:511
void ecaldqm::MESetEcal::book ( DQMStore::IBooker _ibooker)
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetTrend.

Definition at line 75 of file MESetEcal.cc.

References doBook_().

76  {
77  doBook_(_ibooker);
78  }
void doBook_(Bookable &)
Definition: MESetEcal.cc:511
MESet * ecaldqm::MESetEcal::clone ( std::string const &  _path = "") const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

Definition at line 59 of file MESetEcal.cc.

References filterCSVwithJSON::copy, MESetEcal(), getHLTPrescaleColumns::path, ecaldqm::MESet::path_, and AlCaHLTBitMon_QueryRunRegistry::string.

60  {
62  if(_path != "") path_ = _path;
63  MESet* copy(new MESetEcal(*this));
64  path_ = path;
65  return copy;
66  }
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:11
std::string path_
Definition: MESet.h:132
template<class Bookable >
void ecaldqm::MESetEcal::doBook_ ( Bookable &  _booker)
private

Definition at line 511 of file MESetEcal.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::clear(), MonitorElement::DQM_KIND_REAL, MonitorElement::DQM_KIND_TH1F, MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, prof2calltree::edges, ecaldqm::binning::AxisSpecs::edges, generatePaths(), ecaldqm::binning::getBinning(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::binning::AxisSpecs::high, i, ecaldqm::MESet::kind_, tablePrinter::labels, ecaldqm::binning::AxisSpecs::labels, logicalDimensions_, ecaldqm::binning::AxisSpecs::low, ecaldqm::MESet::lumiFlag_, max(), ecaldqm::MESet::mes_, mergeVDriftHistosByStation::name, ecaldqm::binning::AxisSpecs::nbins, pileupCalc::nbins, ecaldqm::MESet::otype_, getHLTPrescaleColumns::path, MonitorElement::setAxisTitle(), MonitorElement::setBinLabel(), MonitorElement::setLumiFlag(), AlCaHLTBitMon_QueryRunRegistry::string, ecaldqm::MESet::throw_(), indexGen::title, ecaldqm::binning::AxisSpecs::title, xaxis_, yaxis_, and zaxis_.

Referenced by book().

512  {
513  using namespace std;
514 
515  clear();
516 
517  vector<string> mePaths(generatePaths());
518 
519  for(unsigned iME(0); iME < mePaths.size(); iME++){
520  string& path(mePaths[iME]);
521  if(path.find('%') != string::npos)
522  throw_("book() called with incompletely formed path [" + path + "]");
523 
524  binning::ObjectType actualObject(binning::getObject(otype_, iME));
525 
526  binning::AxisSpecs xaxis, yaxis, zaxis;
527 
528  bool isHistogram(logicalDimensions_ > 0);
529  bool isMap(logicalDimensions_ > 1);
530 
531  if(isHistogram){
532 
533  if(xaxis_) xaxis = *xaxis_;
534  if(yaxis_) yaxis = *yaxis_;
535  if(zaxis_) zaxis = *zaxis_;
536 
537  if(xaxis.nbins == 0){ // uses preset
538  binning::AxisSpecs xdef(binning::getBinning(actualObject, btype_, isMap, 1, iME));
539  if(xaxis.labels || xaxis.title != ""){ // PSet specifies title / label only
540  std::string* labels(xaxis.labels);
541  std::string title(xaxis.title);
542  xaxis = xdef;
543  delete [] xaxis.labels;
544  xaxis.labels = labels;
545  xaxis.title = title;
546  }
547  else
548  xaxis = xdef;
549  }
550 
551  if(isMap && yaxis.nbins == 0){
552  binning::AxisSpecs ydef(binning::getBinning(actualObject, btype_, isMap, 2, iME));
553  if(yaxis.labels || yaxis.title != ""){ // PSet specifies title / label only
554  std::string* labels(yaxis.labels);
555  std::string title(yaxis.title);
556  yaxis = ydef;
557  delete [] yaxis.labels;
558  yaxis.labels = labels;
559  yaxis.title = title;
560  }
561  else
562  yaxis = ydef;
563  }
564 
565  if(yaxis.high - yaxis.low < 1.e-10){
566  yaxis.low = -numeric_limits<double>::max();
567  yaxis.high = numeric_limits<double>::max();
568  }
569 
570  if(zaxis.high - zaxis.low < 1.e-10){
571  zaxis.low = -numeric_limits<double>::max();
572  zaxis.high = numeric_limits<double>::max();
573  }
574  }
575 
576  size_t slashPos(path.find_last_of('/'));
577  string name(path.substr(slashPos + 1));
578  _booker.cd();
579  _booker.setCurrentFolder(path.substr(0, slashPos));
580 
581  MonitorElement* me(0);
582 
583  switch(kind_) {
585  me = _booker.bookFloat(name);
586 
587  break;
588 
590  if(xaxis.edges){
591  float* edges(new float[xaxis.nbins + 1]);
592  for(int i(0); i < xaxis.nbins + 1; i++)
593  edges[i] = xaxis.edges[i];
594  me = _booker.book1D(name, name, xaxis.nbins, edges);
595  delete [] edges;
596  }
597  else
598  me = _booker.book1D(name, name, xaxis.nbins, xaxis.low, xaxis.high);
599 
600  break;
601 
603  if(xaxis.edges) {
604  me = _booker.bookProfile(name, name, xaxis.nbins, xaxis.edges, yaxis.low, yaxis.high, "");
605  }
606  else
607  me = _booker.bookProfile(name, name, xaxis.nbins, xaxis.low, xaxis.high, yaxis.low, yaxis.high, "");
608 
609  break;
610 
612  if(xaxis.edges || yaxis.edges) {
613  binning::AxisSpecs* specs[] = {&xaxis, &yaxis};
614  float* edges[] = {new float[xaxis.nbins + 1], new float[yaxis.nbins + 1]};
615  for(int iSpec(0); iSpec < 2; iSpec++){
616  if(specs[iSpec]->edges){
617  for(int i(0); i < specs[iSpec]->nbins + 1; i++)
618  edges[iSpec][i] = specs[iSpec]->edges[i];
619  }
620  else{
621  int nbins(specs[iSpec]->nbins);
622  double low(specs[iSpec]->low), high(specs[iSpec]->high);
623  for(int i(0); i < nbins + 1; i++)
624  edges[iSpec][i] = low + (high - low) / nbins * i;
625  }
626  }
627  me = _booker.book2D(name, name, xaxis.nbins, edges[0], yaxis.nbins, edges[1]);
628  for(int iSpec(0); iSpec < 2; iSpec++)
629  delete [] edges[iSpec];
630  }
631  else
632  me = _booker.book2D(name, name, xaxis.nbins, xaxis.low, xaxis.high, yaxis.nbins, yaxis.low, yaxis.high);
633 
634  break;
635 
637  if(zaxis.edges) {
638  zaxis.low = zaxis.edges[0];
639  zaxis.high = zaxis.edges[zaxis.nbins];
640  }
641  if(xaxis.edges || yaxis.edges)
642  throw_("Variable bin size for 2D profile not implemented");
643  me = _booker.bookProfile2D(name, name, xaxis.nbins, xaxis.low, xaxis.high, yaxis.nbins, yaxis.low, yaxis.high, zaxis.low, zaxis.high, "");
644 
645  break;
646 
647  default :
648  break;
649  }
650 
651  if(!me)
652  throw_("ME could not be booked");
653 
654  if(isHistogram){
655  me->setAxisTitle(xaxis.title, 1);
656  me->setAxisTitle(yaxis.title, 2);
657  if(isMap) me->setAxisTitle(zaxis.title, 3);
658 
659  if(xaxis.labels){
660  for(int iBin(1); iBin <= xaxis.nbins; ++iBin)
661  me->setBinLabel(iBin, xaxis.labels[iBin - 1], 1);
662  }
663  if(yaxis.labels){
664  for(int iBin(1); iBin <= yaxis.nbins; ++iBin)
665  me->setBinLabel(iBin, yaxis.labels[iBin - 1], 2);
666  }
667  if(zaxis.labels){
668  for(int iBin(1); iBin <= zaxis.nbins; ++iBin)
669  me->setBinLabel(iBin, zaxis.labels[iBin - 1], 3);
670  }
671 
672  // For plot tagging in RenderPlugin; default values are 1 for both
673  // bits 19 - 23 are free in TH1::fBits
674  // can only pack object + logical dimensions into 5 bits (4 bits for object, 1 bit for dim (1 -> dim >= 2))
675  me->getTH1()->SetBit(uint32_t(actualObject + 1) << 20);
676  if(isMap) me->getTH1()->SetBit(0x1 << 19);
677  }
678 
679  if(lumiFlag_) me->setLumiFlag();
680 
681  mes_.push_back(me);
682  }
683 
684  active_ = true;
685  }
MonitorElement::Kind kind_
Definition: MESet.h:135
int i
Definition: DBlmapReader.cc:9
virtual void clear() const
Definition: MESet.cc:93
ObjectType getObject(ObjectType, unsigned)
dictionary edges
AxisSpecs getBinning(ObjectType, BinningType, bool, int, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
const T & max(const T &a, const T &b)
void throw_(std::string const &_message) const
Definition: MESet.h:125
bool lumiFlag_
Definition: MESet.h:136
binning::AxisSpecs const * zaxis_
Definition: MESetEcal.h:71
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::AxisSpecs const * xaxis_
Definition: MESetEcal.h:69
std::vector< std::string > generatePaths() const
Definition: MESetEcal.cc:396
binning::AxisSpecs const * yaxis_
Definition: MESetEcal.h:70
binning::BinningType btype_
Definition: MESet.h:134
unsigned logicalDimensions_
Definition: MESetEcal.h:68
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 110 of file MESetEcal.cc.

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

111  {
112  if(!active_) return;
113 
114  unsigned iME(binning::findPlotIndex(otype_, _id));
115  checkME_(iME);
116 
117  fill_(iME, _x, _wy, _w);
118  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:278
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
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 121 of file MESetEcal.cc.

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

122  {
123  if(!active_) return;
124 
125  unsigned iME(binning::findPlotIndex(otype_, _id));
126  checkME_(iME);
127 
128  fill_(iME, _x, _wy, _w);
129  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:278
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
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 132 of file MESetEcal.cc.

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

133  {
134  if(!active_) return;
135 
136  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
137  checkME_(iME);
138 
139  fill_(iME, _x, _wy, _w);
140  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:278
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
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 143 of file MESetEcal.cc.

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

144  {
145  if(!active_) return;
146 
147  if(mes_.size() != 1) return;
148 
149  fill_(0, _x, _wy, _w);
150  }
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:278
bool active_
Definition: MESet.h:139
int ecaldqm::MESetEcal::findBin ( DetId const &  _id,
double  _x,
double  _y = 0. 
) const
virtual

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

Definition at line 357 of file MESetEcal.cc.

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

358  {
359  if(!active_) return -1;
360 
361  unsigned iME(binning::findPlotIndex(otype_, _id));
362  checkME_(iME);
363 
364  return mes_[iME]->getTH1()->FindBin(_x, _y);
365  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
int ecaldqm::MESetEcal::findBin ( EcalElectronicsId const &  _id,
double  _x,
double  _y = 0. 
) const
virtual

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

Definition at line 368 of file MESetEcal.cc.

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

369  {
370  if(!active_) return -1;
371 
372  unsigned iME(binning::findPlotIndex(otype_, _id));
373  checkME_(iME);
374 
375  return mes_[iME]->getTH1()->FindBin(_x, _y);
376  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
int ecaldqm::MESetEcal::findBin ( int  _dcctccid,
double  _x,
double  _y = 0. 
) const
virtual

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

Definition at line 379 of file MESetEcal.cc.

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

380  {
381  if(!active_) return -1;
382 
383  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
384  checkME_(iME);
385 
386  return mes_[iME]->getTH1()->FindBin(_x, _y);
387  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
std::vector< std::string > ecaldqm::MESetEcal::generatePaths ( ) const

Definition at line 396 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(), getGTfromDQMFile::obj, ecaldqm::MESet::otype_, getHLTPrescaleColumns::path, ecaldqm::MESet::path_, and EgammaValidation_cff::paths.

Referenced by doBook_(), and retrieve().

397  {
398  using namespace std;
399 
400  vector<string> paths(0);
401 
402  unsigned nME(binning::getNObjects(otype_));
403 
404  for(unsigned iME(0); iME < nME; iME++) {
406 
407  string path(path_);
408  map<string, string> replacements;
409 
410  switch(obj){
411  case binning::kEB:
412  case binning::kEBMEM:
413  replacements["subdet"] = "EcalBarrel";
414  replacements["prefix"] = "EB";
415  replacements["suffix"] = "";
416  replacements["subdetshort"] = "EB";
417  replacements["subdetshortsig"] = "EB";
418  replacements["supercrystal"] = "trigger tower";
419  break;
420  case binning::kEE:
421  case binning::kEEMEM:
422  replacements["subdet"] = "EcalEndcap";
423  replacements["prefix"] = "EE";
424  replacements["subdetshort"] = "EE";
425  replacements["subdetshortsig"] = "EE";
426  replacements["supercrystal"] = "super crystal";
427  break;
428  case binning::kEEm:
429  replacements["subdet"] = "EcalEndcap";
430  replacements["prefix"] = "EE";
431  replacements["suffix"] = " EE -";
432  replacements["subdetshort"] = "EE";
433  replacements["subdetshortsig"] = "EEM";
434  replacements["supercrystal"] = "super crystal";
435  break;
436  case binning::kEEp:
437  replacements["subdet"] = "EcalEndcap";
438  replacements["prefix"] = "EE";
439  replacements["suffix"] = " EE +";
440  replacements["subdetshort"] = "EE";
441  replacements["subdetshortsig"] = "EEP";
442  replacements["supercrystal"] = "super crystal";
443  break;
444  case binning::kSM:
445  if(iME <= kEEmHigh || iME >= kEEpLow){
446  replacements["subdet"] = "EcalEndcap";
447  replacements["prefix"] = "EE";
448  replacements["supercrystal"] = "super crystal";
449  }
450  else{
451  replacements["subdet"] = "EcalBarrel";
452  replacements["prefix"] = "EB";
453  replacements["supercrystal"] = "trigger tower";
454  }
455  replacements["sm"] = binning::channelName(iME + 1);
456  break;
457  case binning::kEBSM:
458  replacements["subdet"] = "EcalBarrel";
459  replacements["prefix"] = "EB";
460  replacements["sm"] = binning::channelName(iME + kEBmLow + 1);
461  replacements["supercrystal"] = "trigger tower";
462  break;
463  case binning::kEESM:
464  replacements["subdet"] = "EcalEndcap";
465  replacements["prefix"] = "EE";
466  replacements["sm"] = binning::channelName(iME <= kEEmHigh ? iME + 1 : iME + 37);
467  replacements["supercrystal"] = "super crystal";
468  break;
469  case binning::kSMMEM:
470  {
471  unsigned iDCC(memDCCId(iME) - 1);
472  //dccId(unsigned) skips DCCs without MEM
473  if(iDCC <= kEEmHigh || iDCC >= kEEpLow){
474  replacements["subdet"] = "EcalEndcap";
475  replacements["prefix"] = "EE";
476  }
477  else{
478  replacements["subdet"] = "EcalBarrel";
479  replacements["prefix"] = "EB";
480  }
481  replacements["sm"] = binning::channelName(iDCC + 1);
482  }
483  break;
484  case binning::kEBSMMEM:
485  {
486  unsigned iDCC(memDCCId(iME + 4) - 1);
487  replacements["subdet"] = "EcalBarrel";
488  replacements["prefix"] = "EB";
489  replacements["sm"] = binning::channelName(iDCC + 1);
490  }
491  break;
492  case binning::kEESMMEM:
493  {
494  unsigned iDCC(memDCCId(iME < 4 ? iME : iME + 36) - 1);
495  replacements["subdet"] = "EcalEndcap";
496  replacements["prefix"] = "EE";
497  replacements["sm"] = binning::channelName(iDCC + 1);
498  }
499  default:
500  break;
501  }
502 
503  paths.push_back(formPath(replacements));
504  }
505 
506  return paths;
507  }
unsigned getNObjects(ObjectType)
ObjectType getObject(ObjectType, unsigned)
std::string channelName(uint32_t, BinningType _btype=kDCC)
std::string formPath(PathReplacements const &) const
Definition: MESet.cc:163
unsigned memDCCId(unsigned)
binning::ObjectType otype_
Definition: MESet.h:133
std::string path_
Definition: MESet.h:132
double ecaldqm::MESetEcal::getBinContent ( DetId const &  _id,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetProjection.

Definition at line 255 of file MESetEcal.cc.

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

256  {
257  if(!active_) return 0.;
258 
259  unsigned iME(binning::findPlotIndex(otype_, _id));
260  checkME_(iME);
261 
262  return mes_[iME]->getBinContent(_bin);
263  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
double ecaldqm::MESetEcal::getBinContent ( EcalElectronicsId const &  _id,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 266 of file MESetEcal.cc.

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

267  {
268  if(!active_) return 0.;
269 
270  unsigned iME(binning::findPlotIndex(otype_, _id));
271  checkME_(iME);
272 
273  return mes_[iME]->getBinContent(_bin);
274  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
double ecaldqm::MESetEcal::getBinContent ( int  _dcctccid,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 277 of file MESetEcal.cc.

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

278  {
279  if(!active_) return 0.;
280 
281  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
282  checkME_(iME);
283 
284  return mes_[iME]->getBinContent(_bin);
285  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
double ecaldqm::MESetEcal::getBinEntries ( DetId const &  _id,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetProjection.

Definition at line 321 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_.

322  {
323  if(!active_) return 0.;
325 
326  unsigned iME(binning::findPlotIndex(otype_, _id));
327  checkME_(iME);
328 
329  return mes_[iME]->getBinEntries(_bin);
330  }
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
double ecaldqm::MESetEcal::getBinEntries ( EcalElectronicsId const &  _id,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 333 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_.

334  {
335  if(!active_) return 0.;
337 
338  unsigned iME(binning::findPlotIndex(otype_, _id));
339  checkME_(iME);
340 
341  return mes_[iME]->getBinEntries(_bin);
342  }
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
double ecaldqm::MESetEcal::getBinEntries ( int  _dcctccid,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 345 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_.

346  {
347  if(!active_) return 0.;
349 
350  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
351  checkME_(iME);
352 
353  return mes_[iME]->getBinEntries(_bin);
354  }
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
double ecaldqm::MESetEcal::getBinError ( DetId const &  _id,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetProjection.

Definition at line 288 of file MESetEcal.cc.

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

289  {
290  if(!active_) return 0.;
291 
292  unsigned iME(binning::findPlotIndex(otype_, _id));
293  checkME_(iME);
294 
295  return mes_[iME]->getBinError(_bin);
296  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
double ecaldqm::MESetEcal::getBinError ( EcalElectronicsId const &  _id,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 299 of file MESetEcal.cc.

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

300  {
301  if(!active_) return 0.;
302 
303  unsigned iME(binning::findPlotIndex(otype_, _id));
304  checkME_(iME);
305 
306  return mes_[iME]->getBinError(_bin);
307  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
double ecaldqm::MESetEcal::getBinError ( int  _dcctccid,
int  _bin 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 310 of file MESetEcal.cc.

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

311  {
312  if(!active_) return 0.;
313 
314  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
315  checkME_(iME);
316 
317  return mes_[iME]->getBinError(_bin);
318  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
bool ecaldqm::MESetEcal::isVariableBinning ( ) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetTrend.

Definition at line 390 of file MESetEcal.cc.

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

391  {
392  return (xaxis_ && xaxis_->edges) || (yaxis_ && yaxis_->edges) || (zaxis_ && zaxis_->edges);
393  }
binning::AxisSpecs const * zaxis_
Definition: MESetEcal.h:71
binning::AxisSpecs const * xaxis_
Definition: MESetEcal.h:69
binning::AxisSpecs const * yaxis_
Definition: MESetEcal.h:70
MESet & ecaldqm::MESetEcal::operator= ( MESet const &  _rhs)
overridevirtual

Reimplemented from ecaldqm::MESet.

Reimplemented in ecaldqm::MESetTrend.

Definition at line 39 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_ = 0;
45  yaxis_ = 0;
46  zaxis_ = 0;
47 
48  MESetEcal const* pRhs(dynamic_cast<MESetEcal const*>(&_rhs));
49  if(pRhs){
50  logicalDimensions_ = pRhs->logicalDimensions_;
51  if(pRhs->xaxis_) xaxis_ = new binning::AxisSpecs(*pRhs->xaxis_);
52  if(pRhs->yaxis_) yaxis_ = new binning::AxisSpecs(*pRhs->yaxis_);
53  if(pRhs->zaxis_) zaxis_ = new binning::AxisSpecs(*pRhs->zaxis_);
54  }
55  return MESet::operator=(_rhs);
56  }
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:11
binning::AxisSpecs const * zaxis_
Definition: MESetEcal.h:71
binning::AxisSpecs const * xaxis_
Definition: MESetEcal.h:69
virtual MESet & operator=(MESet const &)
Definition: MESet.cc:70
binning::AxisSpecs const * yaxis_
Definition: MESetEcal.h:70
unsigned logicalDimensions_
Definition: MESetEcal.h:68
bool ecaldqm::MESetEcal::retrieve ( DQMStore const &  _store,
std::string *  _failedPath = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 81 of file MESetEcal.cc.

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

82  {
83  clear();
84 
85  std::vector<std::string> mePaths(generatePaths());
86  if(mePaths.size() == 0){
87  if(_failedPath) _failedPath->clear();
88  return false;
89  }
90 
91  for(unsigned iME(0); iME < mePaths.size(); iME++){
92  std::string& path(mePaths[iME]);
93  if(path.find('%') != std::string::npos)
94  throw_("retrieve() called with incompletely formed path [" + path + "]");
95 
96  MonitorElement* me(_store.get(path));
97  if(me) mes_.push_back(me);
98  else{
99  clear();
100  if(_failedPath) *_failedPath = path;
101  return false;
102  }
103  }
104 
105  active_ = true;
106  return true;
107  }
virtual void clear() const
Definition: MESet.cc:93
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
void throw_(std::string const &_message) const
Definition: MESet.h:125
bool active_
Definition: MESet.h:139
std::vector< std::string > generatePaths() const
Definition: MESetEcal.cc:396
void ecaldqm::MESetEcal::setBinContent ( DetId const &  _id,
int  _bin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 153 of file MESetEcal.cc.

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

154  {
155  if(!active_) return;
156 
157  unsigned iME(binning::findPlotIndex(otype_, _id));
158  checkME_(iME);
159 
160  mes_[iME]->setBinContent(_bin, _content);
161  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
void ecaldqm::MESetEcal::setBinContent ( EcalElectronicsId const &  _id,
int  _bin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 164 of file MESetEcal.cc.

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

165  {
166  if(!active_) return;
167 
168  unsigned iME(binning::findPlotIndex(otype_, _id));
169  checkME_(iME);
170 
171  mes_[iME]->setBinContent(_bin, _content);
172  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
void ecaldqm::MESetEcal::setBinContent ( int  _dcctccid,
int  _bin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 175 of file MESetEcal.cc.

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

176  {
177  if(!active_) return;
178 
179  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
180  checkME_(iME);
181 
182  mes_[iME]->setBinContent(_bin, _content);
183  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetEcal::setBinEntries ( DetId const &  _id,
int  _bin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 219 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_.

220  {
221  if(!active_) return;
223 
224  unsigned iME(binning::findPlotIndex(otype_, _id));
225  checkME_(iME);
226 
227  mes_[iME]->setBinEntries(_bin, _entries);
228  }
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
void ecaldqm::MESetEcal::setBinEntries ( EcalElectronicsId const &  _id,
int  _bin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 231 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_.

232  {
233  if(!active_) return;
235 
236  unsigned iME(binning::findPlotIndex(otype_, _id));
237  checkME_(iME);
238 
239  mes_[iME]->setBinEntries(_bin, _entries);
240  }
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
void ecaldqm::MESetEcal::setBinEntries ( int  _dcctccid,
int  _bin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 243 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_.

244  {
245  if(!active_) return;
247 
248  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
249  checkME_(iME);
250 
251  mes_[iME]->setBinEntries(_bin, _entries);
252  }
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetEcal::setBinError ( DetId const &  _id,
int  _bin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 186 of file MESetEcal.cc.

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

187  {
188  if(!active_) return;
189 
190  unsigned iME(binning::findPlotIndex(otype_, _id));
191  checkME_(iME);
192 
193  mes_[iME]->setBinError(_bin, _error);
194  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
void ecaldqm::MESetEcal::setBinError ( EcalElectronicsId const &  _id,
int  _bin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 197 of file MESetEcal.cc.

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

198  {
199  if(!active_) return;
200 
201  unsigned iME(binning::findPlotIndex(otype_, _id));
202  checkME_(iME);
203 
204  mes_[iME]->setBinError(_bin, _error);
205  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
void ecaldqm::MESetEcal::setBinError ( int  _dcctccid,
int  _bin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 208 of file MESetEcal.cc.

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

209  {
210  if(!active_) return;
211 
212  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
213  checkME_(iME);
214 
215  mes_[iME]->setBinError(_bin, _error);
216  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134

Member Data Documentation

unsigned ecaldqm::MESetEcal::logicalDimensions_
protected

Definition at line 68 of file MESetEcal.h.

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

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

Definition at line 70 of file MESetEcal.h.

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

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

Definition at line 71 of file MESetEcal.h.

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