CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected 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 ()
 
- 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 ()
 
- 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, 0, 0, _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 ( )

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 filterCSVwithJSON::copy, MESetDet2D(), cmsHarvester::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  }
tuple path
else: Piece not in the list, fine.
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_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), fill_(), ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::getTrigTowerMap(), ecaldqm::isEndcapTTId(), ecaldqm::binning::kTriggerTower, getGTfromDQMFile::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(isEndcapTTId(_id)){
97  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
98  unsigned nId(ids.size());
99  for(unsigned iId(0); iId < nId; iId++){
101  fill_(iME, bin, _w);
102  }
103  }
104  else{
105  bin = binning::findBin2D(obj, btype_, _id);
106  fill_(iME, bin, _w);
107  }
108  }
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:535
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 111 of file MESetDet2D.cc.

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

112  {
113  if(!active_) return;
114 
115  unsigned iME(binning::findPlotIndex(otype_, _id));
116  checkME_(iME);
117 
119 
120  int bin(binning::findBin2D(obj, btype_, _id));
121  fill_(iME, bin, _w);
122  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:535
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 125 of file MESetDet2D.cc.

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

126  {
127  if(!active_) return;
128 
129  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
130  checkME_(iME);
131 
133 
134  int bin(binning::findBin2D(obj, btype_, _dcctccid));
135  fill_(iME, bin, _w);
136  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:535
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 535 of file MESetDet2D.cc.

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

Referenced by fill().

536  {
538  MonitorElement* me(mes_.at(_iME));
539  if(me->getBinEntries(_bin) < 0.){
540  me->setBinContent(_bin, 0.);
541  me->setBinEntries(_bin, 0.);
542  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
543  }
544  }
545 
546  MESet::fill_(_iME, _bin, _w);
547  }
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 550 of file MESetDet2D.cc.

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

551  {
553  MonitorElement* me(mes_.at(_iME));
554  if(me->getBinEntries(_bin) < 0.){
555  me->setBinContent(_bin, 0.);
556  me->setBinEntries(_bin, 0.);
557  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
558  }
559  }
560 
561  MESet::fill_(_iME, _bin, _y, _w);
562  }
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 565 of file MESetDet2D.cc.

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

566  {
568  MonitorElement* me(mes_.at(_iME));
569  int bin(me->getTProfile2D()->FindBin(_x, _wy));
570  if(me->getBinEntries(bin) < 0.){
571  me->setBinContent(bin, 0.);
572  me->setBinEntries(bin, 0.);
573  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
574  }
575  }
576 
577  MESet::fill_(_iME, _x, _wy, _w);
578  }
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
int ecaldqm::MESetDet2D::findBin ( DetId const &  _id) const

Definition at line 470 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, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

471  {
472  if(!active_) return 0;
473 
474  unsigned iME(binning::findPlotIndex(otype_, _id));
475  checkME_(iME);
476 
478 
479  if(isEndcapTTId(_id)){
480  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
482  }
483  else
484  return binning::findBin2D(obj, btype_, _id);
485  }
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 488 of file MESetDet2D.cc.

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

489  {
490  if(!active_) return 0;
491 
492  unsigned iME(binning::findPlotIndex(otype_, _id));
493  checkME_(iME);
494 
496 
497  return binning::findBin2D(obj, btype_, _id);
498  }
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 303 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::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_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

304  {
305  if(!active_) return 0.;
306 
307  unsigned iME(binning::findPlotIndex(otype_, _id));
308  checkME_(iME);
309 
311 
312  int bin;
313 
314  if(isEndcapTTId(_id)){
315  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
317  }
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:115
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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
double ecaldqm::MESetDet2D::getBinContent ( EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 326 of file MESetDet2D.cc.

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

327  {
328  if(!active_) return 0.;
329 
330  unsigned iME(binning::findPlotIndex(otype_, _id));
331  checkME_(iME);
332 
334 
335  int bin(binning::findBin2D(obj, btype_, _id));
336 
337  return mes_[iME]->getBinContent(bin);
338  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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 341 of file MESetDet2D.cc.

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

342  {
343  if(!active_) return 0.;
344 
345  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
346  checkME_(iME);
347 
349 
350  int bin(binning::findBin2D(obj, btype_, _dcctccid));
351 
352  return mes_[iME]->getBinContent(bin);
353  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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 409 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE2D, python.tagInventory::entries, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::getTrigTowerMap(), ecaldqm::isEndcapTTId(), ecaldqm::MESet::kind_, ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

Referenced by getBinEntries().

410  {
411  if(!active_) return 0.;
413 
414  unsigned iME(binning::findPlotIndex(otype_, _id));
415  checkME_(iME);
416 
418 
419  int bin;
420 
421  if(isEndcapTTId(_id)){
422  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
424  }
425  else{
426  bin = binning::findBin2D(obj, btype_, _id);
427  }
428 
429  double entries(mes_[iME]->getBinEntries(bin));
430  if(entries < 0.) return 0.;
431  else return entries;
432  }
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:409
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()
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 ( EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 435 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE2D, python.tagInventory::entries, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), getBinEntries(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

436  {
437  if(!active_) return 0.;
439 
440  unsigned iME(binning::findPlotIndex(otype_, _id));
441  checkME_(iME);
442 
444 
445  int bin(binning::findBin2D(obj, btype_, _id));
446 
447  double entries(mes_[iME]->getBinEntries(bin));
448  if(entries < 0.) return 0.;
449  else return entries;
450  }
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:409
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
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 ( int  _dcctccid,
int   
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 453 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::bin, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), python.tagInventory::entries, ecaldqm::binning::findBin2D(), ecaldqm::binning::findPlotIndex(), getBinEntries(), ecaldqm::binning::getObject(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

454  {
455  if(!active_) return 0.;
456 
457  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
458  checkME_(iME);
459 
461 
462  int bin(binning::findBin2D(obj, btype_, _dcctccid));
463 
464  double entries(mes_[iME]->getBinEntries(bin));
465  if(entries < 0.) return 0.;
466  else return entries;
467  }
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:409
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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 ( DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 356 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::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_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

357  {
358  if(!active_) return 0.;
359 
360  unsigned iME(binning::findPlotIndex(otype_, _id));
361  checkME_(iME);
362 
364 
365  int bin;
366 
367  if(isEndcapTTId(_id)){
368  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
370  }
371  else{
372  bin = binning::findBin2D(obj, btype_, _id);
373  }
374 
375  return mes_[iME]->getBinError(bin);
376  }
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()
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 379 of file MESetDet2D.cc.

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

380  {
381  if(!active_) return 0.;
382 
383  unsigned iME(binning::findPlotIndex(otype_, _id));
384  checkME_(iME);
385 
387 
388  int bin(binning::findBin2D(obj, btype_, _id));
389 
390  return mes_[iME]->getBinError(bin);
391  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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 394 of file MESetDet2D.cc.

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

395  {
396  if(!active_) return 0.;
397 
398  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
399  checkME_(iME);
400 
402 
403  int bin(binning::findBin2D(obj, btype_, _dcctccid));
404 
405  return mes_[iME]->getBinError(bin);
406  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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 501 of file MESetDet2D.cc.

References newFWLiteAna::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_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, MonitorElement::setBinContent(), MonitorElement::setBinEntries(), and MonitorElement::setBinError().

502  {
503  unsigned nME(binning::getNObjects(otype_));
504 
505  bool isProfile(kind_ == MonitorElement::DQM_KIND_TPROFILE2D);
506 
507  for(unsigned iME(0); iME < nME; iME++) {
508  MonitorElement* me(mes_[iME]);
509 
511 
512  int nbinsX(me->getTH1()->GetNbinsX());
513  int nbinsY(me->getTH1()->GetNbinsY());
514  for(int ix(1); ix <= nbinsX; ix++){
515  for(int iy(1); iy <= nbinsY; iy++){
516  int bin((nbinsX + 2) * iy + ix);
517  if(!binning::isValidIdBin(obj, btype_, iME, bin)) continue;
518  me->setBinContent(bin, _content);
519  me->setBinError(bin, _err);
520  if(isProfile) me->setBinEntries(bin, _entries);
521  }
522  }
523  }
524  }
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
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 139 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::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_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

140  {
141  if(!active_) return;
142 
143  unsigned iME(binning::findPlotIndex(otype_, _id));
144  checkME_(iME);
145 
147 
148  int bin;
149 
150  if(isEndcapTTId(_id)){
151  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
152  unsigned nId(ids.size());
153  for(unsigned iId(0); iId < nId; iId++){
155  mes_[iME]->setBinContent(bin, _content);
156  }
157  }
158  else{
159  bin = binning::findBin2D(obj, btype_, _id);
160  mes_[iME]->setBinContent(bin, _content);
161  }
162  }
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()
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 165 of file MESetDet2D.cc.

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

166  {
167  if(!active_) return;
168 
169  unsigned iME(binning::findPlotIndex(otype_, _id));
170  checkME_(iME);
171 
173 
174  int bin(binning::findBin2D(obj, btype_, _id));
175  mes_[iME]->setBinContent(bin, _content);
176  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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 179 of file MESetDet2D.cc.

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

180  {
181  if(!active_) return;
182 
183  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
184  checkME_(iME);
185 
187 
188  int bin(binning::findBin2D(obj, btype_, _dcctccid));
189  mes_[iME]->setBinContent(bin, _content);
190  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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 247 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::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_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

248  {
249  if(!active_) return;
251 
252  unsigned iME(binning::findPlotIndex(otype_, _id));
253  checkME_(iME);
254 
256 
257  int bin;
258 
259  if(isEndcapTTId(_id)){
260  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
261  unsigned nId(ids.size());
262  for(unsigned iId(0); iId < nId; iId++){
264  mes_[iME]->setBinEntries(bin, _entries);
265  }
266  }
267  else{
268  bin = binning::findBin2D(obj, btype_, _id);
269  mes_[iME]->setBinEntries(bin, _entries);
270  }
271  }
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()
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 274 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::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_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

275  {
276  if(!active_) return;
278 
279  unsigned iME(binning::findPlotIndex(otype_, _id));
280  checkME_(iME);
281 
283 
284  int bin(binning::findBin2D(obj, btype_, _id));
285  mes_[iME]->setBinEntries(bin, _entries);
286  }
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
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 289 of file MESetDet2D.cc.

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

290  {
291  if(!active_) return;
292 
293  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
294  checkME_(iME);
295 
297 
298  int bin(binning::findBin2D(obj, btype_, _dcctccid));
299  mes_[iME]->setBinEntries(bin, _entries);
300  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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 193 of file MESetDet2D.cc.

References ecaldqm::MESet::active_, newFWLiteAna::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_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

194  {
195  if(!active_) return;
196 
197  unsigned iME(binning::findPlotIndex(otype_, _id));
198  checkME_(iME);
199 
201 
202  int bin;
203 
204  if(isEndcapTTId(_id)){
205  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
206  unsigned nId(ids.size());
207  for(unsigned iId(0); iId < nId; iId++){
209  mes_[iME]->setBinError(bin, _error);
210  }
211  }
212  else{
213  bin = binning::findBin2D(obj, btype_, _id);
214  mes_[iME]->setBinError(bin, _error);
215  }
216  }
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()
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 219 of file MESetDet2D.cc.

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

220  {
221  if(!active_) return;
222 
223  unsigned iME(binning::findPlotIndex(otype_, _id));
224  checkME_(iME);
225 
227 
228  int bin(binning::findBin2D(obj, btype_, _id));
229  mes_[iME]->setBinError(bin, _error);
230  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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 233 of file MESetDet2D.cc.

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

234  {
235  if(!active_) return;
236 
237  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
238  checkME_(iME);
239 
241 
242  int bin(binning::findBin2D(obj, btype_, _dcctccid));
243  mes_[iME]->setBinError(bin, _error);
244  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
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 527 of file MESetDet2D.cc.

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

528  {
531  resetAll(0., 0., -1.);
532  }
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