159 TSpline3
lo (
"lo",xlo,ylo,12,
"0");
160 TSpline3
hi (
"hi",xhi,yhi,18,
"0");
161 TSpline3
lo_no2(
"lo",xlo_no2p2h,ylo_no2p2h,17,
"0");
162 TSpline3
hi_no2(
"hi",xhi_no2p2h,yhi_no2p2h,20,
"0");
178 double yh = hi->Eval(x);
179 double yl = lo->Eval(x);
180 double yc = 0.5*(yh+yl);
181 double yh_no2 = hi_no2->Eval(x);
182 double yl_no2 = lo_no2->Eval(x);
183 double yc_no2 = 0.5*(yh_no2+yl_no2);
185 errp [
i] = 100*(yh-yc)/yc;
186 errn [
i] = 100*(yl-yc)/yc;
187 errp_no2[
i] = 100*(yh_no2-yc_no2)/yc_no2;
188 errn_no2[
i] = 100*(yl_no2-yc_no2)/yc_no2;
192 TGraph *
grerrp =
new TGraph(nsteps, enu, errp);
193 TGraph *
grerrn =
new TGraph(nsteps, enu, errn);
197 grerrp->SetLineStyle(kDashed);
198 grerrn->SetLineStyle(kDashed);
200 TCanvas *
c =
new TCanvas();
201 TH1F *
hframe = (TH1F*)c->DrawFrame(0.2,-50,0.7,50);
202 hframe->GetXaxis()->SetTitle(
"E_{#nu} (GeV)");
203 hframe->GetYaxis()->SetTitle(
"#sigma spread %");
208 grerrp_no2->Draw(
"L");
209 grerrn_no2->Draw(
"L");
211 TLegend *
legend =
new TLegend(0.6, 0.6, 0.9, 0.9);
212 legend->SetFillColor(0);
213 legend->SetBorderSize(0);
214 legend->AddEntry( grerrp,
"Model spread (from Fig.1 in Martini arXiv:1010.2329v1",
"L");
215 legend->AddEntry( grerrp_no2,
"Model spread (as above but excluding RPA-2p2h)",
"L");
TSpline3 lo("lo", xlo, ylo, 12,"0")
TSpline3 hi("hi", xhi, yhi, 18,"0")
TSpline3 lo_no2("lo", xlo_no2p2h, ylo_no2p2h, 17,"0")
TSpline3 hi_no2("hi", xhi_no2p2h, yhi_no2p2h, 20,"0")