6 #include "GaudiKernel/ITHistSvc.h"
19 WidthPlot::WidthPlot(std::string
name, std::string
folder, SmartIF<ITHistSvc> rootHistSvc ) :
20 m_name(std::move(
name)),
21 m_folder(std::move(
folder)),
22 m_rootHistSvc(std::move(rootHistSvc)) { }
30 new TH1D(Form(
"%s_%s",
m_name.c_str(),
p.first.c_str()),
31 Form(
"; %s ; resolution",
p.second->GetXaxis()->GetTitle()),
32 p.second->GetXaxis()->GetNbins(),
33 p.second->GetXaxis()->GetXmin(),
34 p.second->GetXaxis()->GetXmax());
37 for (
int bin = 1;
bin <=
p.second->GetXaxis()->GetNbins();
bin++) {
38 TH1D *
proj =
p.second->ProjectionY(Form(
"%s_%d_projection",
p.first.c_str(),
bin),
bin,
bin+1);
41 hist68->SetBinContent(
bin,
s68);
49 return StatusCode::SUCCESS;