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 12 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 7 of file MESetDet2D.cc.

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

Referenced by clone().

7  :
8  MESetEcal(_fullPath, _otype, _btype, _kind, 2, nullptr, nullptr, _zaxis)
9  {
10  switch(kind_){
13  break;
14  default:
15  throw_("Unsupported MonitorElement kind");
16  }
17  }
MonitorElement::Kind kind_
Definition: MESet.h:134
void throw_(std::string const &_message) const
Definition: MESet.h:124
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
ecaldqm::MESetDet2D::MESetDet2D ( MESetDet2D const &  _orig)

Definition at line 19 of file MESetDet2D.cc.

19  :
20  MESetEcal(_orig)
21  {
22  }
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
ecaldqm::MESetDet2D::~MESetDet2D ( )
override

Definition at line 24 of file MESetDet2D.cc.

25  {
26  }

Member Function Documentation

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

Reimplemented from ecaldqm::MESet.

Definition at line 39 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().

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

Reimplemented from ecaldqm::MESet.

Definition at line 29 of file MESetDet2D.cc.

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

30  {
32  if(_path != "") path_ = _path;
33  MESet* copy(new MESetDet2D(*this));
34  path_ = path;
35  return copy;
36  }
MESetDet2D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
Definition: MESetDet2D.cc:7
std::string path_
Definition: MESet.h:131
void ecaldqm::MESetDet2D::fill ( DetId const &  _id,
double  _w = 1.,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 85 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(), electrons_cff::ids, ecaldqm::isEndcapTTId(), ecaldqm::binning::kRCT, ecaldqm::binning::kTriggerTower, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

86  {
87  if(!active_) return;
88 
89  unsigned iME(binning::findPlotIndex(otype_, _id));
90  checkME_(iME);
91 
93 
94  int bin;
95 
96  if(btype_ == binning::kRCT){
98  fill_(iME, bin, _w);
99  }
100  else{
101  if(isEndcapTTId(_id)){
102  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
103  unsigned nId(ids.size());
104  for(unsigned iId(0); iId < nId; iId++){
106  fill_(iME, bin, _w);
107  }
108  }
109  else{
110  bin = binning::findBin2D(obj, btype_, _id);
111  fill_(iME, bin, _w);
112  }
113  }
114  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:556
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::fill ( EcalElectronicsId const &  _id,
double  _w = 1.,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 117 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(), electrons_cff::ids, ecaldqm::binning::kPseudoStrip, NewMuonAssociatorByHits_cfi::obj, ecaldqm::MESet::otype_, EcalElectronicsId::stripId(), and EcalElectronicsId::towerId().

118  {
119  if(!active_) return;
120 
121  unsigned iME(0);
123  else iME = binning::findPlotIndex(otype_, _id);
124  checkME_(iME);
125 
127 
128  int bin;
129 
131  EcalElectronicsId stid(_id);
132  std::vector<DetId> ids(getElectronicsMap()->pseudoStripConstituents(stid.dccId(), stid.towerId(), stid.stripId()));
133  unsigned nId(ids.size());
134  for(unsigned iId(0); iId < nId; iId++){
135  bin = binning::findBin2D(obj, btype_ , ids[iId]);
136  fill_(iME, bin, _w);
137  }
138  }
139  else{
140  bin = binning::findBin2D(obj, btype_, _id);
141  fill_(iME, bin, _w);
142  }
143  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
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:556
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::fill ( int  _dcctccid,
double  _w = 1.,
double  = 1.,
double  = 1. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 146 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(), NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

147  {
148  if(!active_) return;
149 
150  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
151  checkME_(iME);
152 
154 
155  int bin(binning::findBin2D(obj, btype_, _dcctccid));
156  fill_(iME, bin, _w);
157  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:556
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::fill_ ( unsigned  _iME,
int  _bin,
double  _w 
)
overrideprotectedvirtual

Reimplemented from ecaldqm::MESet.

Definition at line 556 of file MESetDet2D.cc.

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

Referenced by fill().

557  {
559  MonitorElement* me(mes_.at(_iME));
560  if(me->getBinEntries(_bin) < 0.){
561  me->setBinContent(_bin, 0.);
562  me->setBinEntries(_bin, 0.);
563  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
564  }
565  }
566 
567  MESet::fill_(_iME, _bin, _w);
568  }
MonitorElement::Kind kind_
Definition: MESet.h:134
void setBinContent(int binx, double content)
set content of bin (1-D)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:278
void ecaldqm::MESetDet2D::fill_ ( unsigned  _iME,
int  _bin,
double  _y,
double  _w 
)
overrideprotectedvirtual

Reimplemented from ecaldqm::MESet.

Definition at line 571 of file MESetDet2D.cc.

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

572  {
574  MonitorElement* me(mes_.at(_iME));
575  if(me->getBinEntries(_bin) < 0.){
576  me->setBinContent(_bin, 0.);
577  me->setBinEntries(_bin, 0.);
578  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
579  }
580  }
581 
582  MESet::fill_(_iME, _bin, _y, _w);
583  }
MonitorElement::Kind kind_
Definition: MESet.h:134
void setBinContent(int binx, double content)
set content of bin (1-D)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:278
void ecaldqm::MESetDet2D::fill_ ( unsigned  _iME,
double  _x,
double  _wy,
double  _w 
)
overrideprotectedvirtual

Reimplemented from ecaldqm::MESet.

Definition at line 586 of file MESetDet2D.cc.

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

587  {
589  MonitorElement* me(mes_.at(_iME));
590  int bin(me->getTProfile2D()->FindBin(_x, _wy));
591  if(me->getBinEntries(bin) < 0.){
592  me->setBinContent(bin, 0.);
593  me->setBinEntries(bin, 0.);
594  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
595  }
596  }
597 
598  MESet::fill_(_iME, _x, _wy, _w);
599  }
MonitorElement::Kind kind_
Definition: MESet.h:134
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:278
bin
set the eta bin as selection string.
int ecaldqm::MESetDet2D::findBin ( DetId const &  _id) const

Definition at line 491 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(), electrons_cff::ids, ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

492  {
493  if(!active_) return 0;
494 
495  unsigned iME(binning::findPlotIndex(otype_, _id));
496  checkME_(iME);
497 
499 
500  if(isEndcapTTId(_id)){
501  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
503  }
504  else
505  return binning::findBin2D(obj, btype_, _id);
506  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
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:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
int ecaldqm::MESetDet2D::findBin ( EcalElectronicsId const &  _id) const

Definition at line 509 of file MESetDet2D.cc.

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

510  {
511  if(!active_) return 0;
512 
513  unsigned iME(binning::findPlotIndex(otype_, _id));
514  checkME_(iME);
515 
517 
518  return binning::findBin2D(obj, btype_, _id);
519  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet2D::getBinContent ( DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 324 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(), electrons_cff::ids, ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

325  {
326  if(!active_) return 0.;
327 
328  unsigned iME(binning::findPlotIndex(otype_, _id));
329  checkME_(iME);
330 
332 
333  int bin;
334 
335  if(isEndcapTTId(_id)){
336  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
338  }
339  else{
340  bin = binning::findBin2D(obj, btype_, _id);
341  }
342 
343  return mes_[iME]->getBinContent(bin);
344  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet2D::getBinContent ( EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 347 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_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

348  {
349  if(!active_) return 0.;
350 
351  unsigned iME(binning::findPlotIndex(otype_, _id));
352  checkME_(iME);
353 
355 
357 
358  return mes_[iME]->getBinContent(bin);
359  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet2D::getBinContent ( int  _dcctccid,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 362 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_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

363  {
364  if(!active_) return 0.;
365 
366  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
367  checkME_(iME);
368 
370 
371  int bin(binning::findBin2D(obj, btype_, _dcctccid));
372 
373  return mes_[iME]->getBinContent(bin);
374  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet2D::getBinEntries ( DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 430 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(), electrons_cff::ids, ecaldqm::isEndcapTTId(), ecaldqm::MESet::kind_, ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

Referenced by getBinEntries().

431  {
432  if(!active_) return 0.;
434 
435  unsigned iME(binning::findPlotIndex(otype_, _id));
436  checkME_(iME);
437 
439 
440  int bin;
441 
442  if(isEndcapTTId(_id)){
443  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
445  }
446  else{
447  bin = binning::findBin2D(obj, btype_, _id);
448  }
449 
450  double entries(mes_[iME]->getBinEntries(bin));
451  if(entries < 0.) return 0.;
452  else return entries;
453  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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:138
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:430
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet2D::getBinEntries ( EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 456 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_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

457  {
458  if(!active_) return 0.;
460 
461  unsigned iME(binning::findPlotIndex(otype_, _id));
462  checkME_(iME);
463 
465 
467 
468  double entries(mes_[iME]->getBinEntries(bin));
469  if(entries < 0.) return 0.;
470  else return entries;
471  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:430
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet2D::getBinEntries ( int  _dcctccid,
int   
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 474 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_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

475  {
476  if(!active_) return 0.;
477 
478  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
479  checkME_(iME);
480 
482 
483  int bin(binning::findBin2D(obj, btype_, _dcctccid));
484 
485  double entries(mes_[iME]->getBinEntries(bin));
486  if(entries < 0.) return 0.;
487  else return entries;
488  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:430
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet2D::getBinError ( DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 377 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(), electrons_cff::ids, ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

378  {
379  if(!active_) return 0.;
380 
381  unsigned iME(binning::findPlotIndex(otype_, _id));
382  checkME_(iME);
383 
385 
386  int bin;
387 
388  if(isEndcapTTId(_id)){
389  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
391  }
392  else{
393  bin = binning::findBin2D(obj, btype_, _id);
394  }
395 
396  return mes_[iME]->getBinError(bin);
397  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet2D::getBinError ( EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 400 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_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

401  {
402  if(!active_) return 0.;
403 
404  unsigned iME(binning::findPlotIndex(otype_, _id));
405  checkME_(iME);
406 
408 
410 
411  return mes_[iME]->getBinError(bin);
412  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet2D::getBinError ( int  _dcctccid,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 415 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_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

416  {
417  if(!active_) return 0.;
418 
419  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
420  checkME_(iME);
421 
423 
424  int bin(binning::findBin2D(obj, btype_, _dcctccid));
425 
426  return mes_[iME]->getBinError(bin);
427  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::reset ( double  _content = 0.,
double  _err = 0.,
double  _entries = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 522 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_, NewMuonAssociatorByHits_cfi::obj, ecaldqm::MESet::otype_, MonitorElement::setBinContent(), MonitorElement::setBinEntries(), and MonitorElement::setBinError().

523  {
524  unsigned nME(binning::getNObjects(otype_));
525 
526  bool isProfile(kind_ == MonitorElement::DQM_KIND_TPROFILE2D);
527 
528  for(unsigned iME(0); iME < nME; iME++) {
529  MonitorElement* me(mes_[iME]);
530 
532 
533  int nbinsX(me->getTH1()->GetNbinsX());
534  int nbinsY(me->getTH1()->GetNbinsY());
535  for(int ix(1); ix <= nbinsX; ix++){
536  for(int iy(1); iy <= nbinsY; iy++){
537  int bin((nbinsX + 2) * iy + ix);
538  if(!binning::isValidIdBin(obj, btype_, iME, bin)) continue;
539  me->setBinContent(bin, _content);
540  me->setBinError(bin, _err);
541  if(isProfile) me->setBinEntries(bin, _entries);
542  }
543  }
544  }
545  }
MonitorElement::Kind kind_
Definition: MESet.h:134
bool isValidIdBin(ObjectType, BinningType, unsigned, int)
unsigned getNObjects(ObjectType)
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bin
set the eta bin as selection string.
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::setBinContent ( DetId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 160 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(), electrons_cff::ids, ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

161  {
162  if(!active_) return;
163 
164  unsigned iME(binning::findPlotIndex(otype_, _id));
165  checkME_(iME);
166 
168 
169  int bin;
170 
171  if(isEndcapTTId(_id)){
172  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
173  unsigned nId(ids.size());
174  for(unsigned iId(0); iId < nId; iId++){
176  mes_[iME]->setBinContent(bin, _content);
177  }
178  }
179  else{
180  bin = binning::findBin2D(obj, btype_, _id);
181  mes_[iME]->setBinContent(bin, _content);
182  }
183  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::setBinContent ( EcalElectronicsId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 186 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_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

187  {
188  if(!active_) return;
189 
190  unsigned iME(binning::findPlotIndex(otype_, _id));
191  checkME_(iME);
192 
194 
196  mes_[iME]->setBinContent(bin, _content);
197  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::setBinContent ( int  _dcctccid,
double  _content 
)
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::MESet::mes_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

201  {
202  if(!active_) return;
203 
204  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
205  checkME_(iME);
206 
208 
209  int bin(binning::findBin2D(obj, btype_, _dcctccid));
210  mes_[iME]->setBinContent(bin, _content);
211  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::setBinEntries ( DetId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 268 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(), electrons_cff::ids, ecaldqm::isEndcapTTId(), ecaldqm::MESet::kind_, ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

269  {
270  if(!active_) return;
272 
273  unsigned iME(binning::findPlotIndex(otype_, _id));
274  checkME_(iME);
275 
277 
278  int bin;
279 
280  if(isEndcapTTId(_id)){
281  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
282  unsigned nId(ids.size());
283  for(unsigned iId(0); iId < nId; iId++){
285  mes_[iME]->setBinEntries(bin, _entries);
286  }
287  }
288  else{
289  bin = binning::findBin2D(obj, btype_, _id);
290  mes_[iME]->setBinEntries(bin, _entries);
291  }
292  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::setBinEntries ( EcalElectronicsId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 295 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_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

296  {
297  if(!active_) return;
299 
300  unsigned iME(binning::findPlotIndex(otype_, _id));
301  checkME_(iME);
302 
304 
306  mes_[iME]->setBinEntries(bin, _entries);
307  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::setBinEntries ( int  _dcctccid,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 310 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_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

311  {
312  if(!active_) return;
313 
314  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
315  checkME_(iME);
316 
318 
319  int bin(binning::findBin2D(obj, btype_, _dcctccid));
320  mes_[iME]->setBinEntries(bin, _entries);
321  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::setBinError ( DetId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 214 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(), electrons_cff::ids, ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

215  {
216  if(!active_) return;
217 
218  unsigned iME(binning::findPlotIndex(otype_, _id));
219  checkME_(iME);
220 
222 
223  int bin;
224 
225  if(isEndcapTTId(_id)){
226  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
227  unsigned nId(ids.size());
228  for(unsigned iId(0); iId < nId; iId++){
230  mes_[iME]->setBinError(bin, _error);
231  }
232  }
233  else{
234  bin = binning::findBin2D(obj, btype_, _id);
235  mes_[iME]->setBinError(bin, _error);
236  }
237  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::setBinError ( EcalElectronicsId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 240 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_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

241  {
242  if(!active_) return;
243 
244  unsigned iME(binning::findPlotIndex(otype_, _id));
245  checkME_(iME);
246 
248 
250  mes_[iME]->setBinError(bin, _error);
251  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::setBinError ( int  _dcctccid,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 254 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_, NewMuonAssociatorByHits_cfi::obj, and ecaldqm::MESet::otype_.

255  {
256  if(!active_) return;
257 
258  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
259  checkME_(iME);
260 
262 
263  int bin(binning::findBin2D(obj, btype_, _dcctccid));
264  mes_[iME]->setBinError(bin, _error);
265  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bin
set the eta bin as selection string.
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet2D::softReset ( )
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 548 of file MESetDet2D.cc.

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

549  {
552  resetAll(0., 0., -1.);
553  }
MonitorElement::Kind kind_
Definition: MESet.h:134
bool batchMode_
Definition: MESet.h:136
virtual void softReset()
Definition: MESet.cc:256
virtual void resetAll(double=0., double=0., double=0.)
Definition: MESet.cc:118