18 h[
i] =
new TH1D(
"a",
"",ncosthetabins,-1.,1.);
19 h[
i]->SetDirectory(0);
20 if( TMath::Abs(dial) < epsilon ) { h[
i]->SetLineWidth(3); }
21 if( TMath::Abs(dial-1.) < epsilon ) { h[
i]->SetLineWidth(3); h[
i]->SetLineStyle(kDashed); }
22 for(
int j=1; j<=h[
i]->GetNbinsX(); j++) {
23 double costheta = h[
i]->GetBinCenter(j);
24 double P2 = 0.5 * (3.*costheta*costheta - 1.);
25 double Wiso = 1 - p32iso * P2 + p12iso * P2;
26 double Wrs = 1 - p32rs * P2 + p12rs * P2;
28 double Wtwk = dial*Wrs + (1-dial)*Wiso;
30 if(Wdef>0. && Wtwk>0.) {
33 h[
i]->SetBinContent(j,wght);
40 h[
i]->GetXaxis()->SetTitle(
"cos#theta_{#pi}");
41 h[
i]->GetYaxis()->SetTitle(
"W(cos#theta_{#pi})");