CMS 3D CMS Logo

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

#include <MESetDet2D.h>

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

Public Member Functions

void book (DQMStore::IBooker &) override
 
MESetclone (std::string const &="") const override
 
void fill (DetId const &, double=1., double=0., double=0.) override
 
void fill (EcalElectronicsId const &, double=1., double=0., double=0.) override
 
void fill (int, double=1., double=1., double=1.) override
 
int findBin (DetId const &) const
 
int findBin (EcalElectronicsId const &) const
 
double getBinContent (DetId const &, int=0) const override
 
double getBinContent (EcalElectronicsId const &, int=0) const override
 
double getBinContent (int, int=0) const override
 
double getBinEntries (DetId const &, int=0) const override
 
double getBinEntries (EcalElectronicsId const &, int=0) const override
 
double getBinEntries (int, int) const override
 
double getBinError (DetId const &, int=0) const override
 
double getBinError (EcalElectronicsId const &, int=0) const override
 
double getBinError (int, int=0) const override
 
 MESetDet2D (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
 
 MESetDet2D (MESetDet2D const &)
 
void reset (double=0., double=0., double=0.) override
 
void setBinContent (DetId const &, double) override
 
void setBinContent (EcalElectronicsId const &, double) override
 
void setBinContent (int, double) override
 
void setBinEntries (DetId const &, double) override
 
void setBinEntries (EcalElectronicsId const &, double) override
 
void setBinEntries (int, double) override
 
void setBinError (DetId const &, double) override
 
void setBinError (EcalElectronicsId const &, double) override
 
void setBinError (int, double) override
 
void softReset () override
 
 ~MESetDet2D () override
 
- Public Member Functions inherited from ecaldqm::MESetEcal
void book (DQMStore::IBooker &) override
 
MESetclone (std::string const &="") const override
 
void fill (DetId const &, double=1., double=1., double=1.) override
 
void fill (EcalElectronicsId const &, double=1., double=1., double=1.) override
 
void fill (int, double=1., double=1., double=1.) override
 
void fill (double, double=1., double=1.) override
 
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 resetAll (double=0., double=0., double=0.)
 
virtual void setAxisTitle (std::string const &, int=1)
 
void setBatchMode ()
 
void setLumiFlag ()
 
virtual ~MESet ()
 

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

Definition at line 11 of file MESetDet2D.h.

Constructor & Destructor Documentation

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

Definition at line 6 of file MESetDet2D.cc.

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

Referenced by clone().

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

Definition at line 21 of file MESetDet2D.cc.

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

Definition at line 23 of file MESetDet2D.cc.

23 {}

Member Function Documentation

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

Reimplemented from ecaldqm::MESet.

Definition at line 34 of file MESetDet2D.cc.

References ecaldqm::MESet::batchMode_, ecaldqm::MESetEcal::book(), ecaldqm::MESet::btype_, ecaldqm::binning::channelName(), MonitorElement::DQM_KIND_TPROFILE2D, MonitorElement::getNbinsX(), ecaldqm::binning::getObject(), ecaldqm::binning::kCrystal, ecaldqm::binning::kDCC, ecaldqm::binning::kEBMEM, ecaldqm::kEBmLow, ecaldqm::binning::kEcal, ecaldqm::binning::kEEMEM, ecaldqm::MESet::kind_, ecaldqm::binning::kMEM, ecaldqm::memDCCId(), ecaldqm::MESet::mes_, ecaldqm::MESet::otype_, ecaldqm::MESet::resetAll(), and MonitorElement::setBinLabel().

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

Reimplemented from ecaldqm::MESet.

Definition at line 25 of file MESetDet2D.cc.

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

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

Reimplemented from ecaldqm::MESet.

Definition at line 78 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), fill_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::getTrigTowerMap(), ecaldqm::isEndcapTTId(), ecaldqm::binning::kRCT, ecaldqm::binning::kTriggerTower, haddnano::obj, and ecaldqm::MESet::otype_.

78  {
79  if (!active_)
80  return;
81 
82  unsigned iME(binning::findPlotIndex(otype_, _id));
83  checkME_(iME);
84 
86 
87  int bin;
88 
89  if (btype_ == binning::kRCT) {
90  bin = binning::findBin2D(obj, btype_, _id);
91  fill_(iME, bin, _w);
92  } else {
93  if (isEndcapTTId(_id)) {
94  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
95  unsigned nId(ids.size());
96  for (unsigned iId(0); iId < nId; iId++) {
98  fill_(iME, bin, _w);
99  }
100  } else {
101  bin = binning::findBin2D(obj, btype_, _id);
102  fill_(iME, bin, _w);
103  }
104  }
105  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:527
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
void ecaldqm::MESetDet2D::fill ( EcalElectronicsId const &  _id,
double  _w = 1.,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 107 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), EcalElectronicsId::dccId(), fill_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::getElectronicsMap(), ecaldqm::binning::getObject(), ecaldqm::binning::kPseudoStrip, haddnano::obj, ecaldqm::MESet::otype_, EcalElectronicsId::stripId(), and EcalElectronicsId::towerId().

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

Reimplemented from ecaldqm::MESet.

Definition at line 137 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), fill_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), haddnano::obj, and ecaldqm::MESet::otype_.

137  {
138  if (!active_)
139  return;
140 
141  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
142  checkME_(iME);
143 
145 
146  int bin(binning::findBin2D(obj, btype_, _dcctccid));
147  fill_(iME, bin, _w);
148  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:527
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
void ecaldqm::MESetDet2D::fill_ ( unsigned  _iME,
int  _bin,
double  _w 
)
overrideprotectedvirtual

Reimplemented from ecaldqm::MESet.

Definition at line 527 of file MESetDet2D.cc.

References MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::MESet::fill_(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, and MonitorElement::setBinContent().

Referenced by fill().

527  {
529  MonitorElement *me(mes_.at(_iME));
530  if (me->getBinEntries(_bin) < 0.) {
531  me->setBinContent(_bin, 0.);
532  me->setBinEntries(_bin, 0.);
533  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
534  }
535  }
536 
537  MESet::fill_(_iME, _bin, _w);
538  }
MonitorElement::Kind kind_
Definition: MESet.h:129
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:266
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet2D::fill_ ( unsigned  _iME,
int  _bin,
double  _y,
double  _w 
)
overrideprotectedvirtual

Reimplemented from ecaldqm::MESet.

Definition at line 540 of file MESetDet2D.cc.

References MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::MESet::fill_(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, and MonitorElement::setBinContent().

540  {
542  MonitorElement *me(mes_.at(_iME));
543  if (me->getBinEntries(_bin) < 0.) {
544  me->setBinContent(_bin, 0.);
545  me->setBinEntries(_bin, 0.);
546  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
547  }
548  }
549 
550  MESet::fill_(_iME, _bin, _y, _w);
551  }
MonitorElement::Kind kind_
Definition: MESet.h:129
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:266
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet2D::fill_ ( unsigned  _iME,
double  _x,
double  _wy,
double  _w 
)
overrideprotectedvirtual

Reimplemented from ecaldqm::MESet.

Definition at line 553 of file MESetDet2D.cc.

References stringResolutionProvider_cfi::bin, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::MESet::fill_(), ecaldqm::MESet::kind_, and ecaldqm::MESet::mes_.

553  {
555  MonitorElement *me(mes_.at(_iME));
556  int bin(me->getTProfile2D()->FindBin(_x, _wy));
557  if (me->getBinEntries(bin) < 0.) {
558  me->setBinContent(bin, 0.);
559  me->setBinEntries(bin, 0.);
560  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
561  }
562  }
563 
564  MESet::fill_(_iME, _x, _wy, _w);
565  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:266
bin
set the eta bin as selection string.
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
int ecaldqm::MESetDet2D::findBin ( DetId const &  _id) const

Definition at line 467 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::getTrigTowerMap(), ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, haddnano::obj, and ecaldqm::MESet::otype_.

467  {
468  if (!active_)
469  return 0;
470 
471  unsigned iME(binning::findPlotIndex(otype_, _id));
472  checkME_(iME);
473 
475 
476  if (isEndcapTTId(_id)) {
477  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
479  } else
480  return binning::findBin2D(obj, btype_, _id);
481  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
int ecaldqm::MESetDet2D::findBin ( EcalElectronicsId const &  _id) const

Definition at line 483 of file MESetDet2D.cc.

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

483  {
484  if (!active_)
485  return 0;
486 
487  unsigned iME(binning::findPlotIndex(otype_, _id));
488  checkME_(iME);
489 
491 
492  return binning::findBin2D(obj, btype_, _id);
493  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
double ecaldqm::MESetDet2D::getBinContent ( DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 304 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::getTrigTowerMap(), ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

304  {
305  if (!active_)
306  return 0.;
307 
308  unsigned iME(binning::findPlotIndex(otype_, _id));
309  checkME_(iME);
310 
312 
313  int bin;
314 
315  if (isEndcapTTId(_id)) {
316  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
318  } else {
319  bin = binning::findBin2D(obj, btype_, _id);
320  }
321 
322  return mes_[iME]->getBinContent(bin);
323  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet2D::getBinContent ( EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 325 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

325  {
326  if (!active_)
327  return 0.;
328 
329  unsigned iME(binning::findPlotIndex(otype_, _id));
330  checkME_(iME);
331 
333 
334  int bin(binning::findBin2D(obj, btype_, _id));
335 
336  return mes_[iME]->getBinContent(bin);
337  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet2D::getBinContent ( int  _dcctccid,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 339 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

339  {
340  if (!active_)
341  return 0.;
342 
343  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
344  checkME_(iME);
345 
347 
348  int bin(binning::findBin2D(obj, btype_, _dcctccid));
349 
350  return mes_[iME]->getBinContent(bin);
351  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet2D::getBinEntries ( DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 402 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::getTrigTowerMap(), ecaldqm::isEndcapTTId(), ecaldqm::MESet::kind_, ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

Referenced by getBinEntries().

402  {
403  if (!active_)
404  return 0.;
406  return 0.;
407 
408  unsigned iME(binning::findPlotIndex(otype_, _id));
409  checkME_(iME);
410 
412 
413  int bin;
414 
415  if (isEndcapTTId(_id)) {
416  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
418  } else {
419  bin = binning::findBin2D(obj, btype_, _id);
420  }
421 
422  double entries(mes_[iME]->getBinEntries(bin));
423  if (entries < 0.)
424  return 0.;
425  else
426  return entries;
427  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:402
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet2D::getBinEntries ( EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 429 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), getBinEntries(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

429  {
430  if (!active_)
431  return 0.;
433  return 0.;
434 
435  unsigned iME(binning::findPlotIndex(otype_, _id));
436  checkME_(iME);
437 
439 
440  int bin(binning::findBin2D(obj, btype_, _id));
441 
442  double entries(mes_[iME]->getBinEntries(bin));
443  if (entries < 0.)
444  return 0.;
445  else
446  return entries;
447  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:402
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet2D::getBinEntries ( int  _dcctccid,
int   
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 449 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), getBinEntries(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

449  {
450  if (!active_)
451  return 0.;
452 
453  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
454  checkME_(iME);
455 
457 
458  int bin(binning::findBin2D(obj, btype_, _dcctccid));
459 
460  double entries(mes_[iME]->getBinEntries(bin));
461  if (entries < 0.)
462  return 0.;
463  else
464  return entries;
465  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:402
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet2D::getBinError ( DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 353 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::getTrigTowerMap(), ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

353  {
354  if (!active_)
355  return 0.;
356 
357  unsigned iME(binning::findPlotIndex(otype_, _id));
358  checkME_(iME);
359 
361 
362  int bin;
363 
364  if (isEndcapTTId(_id)) {
365  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
367  } else {
368  bin = binning::findBin2D(obj, btype_, _id);
369  }
370 
371  return mes_[iME]->getBinError(bin);
372  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet2D::getBinError ( EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 374 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

374  {
375  if (!active_)
376  return 0.;
377 
378  unsigned iME(binning::findPlotIndex(otype_, _id));
379  checkME_(iME);
380 
382 
383  int bin(binning::findBin2D(obj, btype_, _id));
384 
385  return mes_[iME]->getBinError(bin);
386  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
double ecaldqm::MESetDet2D::getBinError ( int  _dcctccid,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 388 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

388  {
389  if (!active_)
390  return 0.;
391 
392  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
393  checkME_(iME);
394 
396 
397  int bin(binning::findBin2D(obj, btype_, _dcctccid));
398 
399  return mes_[iME]->getBinError(bin);
400  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet2D::reset ( double  _content = 0.,
double  _err = 0.,
double  _entries = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 495 of file MESetDet2D.cc.

References stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::getNObjects(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::binning::isValidIdBin(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, haddnano::obj, ecaldqm::MESet::otype_, MonitorElement::setBinContent(), MonitorElement::setBinEntries(), and MonitorElement::setBinError().

495  {
496  unsigned nME(binning::getNObjects(otype_));
497 
498  bool isProfile(kind_ == MonitorElement::DQM_KIND_TPROFILE2D);
499 
500  for (unsigned iME(0); iME < nME; iME++) {
501  MonitorElement *me(mes_[iME]);
502 
504 
505  int nbinsX(me->getTH1()->GetNbinsX());
506  int nbinsY(me->getTH1()->GetNbinsY());
507  for (int ix(1); ix <= nbinsX; ix++) {
508  for (int iy(1); iy <= nbinsY; iy++) {
509  int bin((nbinsX + 2) * iy + ix);
510  if (!binning::isValidIdBin(obj, btype_, iME, bin))
511  continue;
512  me->setBinContent(bin, _content);
513  me->setBinError(bin, _err);
514  if (isProfile)
515  me->setBinEntries(bin, _entries);
516  }
517  }
518  }
519  }
MonitorElement::Kind kind_
Definition: MESet.h:129
bool isValidIdBin(ObjectType, BinningType, unsigned, int)
unsigned getNObjects(ObjectType)
ObjectType getObject(ObjectType, unsigned)
bin
set the eta bin as selection string.
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet2D::setBinContent ( DetId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 150 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::getTrigTowerMap(), ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

150  {
151  if (!active_)
152  return;
153 
154  unsigned iME(binning::findPlotIndex(otype_, _id));
155  checkME_(iME);
156 
158 
159  int bin;
160 
161  if (isEndcapTTId(_id)) {
162  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
163  unsigned nId(ids.size());
164  for (unsigned iId(0); iId < nId; iId++) {
166  mes_[iME]->setBinContent(bin, _content);
167  }
168  } else {
169  bin = binning::findBin2D(obj, btype_, _id);
170  mes_[iME]->setBinContent(bin, _content);
171  }
172  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet2D::setBinContent ( EcalElectronicsId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 174 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

174  {
175  if (!active_)
176  return;
177 
178  unsigned iME(binning::findPlotIndex(otype_, _id));
179  checkME_(iME);
180 
182 
183  int bin(binning::findBin2D(obj, btype_, _id));
184  mes_[iME]->setBinContent(bin, _content);
185  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet2D::setBinContent ( int  _dcctccid,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 187 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

187  {
188  if (!active_)
189  return;
190 
191  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
192  checkME_(iME);
193 
195 
196  int bin(binning::findBin2D(obj, btype_, _dcctccid));
197  mes_[iME]->setBinContent(bin, _content);
198  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet2D::setBinEntries ( DetId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 250 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::getTrigTowerMap(), ecaldqm::isEndcapTTId(), ecaldqm::MESet::kind_, ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

250  {
251  if (!active_)
252  return;
254  return;
255 
256  unsigned iME(binning::findPlotIndex(otype_, _id));
257  checkME_(iME);
258 
260 
261  int bin;
262 
263  if (isEndcapTTId(_id)) {
264  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
265  unsigned nId(ids.size());
266  for (unsigned iId(0); iId < nId; iId++) {
268  mes_[iME]->setBinEntries(bin, _entries);
269  }
270  } else {
271  bin = binning::findBin2D(obj, btype_, _id);
272  mes_[iME]->setBinEntries(bin, _entries);
273  }
274  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet2D::setBinEntries ( EcalElectronicsId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 276 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

276  {
277  if (!active_)
278  return;
280  return;
281 
282  unsigned iME(binning::findPlotIndex(otype_, _id));
283  checkME_(iME);
284 
286 
287  int bin(binning::findBin2D(obj, btype_, _id));
288  mes_[iME]->setBinEntries(bin, _entries);
289  }
MonitorElement::Kind kind_
Definition: MESet.h:129
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet2D::setBinEntries ( int  _dcctccid,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 291 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

291  {
292  if (!active_)
293  return;
294 
295  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
296  checkME_(iME);
297 
299 
300  int bin(binning::findBin2D(obj, btype_, _dcctccid));
301  mes_[iME]->setBinEntries(bin, _entries);
302  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet2D::setBinError ( DetId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 200 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::getTrigTowerMap(), ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

200  {
201  if (!active_)
202  return;
203 
204  unsigned iME(binning::findPlotIndex(otype_, _id));
205  checkME_(iME);
206 
208 
209  int bin;
210 
211  if (isEndcapTTId(_id)) {
212  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
213  unsigned nId(ids.size());
214  for (unsigned iId(0); iId < nId; iId++) {
216  mes_[iME]->setBinError(bin, _error);
217  }
218  } else {
219  bin = binning::findBin2D(obj, btype_, _id);
220  mes_[iME]->setBinError(bin, _error);
221  }
222  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet2D::setBinError ( EcalElectronicsId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 224 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

224  {
225  if (!active_)
226  return;
227 
228  unsigned iME(binning::findPlotIndex(otype_, _id));
229  checkME_(iME);
230 
232 
233  int bin(binning::findBin2D(obj, btype_, _id));
234  mes_[iME]->setBinError(bin, _error);
235  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet2D::setBinError ( int  _dcctccid,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 237 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, stringResolutionProvider_cfi::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, haddnano::obj, and ecaldqm::MESet::otype_.

237  {
238  if (!active_)
239  return;
240 
241  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
242  checkME_(iME);
243 
245 
246  int bin(binning::findBin2D(obj, btype_, _dcctccid));
247  mes_[iME]->setBinError(bin, _error);
248  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:114
ObjectType getObject(ObjectType, unsigned)
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:134
binning::ObjectType otype_
Definition: MESet.h:127
binning::BinningType btype_
Definition: MESet.h:128
std::vector< MonitorElement * > mes_
Definition: MESet.h:124
void ecaldqm::MESetDet2D::softReset ( )
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 521 of file MESetDet2D.cc.

References ecaldqm::MESet::batchMode_, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::MESet::kind_, ecaldqm::MESet::resetAll(), and ecaldqm::MESet::softReset().

521  {
524  resetAll(0., 0., -1.);
525  }
MonitorElement::Kind kind_
Definition: MESet.h:129
bool batchMode_
Definition: MESet.h:132
virtual void softReset()
Definition: MESet.cc:246
virtual void resetAll(double=0., double=0., double=0.)
Definition: MESet.cc:105