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 | Private Member Functions
ecaldqm::MESetDet2D Class Reference

#include <MESetDet2D.h>

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

Public Member Functions

void book (DQMStore &) override
 
void book (DQMStore::IBooker &) override
 
MESetclone (std::string const &="") const override
 
void fill (DetId const &, double=1., double=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 &) override
 
void book (DQMStore::IBooker &) override
 
MESetclone (std::string const &="") const override
 
void fill (DetId const &, double=1., double=1., double=1.) override
 
void fill (EcalElectronicsId const &, double=1., double=1., double=1.) override
 
void fill (int, double=1., double=1., double=1.) override
 
void fill (double, double=1., double=1.) override
 
virtual int findBin (DetId const &, double, double=0.) const
 
virtual int findBin (EcalElectronicsId const &, double, double=0.) const
 
virtual int findBin (int, double, double=0.) const
 
std::vector< std::string > generatePaths () const
 
double getBinContent (DetId const &, int) const override
 
double getBinContent (EcalElectronicsId const &, int) const override
 
double getBinContent (int, int) const override
 
double getBinEntries (DetId const &, int) const override
 
double getBinEntries (EcalElectronicsId const &, int) const override
 
double getBinEntries (int, int) const override
 
double getBinError (DetId const &, int) const override
 
double getBinError (EcalElectronicsId const &, int) const override
 
double getBinError (int, int) const override
 
bool isVariableBinning () const override
 
 MESetEcal (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0)
 
 MESetEcal (MESetEcal const &)
 
MESetoperator= (MESet const &) override
 
bool retrieve (DQMStore const &, std::string *=0) const override
 
void setBinContent (DetId const &, int, double) override
 
void setBinContent (EcalElectronicsId const &, int, double) override
 
void setBinContent (int, int, double) override
 
void setBinEntries (DetId const &, int, double) override
 
void setBinEntries (EcalElectronicsId const &, int, double) override
 
void setBinEntries (int, int, double) override
 
void setBinError (DetId const &, int, double) override
 
void setBinError (EcalElectronicsId const &, int, double) override
 
void setBinError (int, int, double) override
 
 ~MESetEcal ()
 
- Public Member Functions inherited from ecaldqm::MESet
virtual const_iterator begin () const
 
virtual iterator begin ()
 
virtual const_iterator beginChannel () const
 
virtual iterator beginChannel ()
 
virtual void clear () const
 
virtual const_iterator end () const
 
virtual iterator end ()
 
std::string formPath (PathReplacements const &) const
 
bool getBatchMode () const
 
binning::BinningType getBinType () const
 
MonitorElement::Kind getKind () const
 
bool getLumiFlag () const
 
virtual MonitorElement const * getME (unsigned _iME) const
 
virtual MonitorElementgetME (unsigned _iME)
 
binning::ObjectType getObjType () const
 
virtual std::string const & getPath () const
 
bool isActive () const
 
virtual bool maskMatches (DetId const &, uint32_t, StatusManager const *) const
 
 MESet ()
 
 MESet (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind)
 
 MESet (MESet const &)
 
virtual void recoverStats ()
 
virtual void 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
 

Private Member Functions

template<class Bookable >
void doBook_ (Bookable &)
 

Additional Inherited Members

- Public Types inherited from ecaldqm::MESet
typedef std::map< std::string,
std::string > 
PathReplacements
 
- Protected 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:135
void throw_(std::string const &_message) const
Definition: MESet.h:125
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 _dqmStore)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 39 of file MESetDet2D.cc.

References doBook_().

40  {
41  doBook_(_dqmStore);
42  }
void doBook_(Bookable &)
Definition: MESetDet2D.cc:548
void ecaldqm::MESetDet2D::book ( DQMStore::IBooker _ibooker)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 45 of file MESetDet2D.cc.

References doBook_().

46  {
47  doBook_(_ibooker);
48  }
void doBook_(Bookable &)
Definition: MESetDet2D.cc:548
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:132
template<class Bookable >
void ecaldqm::MESetDet2D::doBook_ ( Bookable &  _booker)
private

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

Referenced by book().

549  {
550  MESetEcal::book(_booker);
551 
552  if(btype_ == binning::kCrystal){
553  for(unsigned iME(0); iME < mes_.size(); iME++){
554  MonitorElement* me(mes_[iME]);
555 
556  binning::ObjectType actualObject(binning::getObject(otype_, iME));
557  if(actualObject == binning::kMEM){
558  for(int iBin(1); iBin <= me->getNbinsX(); ++iBin)
559  me->setBinLabel(iBin, binning::channelName(memDCCId(iBin - 1)));
560  }
561  if(actualObject == binning::kEBMEM){
562  for(int iBin(1); iBin <= me->getNbinsX(); ++iBin)
563  me->setBinLabel(iBin, binning::channelName(iBin + kEBmLow));
564  }
565  if(actualObject == binning::kEEMEM){
566  for(int iBin(1); iBin <= me->getNbinsX() / 2; ++iBin){
567  me->setBinLabel(iBin, binning::channelName(memDCCId(iBin - 1)));
568  me->setBinLabel(iBin + me->getNbinsX() / 2, binning::channelName(memDCCId(iBin + 39)));
569  }
570  }
571  }
572  }
573  else if(btype_ == binning::kDCC){
574  for(unsigned iME(0); iME < mes_.size(); iME++){
575  MonitorElement* me(mes_[iME]);
576 
577  binning::ObjectType actualObject(binning::getObject(otype_, iME));
578  if(actualObject == binning::kEcal){
579  me->setBinLabel(1, "EE", 2);
580  me->setBinLabel(6, "EE", 2);
581  me->setBinLabel(3, "EB", 2);
582  me->setBinLabel(5, "EB", 2);
583  }
584  }
585  }
586 
587  // To avoid the ambiguity between "content == 0 because the mean is 0" and "content == 0 because the entry is 0"
588  // RenderPlugin must be configured accordingly
590  resetAll(0., 0., -1.);
591  }
MonitorElement::Kind kind_
Definition: MESet.h:135
void book(DQMStore &) override
Definition: MESetEcal.cc:69
bool batchMode_
Definition: MESet.h:137
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
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:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::fill ( DetId const &  _id,
double  _w = 1.,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

52  {
53  if(!active_) return;
54 
55  unsigned iME(binning::findPlotIndex(otype_, _id));
56  checkME_(iME);
57 
59 
60  int bin;
61 
62  if(isEndcapTTId(_id)){
63  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
64  unsigned nId(ids.size());
65  for(unsigned iId(0); iId < nId; iId++){
67  fill_(iME, bin, _w);
68  }
69  }
70  else{
71  bin = binning::findBin2D(obj, btype_, _id);
72  fill_(iME, bin, _w);
73  }
74  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:501
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::fill ( EcalElectronicsId const &  _id,
double  _w = 1.,
double  = 0.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

78  {
79  if(!active_) return;
80 
81  unsigned iME(binning::findPlotIndex(otype_, _id));
82  checkME_(iME);
83 
85 
86  int bin(binning::findBin2D(obj, btype_, _id));
87  fill_(iME, bin, _w);
88  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:501
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::fill ( int  _dcctccid,
double  _w = 1.,
double  = 1.,
double  = 1. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

92  {
93  if(!active_) return;
94 
95  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
96  checkME_(iME);
97 
99 
100  int bin(binning::findBin2D(obj, btype_, _dcctccid));
101  fill_(iME, bin, _w);
102  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
void fill_(unsigned, int, double) override
Definition: MESetDet2D.cc:501
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::fill_ ( unsigned  _iME,
int  _bin,
double  _w 
)
overrideprotectedvirtual

Reimplemented from ecaldqm::MESet.

Definition at line 501 of file MESetDet2D.cc.

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

Referenced by fill().

502  {
504  MonitorElement* me(mes_.at(_iME));
505  if(me->getBinEntries(_bin) < 0.){
506  me->setBinContent(_bin, 0.);
507  me->setBinEntries(_bin, 0.);
508  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
509  }
510  }
511 
512  MESet::fill_(_iME, _bin, _w);
513  }
MonitorElement::Kind kind_
Definition: MESet.h:135
void setBinContent(int binx, double content)
set content of bin (1-D)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
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 516 of file MESetDet2D.cc.

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

517  {
519  MonitorElement* me(mes_.at(_iME));
520  if(me->getBinEntries(_bin) < 0.){
521  me->setBinContent(_bin, 0.);
522  me->setBinEntries(_bin, 0.);
523  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
524  }
525  }
526 
527  MESet::fill_(_iME, _bin, _y, _w);
528  }
MonitorElement::Kind kind_
Definition: MESet.h:135
void setBinContent(int binx, double content)
set content of bin (1-D)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
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 531 of file MESetDet2D.cc.

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

532  {
534  MonitorElement* me(mes_.at(_iME));
535  int bin(me->getTProfile2D()->FindBin(_x, _wy));
536  if(me->getBinEntries(bin) < 0.){
537  me->setBinContent(bin, 0.);
538  me->setBinEntries(bin, 0.);
539  me->getTProfile2D()->SetEntries(me->getTProfile2D()->GetEntries() + 1.);
540  }
541  }
542 
543  MESet::fill_(_iME, _x, _wy, _w);
544  }
MonitorElement::Kind kind_
Definition: MESet.h:135
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:278
int ecaldqm::MESetDet2D::findBin ( DetId const &  _id) const

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

437  {
438  if(!active_) return 0;
439 
440  unsigned iME(binning::findPlotIndex(otype_, _id));
441  checkME_(iME);
442 
444 
445  if(isEndcapTTId(_id)){
446  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
448  }
449  else
450  return binning::findBin2D(obj, btype_, _id);
451  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
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:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
int ecaldqm::MESetDet2D::findBin ( EcalElectronicsId const &  _id) const

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

455  {
456  if(!active_) return 0;
457 
458  unsigned iME(binning::findPlotIndex(otype_, _id));
459  checkME_(iME);
460 
462 
463  return binning::findBin2D(obj, btype_, _id);
464  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
double ecaldqm::MESetDet2D::getBinContent ( DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

270  {
271  if(!active_) return 0.;
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)));
283  }
284  else{
285  bin = binning::findBin2D(obj, btype_, _id);
286  }
287 
288  return mes_[iME]->getBinContent(bin);
289  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
double ecaldqm::MESetDet2D::getBinContent ( EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

293  {
294  if(!active_) return 0.;
295 
296  unsigned iME(binning::findPlotIndex(otype_, _id));
297  checkME_(iME);
298 
300 
301  int bin(binning::findBin2D(obj, btype_, _id));
302 
303  return mes_[iME]->getBinContent(bin);
304  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
double ecaldqm::MESetDet2D::getBinContent ( int  _dcctccid,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

308  {
309  if(!active_) return 0.;
310 
311  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
312  checkME_(iME);
313 
315 
316  int bin(binning::findBin2D(obj, btype_, _dcctccid));
317 
318  return mes_[iME]->getBinContent(bin);
319  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
double ecaldqm::MESetDet2D::getBinEntries ( DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

376  {
377  if(!active_) return 0.;
379 
380  unsigned iME(binning::findPlotIndex(otype_, _id));
381  checkME_(iME);
382 
384 
385  int bin;
386 
387  if(isEndcapTTId(_id)){
388  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
390  }
391  else{
392  bin = binning::findBin2D(obj, btype_, _id);
393  }
394 
395  double entries(mes_[iME]->getBinEntries(bin));
396  if(entries < 0.) return 0.;
397  else return entries;
398  }
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:375
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
double ecaldqm::MESetDet2D::getBinEntries ( EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

402  {
403  if(!active_) return 0.;
405 
406  unsigned iME(binning::findPlotIndex(otype_, _id));
407  checkME_(iME);
408 
410 
411  int bin(binning::findBin2D(obj, btype_, _id));
412 
413  double entries(mes_[iME]->getBinEntries(bin));
414  if(entries < 0.) return 0.;
415  else return entries;
416  }
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:375
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
double ecaldqm::MESetDet2D::getBinEntries ( int  _dcctccid,
int   
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

420  {
421  if(!active_) return 0.;
422 
423  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
424  checkME_(iME);
425 
427 
428  int bin(binning::findBin2D(obj, btype_, _dcctccid));
429 
430  double entries(mes_[iME]->getBinEntries(bin));
431  if(entries < 0.) return 0.;
432  else return entries;
433  }
double getBinEntries(DetId const &, int=0) const override
Definition: MESetDet2D.cc:375
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
double ecaldqm::MESetDet2D::getBinError ( DetId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

323  {
324  if(!active_) return 0.;
325 
326  unsigned iME(binning::findPlotIndex(otype_, _id));
327  checkME_(iME);
328 
330 
331  int bin;
332 
333  if(isEndcapTTId(_id)){
334  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
336  }
337  else{
338  bin = binning::findBin2D(obj, btype_, _id);
339  }
340 
341  return mes_[iME]->getBinError(bin);
342  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
double ecaldqm::MESetDet2D::getBinError ( EcalElectronicsId const &  _id,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

346  {
347  if(!active_) return 0.;
348 
349  unsigned iME(binning::findPlotIndex(otype_, _id));
350  checkME_(iME);
351 
353 
354  int bin(binning::findBin2D(obj, btype_, _id));
355 
356  return mes_[iME]->getBinError(bin);
357  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
double ecaldqm::MESetDet2D::getBinError ( int  _dcctccid,
int  = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

361  {
362  if(!active_) return 0.;
363 
364  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
365  checkME_(iME);
366 
368 
369  int bin(binning::findBin2D(obj, btype_, _dcctccid));
370 
371  return mes_[iME]->getBinError(bin);
372  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::reset ( double  _content = 0.,
double  _err = 0.,
double  _entries = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

468  {
469  unsigned nME(binning::getNObjects(otype_));
470 
471  bool isProfile(kind_ == MonitorElement::DQM_KIND_TPROFILE2D);
472 
473  for(unsigned iME(0); iME < nME; iME++) {
474  MonitorElement* me(mes_[iME]);
475 
477 
478  int nbinsX(me->getTH1()->GetNbinsX());
479  int nbinsY(me->getTH1()->GetNbinsY());
480  for(int ix(1); ix <= nbinsX; ix++){
481  for(int iy(1); iy <= nbinsY; iy++){
482  int bin((nbinsX + 2) * iy + ix);
483  if(!binning::isValidIdBin(obj, btype_, iME, bin)) continue;
484  me->setBinContent(bin, _content);
485  me->setBinError(bin, _err);
486  if(isProfile) me->setBinEntries(bin, _entries);
487  }
488  }
489  }
490  }
MonitorElement::Kind kind_
Definition: MESet.h:135
bool isValidIdBin(ObjectType, BinningType, unsigned, int)
unsigned getNObjects(ObjectType)
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::setBinContent ( DetId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

106  {
107  if(!active_) return;
108 
109  unsigned iME(binning::findPlotIndex(otype_, _id));
110  checkME_(iME);
111 
113 
114  int bin;
115 
116  if(isEndcapTTId(_id)){
117  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
118  unsigned nId(ids.size());
119  for(unsigned iId(0); iId < nId; iId++){
121  mes_[iME]->setBinContent(bin, _content);
122  }
123  }
124  else{
125  bin = binning::findBin2D(obj, btype_, _id);
126  mes_[iME]->setBinContent(bin, _content);
127  }
128  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::setBinContent ( EcalElectronicsId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

132  {
133  if(!active_) return;
134 
135  unsigned iME(binning::findPlotIndex(otype_, _id));
136  checkME_(iME);
137 
139 
140  int bin(binning::findBin2D(obj, btype_, _id));
141  mes_[iME]->setBinContent(bin, _content);
142  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::setBinContent ( int  _dcctccid,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

146  {
147  if(!active_) return;
148 
149  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
150  checkME_(iME);
151 
153 
154  int bin(binning::findBin2D(obj, btype_, _dcctccid));
155  mes_[iME]->setBinContent(bin, _content);
156  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::setBinEntries ( DetId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

214  {
215  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]->setBinEntries(bin, _entries);
231  }
232  }
233  else{
234  bin = binning::findBin2D(obj, btype_, _id);
235  mes_[iME]->setBinEntries(bin, _entries);
236  }
237  }
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::setBinEntries ( EcalElectronicsId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

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

Reimplemented from ecaldqm::MESet.

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

256  {
257  if(!active_) return;
258 
259  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
260  checkME_(iME);
261 
263 
264  int bin(binning::findBin2D(obj, btype_, _dcctccid));
265  mes_[iME]->setBinEntries(bin, _entries);
266  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::setBinError ( DetId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

160  {
161  if(!active_) return;
162 
163  unsigned iME(binning::findPlotIndex(otype_, _id));
164  checkME_(iME);
165 
167 
168  int bin;
169 
170  if(isEndcapTTId(_id)){
171  std::vector<DetId> ids(getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(_id)));
172  unsigned nId(ids.size());
173  for(unsigned iId(0); iId < nId; iId++){
175  mes_[iME]->setBinError(bin, _error);
176  }
177  }
178  else{
179  bin = binning::findBin2D(obj, btype_, _id);
180  mes_[iME]->setBinError(bin, _error);
181  }
182  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
bool isEndcapTTId(DetId const &)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::setBinError ( EcalElectronicsId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

186  {
187  if(!active_) return;
188 
189  unsigned iME(binning::findPlotIndex(otype_, _id));
190  checkME_(iME);
191 
193 
194  int bin(binning::findBin2D(obj, btype_, _id));
195  mes_[iME]->setBinError(bin, _error);
196  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::setBinError ( int  _dcctccid,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

200  {
201  if(!active_) return;
202 
203  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
204  checkME_(iME);
205 
207 
208  int bin(binning::findBin2D(obj, btype_, _dcctccid));
209  mes_[iME]->setBinError(bin, _error);
210  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin2D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet2D::softReset ( )
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 493 of file MESetDet2D.cc.

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

494  {
497  resetAll(0., 0., -1.);
498  }
MonitorElement::Kind kind_
Definition: MESet.h:135
bool batchMode_
Definition: MESet.h:137
virtual void softReset()
Definition: MESet.cc:256
virtual void resetAll(double=0., double=0., double=0.)
Definition: MESet.cc:118