CMS 3D CMS Logo

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

#include <MESetDet1D.h>

Inheritance diagram for ecaldqm::MESetDet1D:
ecaldqm::MESetEcal ecaldqm::MESet

Public Member Functions

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

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, nullptr, _yaxis, nullptr)
10  {
11  switch(kind_){
16  break;
17  default:
18  throw_("Unsupported MonitorElement kind");
19  }
20  }
MonitorElement::Kind kind_
Definition: MESet.h:134
void throw_(std::string const &_message) const
Definition: MESet.h:124
MESetEcal(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, unsigned, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0)
Definition: MESetEcal.cc:11
ecaldqm::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 ( )
override

Definition at line 27 of file MESetDet1D.cc.

28  {
29  }

Member Function Documentation

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

Reimplemented from ecaldqm::MESet.

Definition at line 42 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_, ecaldqm::nTTInner, ecaldqm::nTTOuter, PFRecoTauDiscriminationByIsolation_cfi::offset, ecaldqm::MESet::otype_, SurfaceOrientation::outer, ecaldqm::outerTCCs(), and MonitorElement::setBinLabel().

43  {
44  MESetEcal::book(_ibooker);
45 
46  if(btype_ == binning::kDCC){
47  for(unsigned iME(0); iME < mes_.size(); iME++){
48  MonitorElement* me(mes_[iME]);
49 
50  binning::ObjectType actualObject(binning::getObject(otype_, iME));
51  if(actualObject == binning::kEB){
52  for(int iBin(1); iBin <= me->getNbinsX(); iBin++)
53  me->setBinLabel(iBin, binning::channelName(iBin + kEBmLow));
54  }
55  else if(actualObject == binning::kEE){
56  for(int iBin(1); iBin <= me->getNbinsX() / 2; iBin++){
57  me->setBinLabel(iBin, binning::channelName(iBin));
58  me->setBinLabel(iBin + me->getNbinsX() / 2, binning::channelName(iBin + 45));
59  }
60  }
61  else if(actualObject == binning::kEEm){
62  for(int iBin(1); iBin <= me->getNbinsX(); iBin++)
63  me->setBinLabel(iBin, binning::channelName(iBin));
64  }
65  else if(actualObject == binning::kEEp){
66  for(int iBin(1); iBin <= me->getNbinsX(); iBin++)
67  me->setBinLabel(iBin, binning::channelName(iBin + 45));
68  }
69  }
70  }
71  else if(btype_ == binning::kTriggerTower){
72  for(unsigned iME(0); iME < mes_.size(); iME++){
73  MonitorElement* me(mes_[iME]);
74 
75  binning::ObjectType actualObject(binning::getObject(otype_, iME));
76  unsigned dccid(0);
77  if(actualObject == binning::kSM && (iME <= kEEmHigh || iME >= kEEpLow)) dccid = iME + 1;
78  else if(actualObject == binning::kEESM) dccid = iME <= kEEmHigh ? iME + 1 : iME + 37;
79 
80  if(dccid > 0){
81  std::stringstream ss;
82  std::pair<unsigned, unsigned> inner(innerTCCs(iME + 1));
83  std::pair<unsigned, unsigned> outer(outerTCCs(iME + 1));
84  ss << "TCC" << inner.first << " TT1";
85  me->setBinLabel(1, ss.str());
86  ss.str("");
87  ss << "TCC" << inner.second << " TT1";
88  me->setBinLabel(1+nTTInner, ss.str());
89  ss.str("");
90  ss << "TCC" << outer.first << " TT1";
91  me->setBinLabel(1+2*nTTInner, ss.str());
92  ss.str("");
93  ss << "TCC" << outer.second << " TT1";
94  me->setBinLabel(1+2*nTTInner+nTTOuter, ss.str());
95  // Bins are numbered:
96  // inner1:(1)-->(nTTInner)
97  // inner2:(1+nTTInner)-->(1+nTTInner + nTTInner-1 = 2*nTTInner)
98  // outer1:(1+2*nTTInner)-->(1+2*nTTInner+nTTOuter-1=2*nTTInner+nTTOuter)
99  // outer2:(1+2*nTTInner+nTTOuter)-->(1+2*nTTInner+nTTOuter + nTTOuter-1 = 2*nTTInner+2*nTTOuter)
100  int offset(0);
101  for(int iBin(4); iBin <= (2*nTTOuter + 2*nTTInner); iBin += 4){
102  if(iBin == 4+nTTInner) offset = nTTInner;
103  else if(iBin == 4+2*nTTInner) offset = 2*nTTInner;
104  else if(iBin == 4+2*nTTInner+nTTOuter) offset = 2*nTTInner+nTTOuter;
105  ss.str("");
106  ss << iBin - offset;
107  me->setBinLabel(iBin, ss.str());
108  }
109  }
110  }
111  }
112  }
std::pair< unsigned, unsigned > outerTCCs(unsigned)
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
std::string channelName(uint32_t, BinningType _btype=kDCC)
std::pair< unsigned, unsigned > innerTCCs(unsigned)
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void book(DQMStore::IBooker &) override
Definition: MESetEcal.cc:69
MESet * ecaldqm::MESetDet1D::clone ( std::string const &  _path = "") const
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 32 of file MESetDet1D.cc.

References popcon2dropbox::copy(), MESetDet1D(), callgraph::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  }
def copy(args, dbName)
MESetDet1D(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
Definition: MESetDet1D.cc:8
std::string path_
Definition: MESet.h:131
void ecaldqm::MESetDet1D::fill ( DetId const &  _id,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

116  {
117  if(!active_) return;
118 
119  unsigned iME(binning::findPlotIndex(otype_, _id));
120  checkME_(iME);
121 
123  int xbin(binning::findBin1D(obj, btype_, _id));
124 
126  fill_(iME, xbin, _wy, _w);
127  else
128  fill_(iME, xbin, _wy);
129  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
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:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::fill ( EcalElectronicsId const &  _id,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

133  {
134  if(!active_) return;
135 
136  unsigned iME(binning::findPlotIndex(otype_, _id));
137  checkME_(iME);
138 
140  int xbin(binning::findBin1D(obj, btype_, _id));
141 
143  fill_(iME, xbin, _wy, _w);
144  else
145  fill_(iME, xbin, _wy);
146  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
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:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::fill ( int  _dcctccid,
double  _wy = 1.,
double  _w = 1.,
double  = 0. 
)
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::MESet::fill_(), ecaldqm::binning::findBin1D(), ecaldqm::binning::findPlotIndex(), ecaldqm::binning::getObject(), ecaldqm::MESet::kind_, GetRecoTauVFromDQM_MC_cff::obj, and ecaldqm::MESet::otype_.

150  {
151  if(!active_) return;
152 
153  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
154  checkME_(iME);
155 
157  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
158 
160  fill_(iME, xbin, _wy, _w);
161  else
162  fill_(iME, xbin, _wy);
163  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
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:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
int ecaldqm::MESetDet1D::findBin ( DetId const &  _id) const

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

674  {
675  if(!active_) return -1;
677 
678  unsigned iME(binning::findPlotIndex(otype_, _id));
679  checkME_(iME);
680 
682  return binning::findBin1D(obj, btype_, _id);
683  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
int ecaldqm::MESetDet1D::findBin ( EcalElectronicsId const &  _id) const

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

687  {
688  if(!active_) return -1;
690 
691  unsigned iME(binning::findPlotIndex(otype_, _id));
692  checkME_(iME);
693 
695  return binning::findBin1D(obj, btype_, _id);
696  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
int ecaldqm::MESetDet1D::findBin ( int  _dcctccid) const

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

700  {
701  if(!active_) return -1;
703 
704  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
705  checkME_(iME);
706 
708  return binning::findBin1D(obj, btype_, _dcctccid);
709  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
int ecaldqm::MESetDet1D::findBin ( DetId const &  _id,
double  _y,
double  = 0. 
) const
overridevirtual

Reimplemented from ecaldqm::MESetEcal.

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

713  {
714  if(!active_) return -1;
716 
717  unsigned iME(binning::findPlotIndex(otype_, _id));
718  checkME_(iME);
719 
720  MonitorElement* me(mes_[iME]);
721 
723  int xbin(binning::findBin1D(obj, btype_, _id));
724  int nbinsX(me->getTH1()->GetNbinsX());
725  return xbin + (nbinsX + 2) * me->getTH1()->GetYaxis()->FindBin(_y);
726  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
int ecaldqm::MESetDet1D::findBin ( EcalElectronicsId const &  _id,
double  _y,
double  = 0. 
) const
overridevirtual

Reimplemented from ecaldqm::MESetEcal.

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

730  {
731  if(!active_) return -1;
733 
734  unsigned iME(binning::findPlotIndex(otype_, _id));
735  checkME_(iME);
736 
737  MonitorElement* me(mes_[iME]);
738 
740  int xbin(binning::findBin1D(obj, btype_, _id));
741  int nbinsX(me->getTH1()->GetNbinsX());
742  return xbin + (nbinsX + 2) * me->getTH1()->GetYaxis()->FindBin(_y);
743  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
int ecaldqm::MESetDet1D::findBin ( int  _dcctccid,
double  _y,
double  = 0. 
) const
overridevirtual

Reimplemented from ecaldqm::MESetEcal.

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

747  {
748  if(!active_) return -1;
750 
751  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
752  checkME_(iME);
753 
754  MonitorElement* me(mes_[iME]);
755 
757  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
758  int nbinsX(me->getTH1()->GetNbinsX());
759  return xbin + (nbinsX + 2) * me->getTH1()->GetYaxis()->FindBin(_y);
760  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet1D::getBinContent ( DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

518  {
519  if(!active_) return 0.;
520 
521  unsigned iME(binning::findPlotIndex(otype_, _id));
522  checkME_(iME);
523 
524  MonitorElement* me(mes_[iME]);
525 
527  int xbin(binning::findBin1D(obj, btype_, _id));
528  int nbinsX(me->getTH1()->GetNbinsX());
529 
530  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
531  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet1D::getBinContent ( EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

535  {
536  if(!active_) return 0.;
537 
538  unsigned iME(binning::findPlotIndex(otype_, _id));
539  checkME_(iME);
540 
541  MonitorElement* me(mes_[iME]);
542 
544  int xbin(binning::findBin1D(obj, btype_, _id));
545  int nbinsX(me->getTH1()->GetNbinsX());
546 
547  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
548  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet1D::getBinContent ( int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

552  {
553  if(!active_) return 0.;
554 
555  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
556  checkME_(iME);
557 
558  MonitorElement* me(mes_[iME]);
559 
561  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
562  int nbinsX(me->getTH1()->GetNbinsX());
563 
564  return me->getBinContent((nbinsX + 2) * _ybin + xbin);
565  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet1D::getBinEntries ( DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

620  {
621  if(!active_) return 0.;
623 
624  unsigned iME(binning::findPlotIndex(otype_, _id));
625  checkME_(iME);
626 
627  MonitorElement* me(mes_[iME]);
628 
630  int xbin(binning::findBin1D(obj, btype_, _id));
631  int nbinsX(me->getTH1()->GetNbinsX());
632 
633  return me->getBinEntries((nbinsX + 2) * _ybin + xbin);
634  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet1D::getBinEntries ( EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

638  {
639  if(!active_) return 0.;
641 
642  unsigned iME(binning::findPlotIndex(otype_, _id));
643  checkME_(iME);
644 
645  MonitorElement* me(mes_[iME]);
646 
648  int xbin(binning::findBin1D(obj, btype_, _id));
649  int nbinsX(me->getTH1()->GetNbinsX());
650 
651  return me->getBinEntries((nbinsX + 2) * _ybin + xbin);
652  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet1D::getBinEntries ( int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

656  {
657  if(!active_) return 0.;
659 
660  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
661  checkME_(iME);
662 
663  MonitorElement* me(mes_[iME]);
664 
666  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
667  int nbinsX(me->getTH1()->GetNbinsX());
668 
669  return me->getBinEntries((nbinsX + 2) * _ybin + xbin);
670  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet1D::getBinError ( DetId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

569  {
570  if(!active_) return 0.;
571 
572  unsigned iME(binning::findPlotIndex(otype_, _id));
573  checkME_(iME);
574 
575  MonitorElement* me(mes_[iME]);
576 
578  int xbin(binning::findBin1D(obj, btype_, _id));
579  int nbinsX(me->getTH1()->GetNbinsX());
580 
581  return me->getBinError((nbinsX + 2) * _ybin + xbin);
582  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet1D::getBinError ( EcalElectronicsId const &  _id,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

586  {
587  if(!active_) return 0.;
588 
589  unsigned iME(binning::findPlotIndex(otype_, _id));
590  checkME_(iME);
591 
592  MonitorElement* me(mes_[iME]);
593 
595  int xbin(binning::findBin1D(obj, btype_, _id));
596  int nbinsX(me->getTH1()->GetNbinsX());
597 
598  return me->getBinError((nbinsX + 2) * _ybin + xbin);
599  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
double ecaldqm::MESetDet1D::getBinError ( int  _dcctccid,
int  _ybin = 0 
) const
overridevirtual

Reimplemented from ecaldqm::MESet.

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

603  {
604  if(!active_) return 0.;
605 
606  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
607  checkME_(iME);
608 
609  MonitorElement* me(mes_[iME]);
610 
612  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
613  int nbinsX(me->getTH1()->GetNbinsX());
614 
615  return me->getBinError((nbinsX + 2) * _ybin + xbin);
616  }
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::reset ( double  _content = 0.,
double  _err = 0.,
double  _entries = 0. 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

Definition at line 763 of file MESetDet1D.cc.

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

764  {
765  unsigned nME(binning::getNObjects(otype_));
766 
769 
770  for(unsigned iME(0); iME < nME; iME++) {
771  MonitorElement* me(mes_[iME]);
772 
773  int nbinsX(me->getTH1()->GetNbinsX());
774  int nbinsY(me->getTH1()->GetNbinsY());
775  for(int ix(1); ix <= nbinsX; ix++){
776  for(int iy(1); iy <= nbinsY; iy++){
777  int bin(is2D ? (nbinsX + 2) * iy + ix : ix);
778  me->setBinContent(bin, _content);
779  me->setBinError(bin, _err);
780  if(isProfile) me->setBinEntries(bin, _entries);
781  }
782  }
783  }
784  }
MonitorElement::Kind kind_
Definition: MESet.h:134
unsigned getNObjects(ObjectType)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
bool is2D(HitType hitType)
bin
set the eta bin as selection string.
binning::ObjectType otype_
Definition: MESet.h:132
void ecaldqm::MESetDet1D::setBinContent ( DetId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

167  {
168  if(!active_) return;
169 
170  unsigned iME(binning::findPlotIndex(otype_, _id));
171  checkME_(iME);
172 
173  MonitorElement* me(mes_[iME]);
174 
176  int xbin(binning::findBin1D(obj, btype_, _id));
177 
179  int nbinsY(me->getTH1()->GetNbinsY());
180  for(int iY(1); iY <= nbinsY; iY++)
181  me->setBinContent(xbin, iY, _content);
182  }
183  else
184  me->setBinContent(xbin, _content);
185  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinContent ( EcalElectronicsId const &  _id,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

189  {
190  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 
201  int nbinsY(me->getTH1()->GetNbinsY());
202  for(int iY(1); iY <= nbinsY; iY++)
203  me->setBinContent(xbin, iY, _content);
204  }
205  else
206  me->setBinContent(xbin, _content);
207  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinContent ( int  _dcctccid,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

211  {
212  if(!active_) return;
213 
214  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
215  checkME_(iME);
216 
217  MonitorElement* me(mes_[iME]);
218 
220  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
221 
223  int nbinsY(me->getTH1()->GetNbinsY());
224  for(int iY(1); iY <= nbinsY; iY++)
225  me->setBinContent(xbin, iY, _content);
226  }
227  else
228  me->setBinContent(xbin, _content);
229  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinContent ( DetId const &  _id,
int  _ybin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

233  {
234  if(!active_) return;
236 
237  unsigned iME(binning::findPlotIndex(otype_, _id));
238  checkME_(iME);
239 
240  MonitorElement* me(mes_[iME]);
241 
243  int xbin(binning::findBin1D(obj, btype_, _id));
244  me->setBinContent(xbin, _ybin, _content);
245  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinContent ( EcalElectronicsId const &  _id,
int  _ybin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

249  {
250  if(!active_) return;
252 
253  unsigned iME(binning::findPlotIndex(otype_, _id));
254  checkME_(iME);
255 
256  MonitorElement* me(mes_[iME]);
257 
259  int xbin(binning::findBin1D(obj, btype_, _id));
260  me->setBinContent(xbin, _ybin, _content);
261  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinContent ( int  _dcctccid,
int  _ybin,
double  _content 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

265  {
266  if(!active_) return;
268 
269  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
270  checkME_(iME);
271 
272  MonitorElement* me(mes_[iME]);
273 
275  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
276  me->setBinContent(xbin, _ybin, _content);
277  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinEntries ( DetId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

395  {
396  if(!active_) return;
398 
399  unsigned iME(binning::findPlotIndex(otype_, _id));
400  checkME_(iME);
401 
402  MonitorElement* me(mes_[iME]);
403 
405  int xbin(binning::findBin1D(obj, btype_, _id));
406 
408  int nbinsX(me->getTH1()->GetNbinsX());
409  int nbinsY(me->getTH1()->GetNbinsY());
410  for(int iY(1); iY <= nbinsY; iY++)
411  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
412  }
413  else
414  me->setBinEntries(xbin, _entries);
415  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinEntries ( EcalElectronicsId const &  _id,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

419  {
420  if(!active_) return;
422 
423  unsigned iME(binning::findPlotIndex(otype_, _id));
424  checkME_(iME);
425 
426  MonitorElement* me(mes_[iME]);
427 
429  int xbin(binning::findBin1D(obj, btype_, _id));
430 
432  int nbinsX(me->getTH1()->GetNbinsX());
433  int nbinsY(me->getTH1()->GetNbinsY());
434  for(int iY(1); iY <= nbinsY; iY++)
435  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
436  }
437  else
438  me->setBinEntries(xbin, _entries);
439  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinEntries ( int  _dcctccid,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

443  {
444  if(!active_) return;
446 
447  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
448  checkME_(iME);
449 
450  MonitorElement* me(mes_[iME]);
451 
453  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
454 
456  int nbinsX(me->getTH1()->GetNbinsX());
457  int nbinsY(me->getTH1()->GetNbinsY());
458  for(int iY(1); iY <= nbinsY; iY++)
459  me->setBinEntries((nbinsX + 2) * iY + xbin, _entries);
460  }
461  else
462  me->setBinEntries(xbin, _entries);
463  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinEntries ( DetId const &  _id,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

467  {
468  if(!active_) return;
470 
471  unsigned iME(binning::findPlotIndex(otype_, _id));
472  checkME_(iME);
473 
474  MonitorElement* me(mes_[iME]);
475 
477  int xbin(binning::findBin1D(obj, btype_, _id));
478  int nbinsX(me->getTH1()->GetNbinsX());
479  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
480  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinEntries ( EcalElectronicsId const &  _id,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

484  {
485  if(!active_) return;
487 
488  unsigned iME(binning::findPlotIndex(otype_, _id));
489  checkME_(iME);
490 
491  MonitorElement* me(mes_[iME]);
492 
494  int xbin(binning::findBin1D(obj, btype_, _id));
495  int nbinsX(me->getTH1()->GetNbinsX());
496  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
497  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinEntries ( int  _dcctccid,
int  _ybin,
double  _entries 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

501  {
502  if(!active_) return;
504 
505  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
506  checkME_(iME);
507 
508  MonitorElement* me(mes_[iME]);
509 
511  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
512  int nbinsX(me->getTH1()->GetNbinsX());
513  me->setBinEntries((nbinsX + 2) * _ybin + xbin, _entries);
514  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinError ( DetId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

281  {
282  if(!active_) return;
283 
284  unsigned iME(binning::findPlotIndex(otype_, _id));
285  checkME_(iME);
286 
287  MonitorElement* me(mes_[iME]);
288 
290  int xbin(binning::findBin1D(obj, btype_, _id));
291 
293  int nbinsY(me->getTH1()->GetNbinsY());
294  for(int iY(1); iY <= nbinsY; iY++)
295  me->setBinError(xbin, iY, _error);
296  }
297  else
298  me->setBinError(xbin, _error);
299  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinError ( EcalElectronicsId const &  _id,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

303  {
304  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 
315  int nbinsY(me->getTH1()->GetNbinsY());
316  for(int iY(1); iY <= nbinsY; iY++)
317  me->setBinError(xbin, iY, _error);
318  }
319  else
320  me->setBinError(xbin, _error);
321  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinError ( int  _dcctccid,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

325  {
326  if(!active_) return;
327 
328  unsigned iME(binning::findPlotIndex(otype_, _dcctccid, btype_));
329  checkME_(iME);
330 
331  MonitorElement* me(mes_[iME]);
332 
334  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
335 
337  int nbinsY(me->getTH1()->GetNbinsY());
338  for(int iY(1); iY <= nbinsY; iY++)
339  me->setBinError(xbin, iY, _error);
340  }
341  else
342  me->setBinError(xbin, _error);
343  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinError ( DetId const &  _id,
int  _ybin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

347  {
348  if(!active_) return;
350 
351  unsigned iME(binning::findPlotIndex(otype_, _id));
352  checkME_(iME);
353 
354  MonitorElement* me(mes_[iME]);
355 
357  int xbin(binning::findBin1D(obj, btype_, _id));
358  me->setBinError(xbin, _ybin, _error);
359  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinError ( EcalElectronicsId const &  _id,
int  _ybin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

363  {
364  if(!active_) return;
366 
367  unsigned iME(binning::findPlotIndex(otype_, _id));
368  checkME_(iME);
369 
370  MonitorElement* me(mes_[iME]);
371 
373  int xbin(binning::findBin1D(obj, btype_, _id));
374  me->setBinError(xbin, _ybin, _error);
375  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133
void ecaldqm::MESetDet1D::setBinError ( int  _dcctccid,
int  _ybin,
double  _error 
)
overridevirtual

Reimplemented from ecaldqm::MESet.

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

379  {
380  if(!active_) return;
382 
383  unsigned iME(binning::findPlotIndex(otype_, _dcctccid));
384  checkME_(iME);
385 
386  MonitorElement* me(mes_[iME]);
387 
389  int xbin(binning::findBin1D(obj, btype_, _dcctccid));
390  me->setBinError(xbin, _ybin, _error);
391  }
MonitorElement::Kind kind_
Definition: MESet.h:134
virtual void checkME_(unsigned _iME) const
Definition: MESet.h:115
ObjectType getObject(ObjectType, unsigned)
std::vector< MonitorElement * > mes_
Definition: MESet.h:129
int findBin1D(ObjectType, BinningType, DetId const &)
unsigned findPlotIndex(ObjectType, DetId const &)
bool active_
Definition: MESet.h:138
binning::ObjectType otype_
Definition: MESet.h:132
binning::BinningType btype_
Definition: MESet.h:133