8 MESet(_fullpath, _data, _readOnly)
33 throw cms::Exception(
"InvalidCall") <<
"No xaxis found for MESetNonObject" << std::endl;
39 for(
int i(0);
i < xaxis->
nbins + 1;
i++)
50 throw cms::Exception(
"InvalidCall") <<
"No xaxis found for MESetNonObject" << std::endl;
72 throw cms::Exception(
"InvalidCall") <<
"No x/yaxis found for MESetNonObject" << std::endl;
77 float* xedges(
new float[xaxis->
nbins + 1]);
78 for(
int i(0);
i < xaxis->
nbins + 1;
i++)
80 float* yedges(
new float[yaxis->
nbins + 1]);
81 for(
int i(0);
i < yaxis->
nbins + 1;
i++)
93 throw cms::Exception(
"InvalidCall") <<
"No x/yaxis found for MESetNonObject" << std::endl;
94 double high(0.), low(0.);
104 me =
dqmStore_->
bookProfile2D(
name_,
name_, xaxis->
nbins, xaxis->
low, xaxis->
high, yaxis->
nbins, yaxis->
low, yaxis->
high, low, high,
"");
109 throw cms::Exception(
"InvalidCall") <<
"MESetNonObject of type " <<
data_->
kind <<
" not implemented" << std::endl;
123 if(!me)
return false;
138 if(
mes_.size() == 0 || !
mes_[0])
return;
146 mes_[0]->Fill(_x, _wy);
150 mes_[0]->Fill(_x, _wy, _w);
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
BinService::AxisSpecs * yaxis
MonitorElement::Kind kind
void fill(double, double _wy=1., double _w=1.)
MonitorElement * bookFloat(const char *name)
Book float.
BinService::AxisSpecs * xaxis
std::vector< MonitorElement * > mes_
static DQMStore * dqmStore_
const T & max(const T &a, const T &b)
MESetNonObject(std::string const &, MEData const &, bool _readOnly=false)
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
BinService::AxisSpecs * zaxis
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setCurrentFolder(const std::string &fullpath)
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")