CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions
ecaldqm::MESetDet1D Class Reference

#include <MESetDet1D.h>

Inheritance diagram for ecaldqm::MESetDet1D:
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=1., double=0.) override
 
void fill (EcalElectronicsId const &, double=1., double=1., double=0.) override
 
void fill (int, double=1., double=1., double=0.) override
 
int findBin (DetId const &) const
 
int findBin (EcalElectronicsId const &) const
 
int findBin (int) const
 
int findBin (DetId const &, double, double=0.) const override
 
int findBin (EcalElectronicsId const &, double, double=0.) const override
 
int findBin (int, double, double=0.) const override
 
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=0) 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
 
 MESetDet1D (std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
 
 MESetDet1D (MESetDet1D 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 setBinContent (DetId const &, int, double) override
 
void setBinContent (EcalElectronicsId const &, int, double) override
 
void setBinContent (int, int, double) override
 
void setBinEntries (DetId const &, double) override
 
void setBinEntries (EcalElectronicsId const &, double) override
 
void setBinEntries (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 &, double) override
 
void setBinError (EcalElectronicsId const &, double) override
 
void setBinError (int, double) override
 
void setBinError (DetId const &, int, double) override
 
void setBinError (EcalElectronicsId const &, int, double) override
 
void setBinError (int, int, double) override
 
 ~MESetDet1D ()
 
- 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
 
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 void softReset ()
 
virtual ~MESet ()
 

Private Member Functions

template<class Bookable >
void doBook_ (Bookable &)
 

Additional Inherited Members

- Public Types inherited from ecaldqm::MESet
typedef std::map< std::string,
std::string > 
PathReplacements
 
- Protected Member Functions inherited from ecaldqm::MESet
virtual void checkME_ (unsigned _iME) const
 
virtual void fill_ (unsigned, int, double)
 
virtual void fill_ (unsigned, int, double, double)
 
virtual void fill_ (unsigned, double, double, double)
 
void throw_ (std::string const &_message) const
 
- 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 14 of file MESetDet1D.h.

Constructor & Destructor Documentation

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

Definition at line 8 of file MESetDet1D.cc.

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

Referenced by clone().

8  :
9  MESetEcal(_fullPath, _otype, _btype, _kind, 1, 0, _yaxis, 0)
10  {
11  switch(kind_){
16  break;
17  default:
18  throw_("Unsupported MonitorElement kind");
19  }
20  }
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::MESetDet1D::MESetDet1D ( MESetDet1D const &  _orig)

Definition at line 22 of file MESetDet1D.cc.

22  :
23  MESetEcal(_orig)
24  {
25  }
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::MESetDet1D::~MESetDet1D ( )

Definition at line 27 of file MESetDet1D.cc.

28  {
29  }

Member Function Documentation

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

Reimplemented from ecaldqm::MESet.

Definition at line 42 of file MESetDet1D.cc.

References doBook_().

43  {
44  doBook_(_dqmStore);
45  }
void doBook_(Bookable &)
Definition: MESetDet1D.cc:727
void ecaldqm::MESetDet1D::book ( DQMStore::IBooker _ibooker)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 48 of file MESetDet1D.cc.

References doBook_().

49  {
50  doBook_(_ibooker);
51  }
void doBook_(Bookable &)
Definition: MESetDet1D.cc:727
MESet * ecaldqm::MESetDet1D::clone ( std::string const &  _path = "") const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 32 of file MESetDet1D.cc.

References filterCSVwithJSON::copy, MESetDet1D(), cmsHarvester::path, ecaldqm::MESet::path_, and AlCaHLTBitMon_QueryRunRegistry::string.

33  {
35  if(_path != "") path_ = _path;
36  MESet* copy(new MESetDet1D(*this));
37  path_ = path;
38  return copy;
39  }
tuple path
else: Piece not in the list, fine.
MESetDet1D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
Definition: MESetDet1D.cc:8
std::string path_
Definition: MESet.h:132
template<class Bookable >
void ecaldqm::MESetDet1D::doBook_ ( Bookable &  _booker)
private

Definition at line 727 of file MESetDet1D.cc.

References ecaldqm::MESetEcal::book(), ecaldqm::MESet::btype_, ecaldqm::binning::channelName(), MonitorElement::getNbinsX(), ecaldqm::binning::getObject(), SurfaceOrientation::inner, ecaldqm::innerTCCs(), ecaldqm::binning::kDCC, ecaldqm::binning::kEB, ecaldqm::kEBmLow, ecaldqm::binning::kEE, ecaldqm::binning::kEEm, ecaldqm::kEEmHigh, ecaldqm::binning::kEEp, ecaldqm::kEEpLow, ecaldqm::binning::kEESM, ecaldqm::binning::kSM, ecaldqm::binning::kTriggerTower, ecaldqm::MESet::mes_, evf::evtn::offset(), ecaldqm::MESet::otype_, SurfaceOrientation::outer, ecaldqm::outerTCCs(), MonitorElement::setBinLabel(), and contentValuesCheck::ss.

Referenced by book().

728  {
729  MESetEcal::book(_booker);
730 
731  if(btype_ == binning::kDCC){
732  for(unsigned iME(0); iME < mes_.size(); iME++){
733  MonitorElement* me(mes_[iME]);
734 
735  binning::ObjectType actualObject(binning::getObject(otype_, iME));
736  if(actualObject == binning::kEB){
737  for(int iBin(1); iBin <= me->getNbinsX(); iBin++)
738  me->setBinLabel(iBin, binning::channelName(iBin + kEBmLow));
739  }
740  else if(actualObject == binning::kEE){
741  for(int iBin(1); iBin <= me->getNbinsX() / 2; iBin++){
742  me->setBinLabel(iBin, binning::channelName(iBin));
743  me->setBinLabel(iBin + me->getNbinsX() / 2, binning::channelName(iBin + 45));
744  }
745  }
746  else if(actualObject == binning::kEEm){
747  for(int iBin(1); iBin <= me->getNbinsX(); iBin++)
748  me->setBinLabel(iBin, binning::channelName(iBin));
749  }
750  else if(actualObject == binning::kEEp){
751  for(int iBin(1); iBin <= me->getNbinsX(); iBin++)
752  me->setBinLabel(iBin, binning::channelName(iBin + 45));
753  }
754  }
755  }
756  else if(btype_ == binning::kTriggerTower){
757  for(unsigned iME(0); iME < mes_.size(); iME++){
758  MonitorElement* me(mes_[iME]);
759 
760  binning::ObjectType actualObject(binning::getObject(otype_, iME));
761  unsigned dccid(0);
762  if(actualObject == binning::kSM && (iME <= kEEmHigh || iME >= kEEpLow)) dccid = iME + 1;
763  else if(actualObject == binning::kEESM) dccid = iME <= kEEmHigh ? iME + 1 : iME + 37;
764 
765  if(dccid > 0){
766  std::stringstream ss;
767  std::pair<unsigned, unsigned> inner(innerTCCs(iME + 1));
768  std::pair<unsigned, unsigned> outer(outerTCCs(iME + 1));
769  ss << "TCC" << inner.first << " TT1";
770  me->setBinLabel(1, ss.str());
771  ss.str("");
772  ss << "TCC" << inner.second << " TT1";
773  me->setBinLabel(25, ss.str());
774  ss.str("");
775  ss << "TCC" << outer.first << " TT1";
776  me->setBinLabel(49, ss.str());
777  ss.str("");
778  ss << "TCC" << outer.second << " TT1";
779  me->setBinLabel(65, ss.str());
780  int offset(0);
781  for(int iBin(4); iBin <= 80; iBin += 4){
782  if(iBin == 28) offset = 24;
783  else if(iBin == 52) offset = 48;
784  else if(iBin == 68) offset = 64;
785  ss.str("");
786  ss << iBin - offset;
787  me->setBinLabel(iBin, ss.str());
788  }
789  }
790  }
791  }
792  }
void book(DQMStore &) override
Definition: MESetEcal.cc:69
std::pair< unsigned, unsigned > outerTCCs(unsigned)
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
unsigned int offset(bool)
std::string channelName(uint32_t, BinningType _btype=kDCC)
std::pair< unsigned, unsigned > innerTCCs(unsigned)
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet1D::fill ( DetId const &  _id,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 54 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::MESet::fill_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

55  {
56  if(!active_) return;
57 
58  unsigned iME(binning::findPlotIndex(otype_, _id));
59  checkME_(iME);
60 
62  int xbin(binning::findBin1D(obj, btype_, _id));
63 
65  fill_(iME, xbin, _wy, _w);
66  else
67  fill_(iME, xbin, _wy);
68  }
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:278
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet1D::fill ( EcalElectronicsId const &  _id,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 71 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::MESet::fill_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

72  {
73  if(!active_) return;
74 
75  unsigned iME(binning::findPlotIndex(otype_, _id));
76  checkME_(iME);
77 
79  int xbin(binning::findBin1D(obj, btype_, _id));
80 
82  fill_(iME, xbin, _wy, _w);
83  else
84  fill_(iME, xbin, _wy);
85  }
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:278
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
void ecaldqm::MESetDet1D::fill ( int  _dcctccid,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 88 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::MESet::fill_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

89  {
90  if(!active_) return;
91 
92  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
93  checkME_(iME);
94 
96  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
97 
99  fill_(iME, xbin, _wy, _w);
100  else
101  fill_(iME, xbin, _wy);
102  }
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
virtual void fill_(unsigned, int, double)
Definition: MESet.cc:278
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:139
binning::ObjectType otype_
Definition: MESet.h:133
binning::BinningType btype_
Definition: MESet.h:134
int ecaldqm::MESetDet1D::findBin ( DetId const &  _id) const

Definition at line 612 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

613  {
614  if(!active_) return -1;
616 
617  unsigned iME(binning::findPlotIndex(otype_, _id));
618  checkME_(iME);
619 
621  return binning::findBin1D(obj, btype_, _id);
622  }
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
int findBin1D(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::MESetDet1D::findBin ( EcalElectronicsId const &  _id) const

Definition at line 625 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

626  {
627  if(!active_) return -1;
629 
630  unsigned iME(binning::findPlotIndex(otype_, _id));
631  checkME_(iME);
632 
634  return binning::findBin1D(obj, btype_, _id);
635  }
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
int findBin1D(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::MESetDet1D::findBin ( int  _dcctccid) const

Definition at line 638 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

639  {
640  if(!active_) return -1;
642 
643  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
644  checkME_(iME);
645 
647  return binning::findBin1D(obj, btype_, _dcctccid);
648  }
MonitorElement::Kind kind_
Definition: MESet.h:135
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
int findBin1D(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::MESetDet1D::findBin ( DetId const &  _id,
double  _y,
double  = 0. 
) const
overridevirtual

Reimplemented from ecaldqm::MESetEcal.

Definition at line 651 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

652  {
653  if(!active_) return -1;
655 
656  unsigned iME(binning::findPlotIndex(otype_, _id));
657  checkME_(iME);
658 
659  MonitorElement* me(mes_[iME]);
660 
662  int xbin(binning::findBin1D(obj, btype_, _id));
663  int nbinsX(me->getTH1()->GetNbinsX());
664  return xbin + (nbinsX + 2) * me->getTH1()->GetYaxis()->FindBin(_y);
665  }
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 findBin1D(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::MESetDet1D::findBin ( EcalElectronicsId const &  _id,
double  _y,
double  = 0. 
) const
overridevirtual

Reimplemented from ecaldqm::MESetEcal.

Definition at line 668 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

669  {
670  if(!active_) return -1;
672 
673  unsigned iME(binning::findPlotIndex(otype_, _id));
674  checkME_(iME);
675 
676  MonitorElement* me(mes_[iME]);
677 
679  int xbin(binning::findBin1D(obj, btype_, _id));
680  int nbinsX(me->getTH1()->GetNbinsX());
681  return xbin + (nbinsX + 2) * me->getTH1()->GetYaxis()->FindBin(_y);
682  }
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 findBin1D(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::MESetDet1D::findBin ( int  _dcctccid,
double  _y,
double  = 0. 
) const
overridevirtual

Reimplemented from ecaldqm::MESetEcal.

Definition at line 685 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

686  {
687  if(!active_) return -1;
689 
690  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
691  checkME_(iME);
692 
693  MonitorElement* me(mes_[iME]);
694 
696  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
697  int nbinsX(me->getTH1()->GetNbinsX());
698  return xbin + (nbinsX + 2) * me->getTH1()->GetYaxis()->FindBin(_y);
699  }
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 findBin1D(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::MESetDet1D::getBinContent ( DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 456 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinContent(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

457  {
458  if(!active_) return 0.;
459 
460  unsigned iME(binning::findPlotIndex(otype_, _id));
461  checkME_(iME);
462 
463  MonitorElement* me(mes_[iME]);
464 
466  int xbin(binning::findBin1D(obj, btype_, _id));
467  int nbinsX(me->getTH1()->GetNbinsX());
468 
469  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
470  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin1D(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::MESetDet1D::getBinContent ( EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 473 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinContent(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

474  {
475  if(!active_) return 0.;
476 
477  unsigned iME(binning::findPlotIndex(otype_, _id));
478  checkME_(iME);
479 
480  MonitorElement* me(mes_[iME]);
481 
483  int xbin(binning::findBin1D(obj, btype_, _id));
484  int nbinsX(me->getTH1()->GetNbinsX());
485 
486  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
487  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin1D(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::MESetDet1D::getBinContent ( int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 490 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinContent(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

491  {
492  if(!active_) return 0.;
493 
494  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
495  checkME_(iME);
496 
497  MonitorElement* me(mes_[iME]);
498 
500  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
501  int nbinsX(me->getTH1()->GetNbinsX());
502 
503  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
504  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin1D(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::MESetDet1D::getBinEntries ( DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 558 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinEntries(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

559  {
560  if(!active_) return 0.;
562 
563  unsigned iME(binning::findPlotIndex(otype_, _id));
564  checkME_(iME);
565 
566  MonitorElement* me(mes_[iME]);
567 
569  int xbin(binning::findBin1D(obj, btype_, _id));
570  int nbinsX(me->getTH1()->GetNbinsX());
571 
572  return me->getBinEntries((nbinsX + 2) * _ybin + xbin);
573  }
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 findBin1D(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::MESetDet1D::getBinEntries ( EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 576 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinEntries(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

577  {
578  if(!active_) return 0.;
580 
581  unsigned iME(binning::findPlotIndex(otype_, _id));
582  checkME_(iME);
583 
584  MonitorElement* me(mes_[iME]);
585 
587  int xbin(binning::findBin1D(obj, btype_, _id));
588  int nbinsX(me->getTH1()->GetNbinsX());
589 
590  return me->getBinEntries((nbinsX + 2) * _ybin + xbin);
591  }
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 findBin1D(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::MESetDet1D::getBinEntries ( int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 594 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinEntries(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

595  {
596  if(!active_) return 0.;
598 
599  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
600  checkME_(iME);
601 
602  MonitorElement* me(mes_[iME]);
603 
605  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
606  int nbinsX(me->getTH1()->GetNbinsX());
607 
608  return me->getBinEntries((nbinsX + 2) * _ybin + xbin);
609  }
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 findBin1D(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::MESetDet1D::getBinError ( DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 507 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinError(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

508  {
509  if(!active_) return 0.;
510 
511  unsigned iME(binning::findPlotIndex(otype_, _id));
512  checkME_(iME);
513 
514  MonitorElement* me(mes_[iME]);
515 
517  int xbin(binning::findBin1D(obj, btype_, _id));
518  int nbinsX(me->getTH1()->GetNbinsX());
519 
520  return me->getBinError((nbinsX + 2) * _ybin + xbin);
521  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin1D(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::MESetDet1D::getBinError ( EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 524 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinError(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

525  {
526  if(!active_) return 0.;
527 
528  unsigned iME(binning::findPlotIndex(otype_, _id));
529  checkME_(iME);
530 
531  MonitorElement* me(mes_[iME]);
532 
534  int xbin(binning::findBin1D(obj, btype_, _id));
535  int nbinsX(me->getTH1()->GetNbinsX());
536 
537  return me->getBinError((nbinsX + 2) * _ybin + xbin);
538  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin1D(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::MESetDet1D::getBinError ( int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 541 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), MonitorElement::getBinError(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::mes_, getGTfromDQMFile::obj, and ecaldqm::MESet::otype_.

542  {
543  if(!active_) return 0.;
544 
545  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
546  checkME_(iME);
547 
548  MonitorElement* me(mes_[iME]);
549 
551  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
552  int nbinsX(me->getTH1()->GetNbinsX());
553 
554  return me->getBinError((nbinsX + 2) * _ybin + xbin);
555  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:116
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
int findBin1D(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::MESetDet1D::reset ( double  _content = 0.,
double  _err = 0.,
double  _entries = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 702 of file MESetDet1D.cc.

References newFWLiteAna::bin, MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::getNObjects(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, ecaldqm::MESet::otype_, MonitorElement::setBinContent(), MonitorElement::setBinEntries(), and MonitorElement::setBinError().

703  {
704  unsigned nME(binning::getNObjects(otype_));
705 
708 
709  for(unsigned iME(0); iME < nME; iME++) {
710  MonitorElement* me(mes_[iME]);
711 
712  int nbinsX(me->getTH1()->GetNbinsX());
713  int nbinsY(me->getTH1()->GetNbinsY());
714  for(int ix(1); ix <= nbinsX; ix++){
715  for(int iy(1); iy <= nbinsY; iy++){
716  int bin(is2D ? (nbinsX + 2) * iy + ix : ix);
717  me->setBinContent(bin, _content);
718  me->setBinError(bin, _err);
719  if(isProfile) me->setBinEntries(bin, _entries);
720  }
721  }
722  }
723  }
MonitorElement::Kind kind_
Definition: MESet.h:135
unsigned getNObjects(ObjectType)
std::vector< MonitorElement * > mes_
Definition: MESet.h:130
binning::ObjectType otype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinContent ( DetId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 105 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinContent().

106  {
107  if(!active_) return;
108 
109  unsigned iME(binning::findPlotIndex(otype_, _id));
110  checkME_(iME);
111 
112  MonitorElement* me(mes_[iME]);
113 
115  int xbin(binning::findBin1D(obj, btype_, _id));
116 
118  int nbinsY(me->getTH1()->GetNbinsY());
119  for(int iY(1); iY <= nbinsY; iY++)
120  me->setBinContent(xbin, iY, _content);
121  }
122  else
123  me->setBinContent(xbin, _content);
124  }
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 findBin1D(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::MESetDet1D::setBinContent ( EcalElectronicsId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 127 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinContent().

128  {
129  if(!active_) return;
130 
131  unsigned iME(binning::findPlotIndex(otype_, _id));
132  checkME_(iME);
133 
134  MonitorElement* me(mes_[iME]);
135 
137  int xbin(binning::findBin1D(obj, btype_, _id));
138 
140  int nbinsY(me->getTH1()->GetNbinsY());
141  for(int iY(1); iY <= nbinsY; iY++)
142  me->setBinContent(xbin, iY, _content);
143  }
144  else
145  me->setBinContent(xbin, _content);
146  }
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 findBin1D(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::MESetDet1D::setBinContent ( int  _dcctccid,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 149 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinContent().

150  {
151  if(!active_) return;
152 
153  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
154  checkME_(iME);
155 
156  MonitorElement* me(mes_[iME]);
157 
159  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
160 
162  int nbinsY(me->getTH1()->GetNbinsY());
163  for(int iY(1); iY <= nbinsY; iY++)
164  me->setBinContent(xbin, iY, _content);
165  }
166  else
167  me->setBinContent(xbin, _content);
168  }
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 findBin1D(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::MESetDet1D::setBinContent ( DetId const &  _id,
int  _ybin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 171 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinContent().

172  {
173  if(!active_) return;
175 
176  unsigned iME(binning::findPlotIndex(otype_, _id));
177  checkME_(iME);
178 
179  MonitorElement* me(mes_[iME]);
180 
182  int xbin(binning::findBin1D(obj, btype_, _id));
183  me->setBinContent(xbin, _ybin, _content);
184  }
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 findBin1D(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::MESetDet1D::setBinContent ( EcalElectronicsId const &  _id,
int  _ybin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 187 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinContent().

188  {
189  if(!active_) return;
191 
192  unsigned iME(binning::findPlotIndex(otype_, _id));
193  checkME_(iME);
194 
195  MonitorElement* me(mes_[iME]);
196 
198  int xbin(binning::findBin1D(obj, btype_, _id));
199  me->setBinContent(xbin, _ybin, _content);
200  }
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 findBin1D(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::MESetDet1D::setBinContent ( int  _dcctccid,
int  _ybin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 203 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinContent().

204  {
205  if(!active_) return;
207 
208  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
209  checkME_(iME);
210 
211  MonitorElement* me(mes_[iME]);
212 
214  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
215  me->setBinContent(xbin, _ybin, _content);
216  }
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 findBin1D(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::MESetDet1D::setBinEntries ( DetId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 333 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinEntries().

334  {
335  if(!active_) return;
337 
338  unsigned iME(binning::findPlotIndex(otype_, _id));
339  checkME_(iME);
340 
341  MonitorElement* me(mes_[iME]);
342 
344  int xbin(binning::findBin1D(obj, btype_, _id));
345 
347  int nbinsX(me->getTH1()->GetNbinsX());
348  int nbinsY(me->getTH1()->GetNbinsY());
349  for(int iY(1); iY <= nbinsY; iY++)
350  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
351  }
352  else
353  me->setBinEntries(xbin, _entries);
354  }
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 findBin1D(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::MESetDet1D::setBinEntries ( EcalElectronicsId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 357 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinEntries().

358  {
359  if(!active_) return;
361 
362  unsigned iME(binning::findPlotIndex(otype_, _id));
363  checkME_(iME);
364 
365  MonitorElement* me(mes_[iME]);
366 
368  int xbin(binning::findBin1D(obj, btype_, _id));
369 
371  int nbinsX(me->getTH1()->GetNbinsX());
372  int nbinsY(me->getTH1()->GetNbinsY());
373  for(int iY(1); iY <= nbinsY; iY++)
374  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
375  }
376  else
377  me->setBinEntries(xbin, _entries);
378  }
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 findBin1D(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::MESetDet1D::setBinEntries ( int  _dcctccid,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 381 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinEntries().

382  {
383  if(!active_) return;
385 
386  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
387  checkME_(iME);
388 
389  MonitorElement* me(mes_[iME]);
390 
392  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
393 
395  int nbinsX(me->getTH1()->GetNbinsX());
396  int nbinsY(me->getTH1()->GetNbinsY());
397  for(int iY(1); iY <= nbinsY; iY++)
398  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
399  }
400  else
401  me->setBinEntries(xbin, _entries);
402  }
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 findBin1D(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::MESetDet1D::setBinEntries ( DetId const &  _id,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 405 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinEntries().

406  {
407  if(!active_) return;
409 
410  unsigned iME(binning::findPlotIndex(otype_, _id));
411  checkME_(iME);
412 
413  MonitorElement* me(mes_[iME]);
414 
416  int xbin(binning::findBin1D(obj, btype_, _id));
417  int nbinsX(me->getTH1()->GetNbinsX());
418  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
419  }
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 findBin1D(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::MESetDet1D::setBinEntries ( EcalElectronicsId const &  _id,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 422 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinEntries().

423  {
424  if(!active_) return;
426 
427  unsigned iME(binning::findPlotIndex(otype_, _id));
428  checkME_(iME);
429 
430  MonitorElement* me(mes_[iME]);
431 
433  int xbin(binning::findBin1D(obj, btype_, _id));
434  int nbinsX(me->getTH1()->GetNbinsX());
435  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
436  }
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 findBin1D(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::MESetDet1D::setBinEntries ( int  _dcctccid,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 439 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinEntries().

440  {
441  if(!active_) return;
443 
444  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
445  checkME_(iME);
446 
447  MonitorElement* me(mes_[iME]);
448 
450  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
451  int nbinsX(me->getTH1()->GetNbinsX());
452  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
453  }
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 findBin1D(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::MESetDet1D::setBinError ( DetId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 219 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinError().

220  {
221  if(!active_) return;
222 
223  unsigned iME(binning::findPlotIndex(otype_, _id));
224  checkME_(iME);
225 
226  MonitorElement* me(mes_[iME]);
227 
229  int xbin(binning::findBin1D(obj, btype_, _id));
230 
232  int nbinsY(me->getTH1()->GetNbinsY());
233  for(int iY(1); iY <= nbinsY; iY++)
234  me->setBinError(xbin, iY, _error);
235  }
236  else
237  me->setBinError(xbin, _error);
238  }
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 findBin1D(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::MESetDet1D::setBinError ( EcalElectronicsId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 241 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinError().

242  {
243  if(!active_) return;
244 
245  unsigned iME(binning::findPlotIndex(otype_, _id));
246  checkME_(iME);
247 
248  MonitorElement* me(mes_[iME]);
249 
251  int xbin(binning::findBin1D(obj, btype_, _id));
252 
254  int nbinsY(me->getTH1()->GetNbinsY());
255  for(int iY(1); iY <= nbinsY; iY++)
256  me->setBinError(xbin, iY, _error);
257  }
258  else
259  me->setBinError(xbin, _error);
260  }
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 findBin1D(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::MESetDet1D::setBinError ( int  _dcctccid,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 263 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), MonitorElement::getTH1(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinError().

264  {
265  if(!active_) return;
266 
267  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
268  checkME_(iME);
269 
270  MonitorElement* me(mes_[iME]);
271 
273  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
274 
276  int nbinsY(me->getTH1()->GetNbinsY());
277  for(int iY(1); iY <= nbinsY; iY++)
278  me->setBinError(xbin, iY, _error);
279  }
280  else
281  me->setBinError(xbin, _error);
282  }
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 findBin1D(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::MESetDet1D::setBinError ( DetId const &  _id,
int  _ybin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 285 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinError().

286  {
287  if(!active_) return;
289 
290  unsigned iME(binning::findPlotIndex(otype_, _id));
291  checkME_(iME);
292 
293  MonitorElement* me(mes_[iME]);
294 
296  int xbin(binning::findBin1D(obj, btype_, _id));
297  me->setBinError(xbin, _ybin, _error);
298  }
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 findBin1D(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::MESetDet1D::setBinError ( EcalElectronicsId const &  _id,
int  _ybin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 301 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinError().

302  {
303  if(!active_) return;
305 
306  unsigned iME(binning::findPlotIndex(otype_, _id));
307  checkME_(iME);
308 
309  MonitorElement* me(mes_[iME]);
310 
312  int xbin(binning::findBin1D(obj, btype_, _id));
313  me->setBinError(xbin, _ybin, _error);
314  }
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 findBin1D(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::MESetDet1D::setBinError ( int  _dcctccid,
int  _ybin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 317 of file MESetDet1D.cc.

References ecaldqm::MESet::active_, ecaldqm::MESet::btype_, ecaldqm::MESet::checkME_(), MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE2D, ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, ecaldqm::MESet::mes_, getGTfromDQMFile::obj, ecaldqm::MESet::otype_, and MonitorElement::setBinError().

318  {
319  if(!active_) return;
321 
322  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
323  checkME_(iME);
324 
325  MonitorElement* me(mes_[iME]);
326 
328  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
329  me->setBinError(xbin, _ybin, _error);
330  }
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 findBin1D(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