CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MESetDet2D.cc
Go to the documentation of this file.
2 
3 namespace ecaldqm
4 {
5 
6  MESetDet2D::MESetDet2D(std::string const& _fullpath, MEData const& _data, bool _readOnly/* = false*/) :
7  MESetEcal(_fullpath, _data, 2, _readOnly)
8  {
9  }
10 
12  {
13  }
14 
15  void
16  MESetDet2D::fill(DetId const& _id, double _w/* = 1.*/, double, double)
17  {
18  find_(_id);
19 
21  if(getBinEntries(_id) < 0.){
22  setBinEntries(_id, 0.);
23  setBinContent(_id, 0., 0.);
24  }
25  }
26 
27  fill_(_w);
28  }
29 
30 }
double getBinEntries(DetId const &, int _bin=0) const
Definition: MESetEcal.cc:331
MonitorElement::Kind kind
Definition: MESet.h:24
virtual void fill_(double)
Definition: MESetEcal.cc:491
MESetDet2D(std::string const &, MEData const &, bool _readOnly=false)
Definition: MESetDet2D.cc:6
void fill(DetId const &, double _w=1., double _unused1=0., double _unused2=0.)
Definition: MESetDet2D.cc:16
Definition: DetId.h:18
void setBinContent(DetId const &, double, double _err=0.)
Definition: MESetEcal.cc:251
MEData const * data_
Definition: MESet.h:133
void setBinEntries(DetId const &, double)
Definition: MESetEcal.cc:271
virtual void find_(uint32_t) const
Definition: MESetEcal.cc:470