Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:10:10

0001 #include "DQM/HcalCommon/interface/ContainerSingleProf1D.h"
0002 
0003 namespace hcaldqm {
0004   using namespace quantity;
0005   using namespace constants;
0006   ContainerSingleProf1D::ContainerSingleProf1D() {
0007     _qx = nullptr;
0008     _qy = nullptr;
0009   }
0010 
0011   ContainerSingleProf1D::ContainerSingleProf1D(std::string const &folder, Quantity *qx, Quantity *qy)
0012       : ContainerSingle1D(folder, qx, qy) {
0013     _qx->setAxisType(quantity::fXAxis);
0014     _qy->setAxisType(quantity::fYAxis);
0015   }
0016 
0017   /* virtual */ void ContainerSingleProf1D::initialize(std::string const &folder,
0018                                                        Quantity *qx,
0019                                                        Quantity *qy,
0020                                                        int debug /*=0*/) {
0021     ContainerSingle1D::initialize(folder, qx, qy, debug);
0022     _qx->setAxisType(quantity::fXAxis);
0023     _qy->setAxisType(quantity::fYAxis);
0024   }
0025 
0026   /* virtual */ void ContainerSingleProf1D::initialize(
0027       std::string const &folder, std::string const &qname, Quantity *qx, Quantity *qy, int debug /*=0*/) {
0028     ContainerSingle1D::initialize(folder, qname, qx, qy, debug);
0029     _qx->setAxisType(quantity::fXAxis);
0030     _qy->setAxisType(quantity::fYAxis);
0031   }
0032 
0033   /* virtual */ void ContainerSingleProf1D::book(DQMStore::IBooker &ib, std::string subsystem, std::string aux) {
0034     ib.setCurrentFolder(subsystem + "/" + _folder + "/" + _qname);
0035     _me = ib.bookProfile(_qname + (aux.empty() ? aux : "_" + aux),
0036                          _qname + (aux.empty() ? aux : " " + aux),
0037                          _qx->nbins(),
0038                          _qx->min(),
0039                          _qx->max(),
0040                          _qy->min(),
0041                          _qy->max());
0042     customize();
0043   }
0044 }  // namespace hcaldqm