6 MESet(_fullPath, _otype, _btype, _kind),
38 MESetNonObject const* pRhs(dynamic_cast<MESetNonObject const*>(&_rhs));
51 if(!_path.empty())
path_ = _path;
64 if(
path_.find(
'%') != string::npos)
65 throw_(
"book() called with incompletely formed path");
67 size_t slashPos(
path_.find_last_of(
'/'));
81 throw_(
"No xaxis found for MESetNonObject");
93 throw_(
"No xaxis found for MESetNonObject");
119 throw_(
"No x/yaxis found for MESetNonObject");
131 throw_(
"No x/yaxis found for MESetNonObject");
133 throw_(
"Variable bin size for 2D profile not implemented");
135 double high(0.), low(0.);
145 me = _ibooker.
bookProfile2D(
name,
name,
xaxis_->
nbins,
xaxis_->
low,
xaxis_->
high,
yaxis_->
nbins,
yaxis_->
low,
yaxis_->
high, low, high,
"");
150 throw_(
"Unsupported MonitorElement kind");
189 if(_failedPath) *_failedPath =
path_;
204 if(
mes_.empty() || !
mes_[0])
return;
212 mes_[0]->Fill(_x, _wy);
216 mes_[0]->Fill(_x, _wy, _w);
229 if(
mes_.empty() || !
mes_[0])
return;
231 mes_[0]->setBinContent(_bin, _content);
240 if(
mes_.empty() || !
mes_[0])
return;
242 mes_[0]->setBinError(_bin, _error);
251 if(
mes_.empty() || !
mes_[0])
return;
253 mes_[0]->setBinEntries(_bin, _entries);
262 if(
mes_.empty() || !
mes_[0])
return 0.;
264 return mes_[0]->getBinContent(_bin);
280 if(
mes_.empty() || !
mes_[0])
return 0.;
282 return mes_[0]->getBinError(_bin);
291 if(
mes_.empty() || !
mes_[0])
return 0.;
293 return mes_[0]->getBinEntries(_bin);
301 if(
mes_.empty() || !
mes_[0])
return 0;
304 return mes_[0]->getTH1()->FindBin(_x);
306 return mes_[0]->getTH1()->FindBin(_x, _y);
binning::AxisSpecs const * zaxis_
MonitorElement::Kind kind_
MESet & operator=(MESet const &) override
void setBinEntries(int, double) override
bool retrieve(DQMStore::IGetter &, std::string *=0) const override
virtual void clear() const
MonitorElement * bookProfile(Args &&...args)
MonitorElement * get(const std::string &path)
binning::AxisSpecs const * xaxis_
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
binning::AxisSpecs const * yaxis_
void setBinError(int, double) override
double getBinEntries(int, int=0) const override
double getBinContent(int, int=0) const override
std::vector< MonitorElement * > mes_
~MESetNonObject() override
void book(DQMStore::IBooker &) override
void setLumiFlag()
this ME is meant to be stored for each luminosity section
void setBinContent(int, double) override
void throw_(std::string const &_message) const
MonitorElement * bookProfile2D(Args &&...args)
double getBinError(int, int=0) const override
MonitorElement * book1D(Args &&...args)
int findBin(double, double=0.) const
bool isVariableBinning() const override
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
MESetNonObject(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0, binning::AxisSpecs const *=0)
double getFloatValue() const
void fill(double, double=1., double=1.) override
MonitorElement * bookFloat(Args &&...args)
virtual MESet & operator=(MESet const &)
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MESet * clone(std::string const &="") const override