17 #include "boost/ptr_container/ptr_map.hpp" 44 virtual void clear()
const;
46 virtual void fill(
DetId const&,
double = 1.,
double = 1.,
double = 1.) {}
48 virtual void fill(
int,
double = 1.,
double = 1.,
double = 1.) {}
49 virtual void fill(
double,
double = 1.,
double = 1.) {}
87 virtual void reset(
double = 0.,
double = 0.,
double = 0.);
88 virtual void resetAll(
double = 0.,
double = 0.,
double = 0.);
111 virtual void fill_(
unsigned,
int,
double);
112 virtual void fill_(
unsigned,
int,
double,
double);
113 virtual void fill_(
unsigned,
double,
double,
double);
118 std::stringstream ss;
119 ss <<
"ME does not exist at index " << _iME;
129 mutable std::vector<MonitorElement*>
mes_;
153 ConstBin(
ConstBin const& _orig) : meSet_(_orig.meSet_), iME(_orig.iME), iBin(_orig.iBin), otype(_orig.otype) {}
157 return meSet_ != 0 && meSet_ == _rhs.
meSet_ && iME == _rhs.
iME && iBin == _rhs.
iBin;
176 if(meSet_ && iME !=
unsigned(-1))
return meSet_->
getME(iME)->
getBinError(iBin);
186 if(meSet_ && iME !=
unsigned(-1))
return meSet_->
getME(iME);
205 if(wasNull) meSet_ = _rhs.
meSet_;
212 void fill(
double _y,
double _w = 1.)
230 if(meSet_ &&
iME !=
unsigned(-1))
return meSet_->
getME(
iME);
321 template<>
void delete_clone<ecaldqm::MESet>(
ecaldqm::MESet const*);
virtual std::string const & getPath() const
MonitorElement::Kind kind_
iterator(MESet &_meSet, unsigned _iME=0, int _iBin=1)
const_iterator & operator=(const_iterator const &_rhs)
virtual MonitorElement const * getME(unsigned _iME) const
MonitorElement::Kind getKind() const
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual void setBinEntries(int, int, double)
virtual void setAxisTitle(std::string const &, int=1)
const_iterator & operator++()
virtual void book(DQMStore::IBooker &)
virtual void setBinEntries(EcalElectronicsId const &, double)
iterator & operator=(const_iterator const &_rhs)
virtual void clear() const
const_iterator(MESet const &_meSet, unsigned _iME=0, int _iBin=1)
virtual double getBinError(DetId const &, int=0) const
bool operator==(const_iterator const &_rhs) const
virtual void checkME_(unsigned _iME) const
bool isValidIdBin(ObjectType, BinningType, unsigned, int)
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
void fill(double _y, double _w=1.)
virtual void setBinEntries(int, double)
iterator(iterator const &_orig)
double getBinEntries() const
binning::ObjectType otype
MonitorElement const * getME() const
virtual MESet * clone(std::string const &="") const
virtual void setBinEntries(DetId const &, double)
virtual iterator beginChannel()
virtual double getBinError(EcalElectronicsId const &, int=0) const
virtual void setBinContent(DetId const &, int, double)
const_iterator & toNextChannel()
virtual void setBinContent(DetId const &, double)
virtual bool maskMatches(DetId const &, uint32_t, StatusManager const *) const
MonitorElement * getME() const
virtual double getBinEntries(int, int=0) const
virtual const_iterator begin() const
virtual void fill(int, double=1., double=1., double=1.)
virtual double getBinContent(int, int=0) const
void setMESet(MESet &_meSet)
virtual void setBinError(EcalElectronicsId const &, int, double)
virtual void setBinError(DetId const &, double)
std::vector< MonitorElement * > mes_
virtual void setBinContent(int, double)
virtual void setBinError(DetId const &, int, double)
virtual double getBinContent(DetId const &, int=0) const
binning::ObjectType getObjType() const
void throw_(std::string const &_message) const
virtual double getBinError(int, int=0) const
ConstBin(ConstBin const &_orig)
virtual void fill(EcalElectronicsId const &, double=1., double=1., double=1.)
Bin const * operator->() const
double getBinError() const
virtual const_iterator beginChannel() const
virtual void reset(double=0., double=0., double=0.)
virtual void setBinError(int, double)
iterator(MESet &_meSet, DetId const &_id)
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
virtual bool isVariableBinning() const
bool operator!=(const_iterator const &_rhs) const
virtual void setBinContent(EcalElectronicsId const &, int, double)
boost::ptr_map< std::string, MESet > MESetCollection
ConstBin & operator=(ConstBin const &)
virtual void fill_(unsigned, int, double)
std::string formPath(PathReplacements const &) const
const_iterator(const_iterator const &_orig)
MESet const * getMESet() const
bool getBatchMode() const
ConstBin & operator=(Bin const &_rhs)
double getBinError(int binx) const
get uncertainty on content of bin (1-D) - See TH1::GetBinError for details
virtual MonitorElement * getME(unsigned _iME)
virtual void fill(DetId const &, double=1., double=1., double=1.)
Bin(MESet &_set, unsigned _iME=0, int _iBin=1)
binning::BinningType getBinType() const
virtual void resetAll(double=0., double=0., double=0.)
double getBinContent() const
virtual bool retrieve(DQMStore::IGetter &, std::string *=0) const
virtual double getBinContent(EcalElectronicsId const &, int=0) const
virtual void setBinContent(int, int, double)
virtual void recoverStats()
virtual void setBinEntries(EcalElectronicsId const &, int, double)
virtual void setBinError(EcalElectronicsId const &, double)
double getBinContent(int binx) const
get content of bin (1-D)
virtual double getBinEntries(DetId const &, int=0) const
virtual double getBinEntries(EcalElectronicsId const &, int=0) const
double getBinEntries(int bin) const
get # of bin entries (for profiles)
ConstBin const * operator->() const
virtual void setBinError(int, int, double)
void setMESet(MESet const &_meSet)
binning::ObjectType otype_
void setBinContent(double _content)
virtual const_iterator end() const
const_iterator & toNextChannel()
void setBinEntries(double _entries)
virtual MESet & operator=(MESet const &)
binning::BinningType btype_
void setBinError(double _error)
std::map< std::string, std::string > PathReplacements
bool operator==(ConstBin const &_rhs) const
virtual void setBinContent(EcalElectronicsId const &, double)
void setBinEntries(int bin, double nentries)
set # of bin entries (to be used for profiles)
const_iterator & operator++()
virtual void setBinEntries(DetId const &, int, double)
virtual void fill(double, double=1., double=1.)
uint32_t idFromBin(ObjectType, BinningType, unsigned, int)