13 m_histSvc(
"THistSvc",
name)
30 return StatusCode::FAILURE;
40 const std::string&
xtitle,
const std::string& ytitle) {
41 TH1D*
h =
new TH1D(
path.c_str(),
title.c_str(), binedges.size()-1, &binedges.front());
44 h->SetYTitle(ytitle.c_str());
46 if (st.isFailure())
return 0;
51 const std::string&
xtitle,
const std::string& ytitle) {
52 TH1D*
h =
new TH1D(
path.c_str(),
title.c_str(), numbins, low, high);
55 h->SetYTitle(ytitle.c_str());
57 if (st.isFailure())
return 0;
63 const std::string&
xtitle,
const std::string& ytitle) {
67 h->SetYTitle(ytitle.c_str());
69 if (st.isFailure())
return 0;
74 const std::string&
xtitle,
const std::string& ytitle) {
78 h->SetYTitle(ytitle.c_str());
80 if (st.isFailure())
return 0;
86 const std::vector<double>& binedgesx,
const std::vector<double>& binedgesy,
87 const std::string&
xtitle,
const std::string& ytitle,
const std::string& ztitle) {
88 TH2D*
h =
new TH2D(
path.c_str(),
title.c_str(), binedgesx.size()-1, &*binedgesx.begin(), binedgesy.size()-1, &binedgesy.front());
91 h->SetYTitle(ytitle.c_str());
92 h->SetZTitle(ztitle.c_str());
94 if (st.isFailure())
return 0;
99 size_t numbinsx,
double xlow,
double xhigh,
100 size_t numbinsy,
double ylow,
double yhigh,
101 const std::string&
xtitle,
const std::string& ytitle,
const std::string& ztitle) {
102 TH2D*
h =
new TH2D(
path.c_str(),
title.c_str(), numbinsx, xlow, xhigh, numbinsy, ylow, yhigh);
105 h->SetYTitle(ytitle.c_str());
106 h->SetZTitle(ztitle.c_str());
108 if (st.isFailure())
return 0;