|
|
Go to the documentation of this file.
11 :
MESet(_fullPath, _otype, _btype, _kind),
12 xaxis_(_xaxis ? new
binning::AxisSpecs(*_xaxis) : nullptr),
13 yaxis_(_yaxis ? new
binning::AxisSpecs(*_yaxis) : nullptr),
14 zaxis_(_zaxis ? new
binning::AxisSpecs(*_zaxis) : nullptr) {}
18 xaxis_(_orig.xaxis_ ? new
binning::AxisSpecs(*_orig.xaxis_) : nullptr),
19 yaxis_(_orig.yaxis_ ? new
binning::AxisSpecs(*_orig.yaxis_) : nullptr),
20 zaxis_(_orig.zaxis_ ? new
binning::AxisSpecs(*_orig.zaxis_) : nullptr) {}
36 MESetNonObject const *pRhs(dynamic_cast<MESetNonObject const *>(&_rhs));
62 if (
path_.find(
'%') != string::npos)
63 throw_(
"book() called with incompletely formed path");
65 size_t slashPos(
path_.find_last_of(
'/'));
68 auto oldscope = MonitorElementData::Scope::RUN;
70 oldscope = _ibooker.
setScope(MonitorElementData::Scope::LUMI);
81 throw_(
"No xaxis found for MESetNonObject");
91 throw_(
"No xaxis found for MESetNonObject");
113 throw_(
"No x/yaxis found for MESetNonObject");
125 throw_(
"No x/yaxis found for MESetNonObject");
127 throw_(
"Variable bin size for 2D profile not implemented");
152 throw_(
"Unsupported MonitorElement kind");
191 *_failedPath =
path_;
214 mes_[0]->Fill(_x, _wy);
218 mes_[0]->Fill(_x, _wy, _w);
246 mes_[0]->setBinError(_bin, _error);
258 mes_[0]->setBinEntries(_bin, _entries);
270 return mes_[0]->getBinContent(_bin);
275 return mes_[0]->getFloatValue();
289 return mes_[0]->getBinError(_bin);
301 return mes_[0]->getBinEntries(_bin);
312 return mes_[0]->getTH1()->FindBin(_x);
314 return mes_[0]->getTH1()->FindBin(_x, _y);
void throw_(std::string const &_message) const
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
const binning::AxisSpecs * xaxis_
virtual MonitorElementData::Scope setScope(MonitorElementData::Scope newscope)
virtual MESet & operator=(MESet const &)
MonitorElement * bookProfile2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, double lowZ, double highZ, char const *option="s", FUNC onbooking=NOOP())
virtual void setCurrentFolder(std::string const &fullpath)
void fill(double, double=1., double=1.) override
void setBinEntries(int, double) override
const binning::AxisSpecs * zaxis_
double getBinContent(int, int=0) const override
double getBinEntries(int, int=0) const override
int findBin(double, double=0.) const
double getFloatValue() const
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
void book(DQMStore::IBooker &) override
~MESetNonObject() override
MESet * clone(std::string const &="") const override
void setBinError(int, double) override
const binning::AxisSpecs * yaxis_
bool retrieve(DQMStore::IGetter &, std::string *=nullptr) const override
std::vector< MonitorElement * > mes_
virtual void clear() const
MESet & operator=(MESet const &) override
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
virtual MonitorElement * get(std::string const &fullpath) const
double getBinError(int, int=0) const override
MonitorElement::Kind kind_
void setBinContent(int, double) override
MESetNonObject(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr, binning::AxisSpecs const *=nullptr)
bool isVariableBinning() const override
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())