CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/DQM/EcalCommon/src/MESetDet2D.cc

Go to the documentation of this file.
00001 #include "DQM/EcalCommon/interface/MESetDet2D.h"
00002 
00003 namespace ecaldqm
00004 {
00005 
00006   MESetDet2D::MESetDet2D(std::string const& _fullpath, MEData const& _data, bool _readOnly/* = false*/) :
00007     MESetEcal(_fullpath, _data, 2, _readOnly)
00008   {
00009   }
00010 
00011   MESetDet2D::~MESetDet2D()
00012   {
00013   }
00014 
00015   void
00016   MESetDet2D::fill(DetId const& _id, double _w/* = 1.*/, double, double)
00017   {
00018     find_(_id);
00019 
00020     if(data_->kind == MonitorElement::DQM_KIND_TPROFILE2D){
00021       if(getBinEntries(_id) < 0.){
00022         setBinEntries(_id, 0.);
00023         setBinContent(_id, 0., 0.);
00024       }
00025     }
00026 
00027     fill_(_w);
00028   }
00029 
00030 }