CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ContainerSingleProf1D.cc
Go to the documentation of this file.
2 
3 namespace hcaldqm
4 {
5  using namespace axis;
6 
8  {
9  _xaxis = NULL;
10  _yaxis = NULL;
11  }
12 
14  std::string const& nametitle, axis::Axis *xaxis,
15  axis::Axis *yaxis):
16  ContainerSingle1D(folder, nametitle, xaxis, yaxis)
17  {}
18 
20  folder,
21  std::string const& nametitle, axis::Axis *xaxis,
22  axis::Axis *yaxis, int debug/*=0*/)
23  {
24  ContainerSingle1D::initialize(folder, nametitle, xaxis, yaxis, debug);
25  }
26 
29  {
30  ib.setCurrentFolder(subsystem+"/"+_folder+aux);
31  _me = ib.bookProfile(_name, _name,
33  _yaxis->_min, _yaxis->_max);
34  TObject *o = _me->getRootObject();
35  _xaxis->setLog(o);
36  _yaxis->setLog(o);
37  _xaxis->setBitAxisLS(o);
38  _yaxis->setBitAxisLS(o);
39  _xaxis->setBitAxisLS(o);
40  _yaxis->setBitAxisLS(o);
43  for (unsigned int i=0; i<_xaxis->_labels.size(); i++)
44  _me->setBinLabel(i+1, _xaxis->_labels[i], 1);
45  }
46 }
47 
48 
49 
int i
Definition: DBlmapReader.cc:9
int ib
Definition: cuy.py:660
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:157
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)
#define NULL
Definition: scimark2.h:8
std::string _title
Definition: Axis.h:108
std::vector< std::string > _labels
Definition: Axis.h:109
std::string _folder
Definition: Container.h:42
virtual void initialize(std::string const &folder, std::string const &nametitle, axis::Axis *xaxis, axis::Axis *yaxis=new ValueAxis(fYaxis, axis::fEntries), int debug=0)
virtual void initialize(std::string const &folder, std::string const &nametitle, axis::Axis *xaxis, axis::Axis *yaxis=new ValueAxis(fYaxis, axis::fEntries), int debug=0)
TObject * getRootObject(void) const
#define debug
Definition: HDRShower.cc:19
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:273
void setLog(TObject *o)
Definition: Axis.h:89
virtual void setBitAxisLS(TObject *o)
Definition: Axis.h:94
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
std::string _name
Definition: Container.h:43