CMS 3D CMS Logo

ContainerSingleProf1D.cc
Go to the documentation of this file.
2 
3 namespace hcaldqm
4 {
5  using namespace quantity;
6  using namespace constants;
8  {
9  _qx = nullptr;
10  _qy = nullptr;
11  }
12 
14  Quantity *qx, Quantity *qy):
15  ContainerSingle1D(folder, qx, qy)
16  {
19  }
20 
22  folder, Quantity *qx, Quantity *qy,
23  int debug/*=0*/)
24  {
25  ContainerSingle1D::initialize(folder, qx, qy, debug);
28  }
29 
31  folder, std::string const& qname,
32  Quantity *qx, Quantity *qy,
33  int debug/*=0*/)
34  {
35  ContainerSingle1D::initialize(folder, qname, qx, qy, debug);
38  }
39 
41  std::string subsystem, std::string aux)
42  {
43  ib.setCurrentFolder(subsystem+"/"+_folder+"/"+_qname);
44  _me = ib.bookProfile(_qname+(aux.empty()?aux:"_"+aux),
45  _qname+(aux.empty()?aux:" "+aux),
46  _qx->nbins(), _qx->min(), _qx->max(),
47  _qy->min(), _qy->max());
48  customize();
49  }
50 
51  /* virtual */ void ContainerSingleProf1D::book(DQMStore *store,
52  std::string subsystem, std::string aux)
53  {
54  store->setCurrentFolder(subsystem+"/"+_folder+"/"+_qname);
55  _me = store->bookProfile(_qname+(aux.empty()?aux:"_"+aux),
56  _qname+(aux.empty()?aux:" "+aux),
57  _qx->nbins(), _qx->min(), _qx->max(),
58  _qy->min(), _qy->max());
59  customize();
60  }
61 }
62 
63 
64 
virtual void setAxisType(AxisType at)
Definition: Quantity.h:49
quantity::Quantity * _qx
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:160
virtual double max()
Definition: Quantity.h:76
quantity::Quantity * _qy
void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0) override
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:1170
std::string _folder
Definition: Container.h:42
#define debug
Definition: HDRShower.cc:19
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="") override
virtual double min()
Definition: Quantity.h:75
std::string _qname
Definition: Container.h:43
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:545
ib
Definition: cuy.py:661