#include <MESetDet0D.h>
Public Member Functions | |
void | fill (DetId const &, double, double _unused1=0., double _unused2=0.) |
void | fill (double, double _unused1=0., double _unused=0.) |
void | fill (unsigned, double, double _unused1=0., double _unused2=0.) |
MESetDet0D (std::string const &, MEData const &, bool _readOnly=false) | |
~MESetDet0D () |
Definition at line 9 of file MESetDet0D.h.
ecaldqm::MESetDet0D::MESetDet0D | ( | std::string const & | _fullpath, |
MEData const & | _data, | ||
bool | _readOnly = false |
||
) |
Definition at line 8 of file MESetDet0D.cc.
: MESetEcal(_fullpath, _data, 0, _readOnly) { }
ecaldqm::MESetDet0D::~MESetDet0D | ( | ) |
Definition at line 13 of file MESetDet0D.cc.
{ }
void ecaldqm::MESetDet0D::fill | ( | DetId const & | _id, |
double | _value, | ||
double | _unused1 = 0. , |
||
double | _unused2 = 0. |
||
) | [virtual] |
Reimplemented from ecaldqm::MESetEcal.
Definition at line 18 of file MESetDet0D.cc.
References ecaldqm::MESet::binService_, ecaldqm::MESet::data_, EcalDQMBinningService::findOffset(), ecaldqm::MESet::mes_, evf::evtn::offset(), and ecaldqm::MEData::otype.
{ unsigned offset(binService_->findOffset(data_->otype, _id)); if(offset >= mes_.size() || !mes_[offset]) throw cms::Exception("InvalidCall") << "ME array index overflow" << std::endl; mes_[offset]->Fill(_value); }
void ecaldqm::MESetDet0D::fill | ( | double | _value, |
double | _unused1 = 0. , |
||
double | _unused = 0. |
||
) | [virtual] |
Reimplemented from ecaldqm::MESetEcal.
Definition at line 38 of file MESetDet0D.cc.
References ecaldqm::MESet::data_, Exception, EcalDQMBinningService::kEcal, ecaldqm::MESet::mes_, and ecaldqm::MEData::otype.
{ if(!(data_->otype == BinService::kEcal && mes_.size() == 1)) throw cms::Exception("InvalidCall") << "ME type incompatible"; mes_[0]->Fill(_value); }
void ecaldqm::MESetDet0D::fill | ( | unsigned | _dcctccid, |
double | _value, | ||
double | _unused1 = 0. , |
||
double | _unused2 = 0. |
||
) | [virtual] |
Reimplemented from ecaldqm::MESetEcal.
Definition at line 28 of file MESetDet0D.cc.
References ecaldqm::MESet::binService_, ecaldqm::MEData::btype, ecaldqm::MESet::data_, EcalDQMBinningService::findOffset(), ecaldqm::MESet::mes_, evf::evtn::offset(), and ecaldqm::MEData::otype.
{ unsigned offset(binService_->findOffset(data_->otype, data_->btype, _dcctccid)); if(offset >= mes_.size() || !mes_[offset]) throw cms::Exception("InvalidCall") << "ME array index overflow" << offset << std::endl; mes_[offset]->Fill(_value); }