5 void setWALmodel(
int plot=1) {
6 TString outF=
"WALModel_a.hist.root";
7 TFile *fd=
new TFile(outF,
"recreate");
10 TString titA[mxH]={
"AL",
"ALL"};
12 for (
int q=0;q<mxQ;q++) {
13 TString Q=
"P";
if (q) Q=
"N";
14 for (
int i=0;i<mxH; i++) {
15 TString tit=+titA[i]+
"_"+Q;
16 hA[q][i]=newEtaBinHisto(
"modW_"+tit,
"model W "+tit);
17 if(i==0) hA[q][i]->SetLineColor(kRed);
18 if(i==1) hA[q][i]->SetLineColor(kGreen);
26 for (
int iq=0;iq<mxQ;iq++)
30 ln=
new TLine(10,0,20,0);
32 gStyle->SetOptStat(0);
34 float yMx=0.9;
int k=1;
35 for (
int i=0;i<mxH; i++) {
36 for (
int q=0;q<mxQ;q++) {
39 h->Draw(); h->SetFillColor(16);
40 h->SetMinimum(-yMx); h->SetMaximum(yMx);
41 h->SetAxisRange(11,18);
46 ar=
new TArrow(10.6,yMx*0.9,18.3,yMx*0.9, 0.025); ar->Draw(); ar->SetLineColor(kBlue);
47 tx1=
new TLatex(10.8,yMx*.7,
"-1.3 "); tx1->Draw(); tx1->SetTextColor(kBlue);
48 tx1=
new TLatex(14.8,yMx*.7,
" polBeam #eta 1.3"); tx1->Draw(); tx1->SetTextColor(kBlue);
51 ar=
new TArrow(14.6,yMx*0.9,18.3,yMx*0.9, 0.025); ar->Draw(); ar->SetLineColor(kBlue);
52 tx1=
new TLatex(14.8,yMx*.7,
"0 polBeam #eta 1.3"); tx1->Draw(); tx1->SetTextColor(kBlue);
56 printf(
"WARN: histos NOT saved\n");
68 TH1F *newEtaBinHisto(TString name=
"aa", TString title=
"bb", TString yLable=
""){
70 TH1F *h=
new TH1F(name, title+
"; (STAR #eta <9< polBeam #eta) #eta-bins;"+yLable,nb,0.5,nb+0.5);
74 TH1F *newSpin4Histo(TString name=
"aa", TString title=
"bb"){
76 return new TH1F(name, title+
"; spin4 index ",nb,-0.5,nb-0.5);
80 void fillDataBin11_18(
int iq=0) {
81 double ALP[8]={-0.4,-0.2,0.1,0.3,0.4,0.6,0.5,0.4};
82 double ALLP[4]={0.5,-0.1,-0.3,-0.4};
84 double ALN[8]={0.4,0.6,0.8,0.4,0.2,0.4,0.6,0.3};
85 double ALLN[4]={-0.6,-0.5,-0.3,-0.7};
87 double *AL=ALP, *ALL=ALLP;
88 if(iq) { AL=ALN; ALL=ALLN;}
90 for(
int k=11; k<=18;k++) {
91 hA[iq][0]->SetBinContent(k,AL[k-11]);
94 printf(
"k=%d AL=%.1f j=%d ALL=%.1f\n",k,AL[k-11],j,ALL[j]);
95 hA[iq][1]->SetBinContent(k,ALL[j]);
101 void fillDataBin20() {
105 hA[0][0]->SetBinContent(bin,-0.27);
106 hA[0][1]->SetBinContent(bin,0.5);
108 hA[1][0]->SetBinContent(bin,0.14);
109 hA[1][1]->SetBinContent(bin,-0.3);