9 double A = pow(n/fabs(alpha),n)*TMath::Exp(-pow(fabs(alpha),2)/2.);
10 double B = n/fabs(alpha) - fabs(alpha);
11 double k = (x[0]-
mu)/sigma;
15 val = norm*TMath::Exp(-0.5*pow(k,2));
17 val = norm*A*pow(B-k,-n);
19 if( TMath::IsNaN(val) ) val = 0.0;
33 double mu2 = mu1*1.0595;
34 double mu3 = mu1*1.0946;
36 double A = pow(n/fabs(alpha),n)*TMath::Exp(-pow(fabs(alpha),2)/2.);
37 double B = n/fabs(alpha) - fabs(alpha);
38 double k1 = (x[0]-mu1)/sigma;
39 double k2 = (x[0]-mu2)/sigma;
40 double k3 = (x[0]-mu3)/sigma;
42 double val,val1,val2,val3;
44 if( k1 > -alpha ) { val1 = norm1*TMath::Exp(-0.5*pow(k1,2)); }
45 else { val1 = norm1*A*pow(B-k1,-n); }
46 if( k2 > -alpha ) { val2 = norm2*TMath::Exp(-0.5*pow(k2,2)); }
47 else { val2 = norm2*A*pow(B-k2,-n); }
48 if( k3 > -alpha ) { val3 = norm3*TMath::Exp(-0.5*pow(k3,2)); }
49 else { val3 = norm3*A*pow(B-k3,-n); }
51 val = val1 + val2 + val3;
53 if( TMath::IsNaN(val) ) val = 0.0;
67 double mu2 = mu1*1.0595;
68 double mu3 = mu1*1.0946;
70 double A = pow(n/fabs(alpha),n)*TMath::Exp(-pow(fabs(alpha),2)/2.);
71 double B = n/fabs(alpha) - fabs(alpha);
72 double k1 = (x[0]-mu1)/sigma;
73 double k2 = (x[0]-mu2)/sigma;
74 double k3 = (x[0]-mu3)/sigma;
76 double val,val1,val2,val3;
78 if( k1 > -alpha ) { val1 = norm1*TMath::Exp(-0.5*pow(k1,2)); }
79 else { val1 = norm1*A*pow(B-k1,-n); }
80 if( k2 > -alpha ) { val2 = norm2*TMath::Exp(-0.5*pow(k2,2)); }
81 else { val2 = norm2*A*pow(B-k2,-n); }
82 if( k3 > -alpha ) { val3 = norm3*TMath::Exp(-0.5*pow(k3,2)); }
83 else { val3 = norm3*A*pow(B-k3,-n); }
85 double bgnorm1 = p[7];
86 double bgslope1 = p[8];
88 double bg = exp(bgnorm1+x[0]*bgslope1);
90 val = val1 + val2 + val3 + bg;
91 if( TMath::IsNaN(val) ) val = 0.0;
105 gStyle->SetOptStat(0);
106 gStyle->SetOptFit(0);
108 TRandom* myrandom =
new TRandom3();
116 statscale = 190./4./10.;
117 double statscale_lowlim = 7.0;
118 double statscale_uplim = 14.0;
120 TF1* fCBpp =
new TF1(
"fCBpp",
CBFunction,5.,14.,5);
121 TF1* fCBauau =
new TF1(
"fCBauau",
CBFunction,5.,14.,5);
122 TF1* fCB1s =
new TF1(
"fCB1s",
CBFunction,5.,14.,5);
123 TF1* fCB2s =
new TF1(
"fCB2s",
CBFunction,5.,14.,5);
124 TF1* fCB3s =
new TF1(
"fCB3s",
CBFunction,5.,14.,5);
150 double str_npart[101];
151 double str_raa[5][3][101];
152 for(
int istate=0;istate<5;istate++)
154 for(
int ietas=0;ietas<3;ietas++)
159 sprintf(fname,
"./strickland_calculations/Y%is-potb-eta%i-npart.dat",istate+1,ietas+1);
162 for(
int inpart=0;inpart<101;inpart++)
164 fin >> str_npart[inpart] >> str_raa[istate][ietas][inpart];
172 sprintf(fname,
"./strickland_calculations/chib%i-potb-eta%i-npart.dat",istate-2,ietas+1);
175 for(
int inpart=0;inpart<101;inpart++)
177 fin >> str_npart[inpart] >> str_raa[istate][ietas][inpart];
188 double ff1S[5] = {0.51, 0.107, 0.008, 0.27, 0.105};
190 double ff2S[2] = {0.5, 0.5};
191 double str_raa_inclusive[3][3][101];
195 for(
int ietas=0;ietas<3;ietas++)
196 for(
int inpart=0;inpart<101;inpart++)
198 str_raa_inclusive[0][ietas][inpart] =
199 str_raa[0][ietas][inpart] * ff1S[0]
200 + str_raa[1][ietas][inpart] * ff1S[1]
201 + str_raa[2][ietas][inpart] * ff1S[2]
202 + str_raa[3][ietas][inpart] * ff1S[3]
203 + str_raa[4][ietas][inpart] * ff1S[4];
205 str_raa_inclusive[1][ietas][inpart] =
206 str_raa[1][ietas][inpart] * ff2S[0]
207 + str_raa[2][ietas][inpart] * ff2S[1];
209 str_raa_inclusive[2][ietas][inpart] = str_raa[2][ietas][inpart];
212 double strick_raa1_eta1[101],strick_raa1_eta2[101],strick_raa1_eta3[101];
213 double strick_raa2_eta1[101],strick_raa2_eta2[101],strick_raa2_eta3[101];
214 double strick_raa3_eta1[101],strick_raa3_eta2[101],strick_raa3_eta3[101];
215 for(
int ipart=0;ipart<101;ipart++) {
216 strick_raa1_eta1[ipart] = str_raa_inclusive[0][0][ipart];
217 strick_raa1_eta2[ipart] = str_raa_inclusive[0][1][ipart];
218 strick_raa1_eta3[ipart] = str_raa_inclusive[0][2][ipart];
219 strick_raa2_eta1[ipart] = str_raa_inclusive[1][0][ipart];
220 strick_raa2_eta2[ipart] = str_raa_inclusive[1][1][ipart];
221 strick_raa2_eta3[ipart] = str_raa_inclusive[1][2][ipart];
222 strick_raa3_eta1[ipart] = str_raa_inclusive[2][0][ipart];
223 strick_raa3_eta2[ipart] = str_raa_inclusive[2][1][ipart];
224 strick_raa3_eta3[ipart] = str_raa_inclusive[2][2][ipart];
231 TGraph* grRAA1S =
new TGraph(101,str_npart,strick_raa1_eta2);
232 TGraph* grRAA2S =
new TGraph(101,str_npart,strick_raa2_eta2);
233 TGraph* grRAA3S =
new TGraph(101,str_npart,strick_raa3_eta2);
234 TGraph* grRAA1S_eta1 =
new TGraph(101,str_npart,strick_raa1_eta1);
235 TGraph* grRAA2S_eta1 =
new TGraph(101,str_npart,strick_raa2_eta1);
236 TGraph* grRAA3S_eta1 =
new TGraph(101,str_npart,strick_raa3_eta1);
237 TGraph* grRAA1S_eta3 =
new TGraph(101,str_npart,strick_raa1_eta3);
238 TGraph* grRAA2S_eta3 =
new TGraph(101,str_npart,strick_raa2_eta3);
239 TGraph* grRAA3S_eta3 =
new TGraph(101,str_npart,strick_raa3_eta3);
240 grRAA1S->SetLineColor(kBlack);
241 grRAA1S->SetLineStyle(7);
242 grRAA2S->SetLineColor(kRed);
243 grRAA2S->SetLineStyle(7);
244 grRAA3S->SetLineColor(kBlue);
245 grRAA3S->SetLineStyle(7);
246 grRAA1S_eta1->SetLineColor(kBlack);
247 grRAA1S_eta1->SetLineStyle(1);
248 grRAA2S_eta1->SetLineColor(kRed);
249 grRAA2S_eta1->SetLineStyle(1);
250 grRAA3S_eta1->SetLineColor(kBlue);
251 grRAA3S_eta1->SetLineStyle(1);
252 grRAA1S_eta3->SetLineColor(kBlack);
253 grRAA1S_eta3->SetLineStyle(8);
254 grRAA2S_eta3->SetLineColor(kRed);
255 grRAA2S_eta3->SetLineStyle(8);
256 grRAA3S_eta3->SetLineColor(kBlue);
257 grRAA3S_eta3->SetLineStyle(8);
263 string str_UpsilonPt =
"(2.0*3.14159*x*[0]*pow((1 + x*x/(4*[1]) ),-[2]))";
264 string str_UpsilonXPt =
"(2.0*3.14159*x*x*[0]*pow((1 + x*x/(4*[1]) ),-[2]))";
265 TF1* fUpsilonPt =
new TF1(
"fUpsilonPt",str_UpsilonPt.c_str(),0.,20.);
266 TF1* fUpsilonXPt =
new TF1(
"fUpsilonXPt",str_UpsilonXPt.c_str(),0.,20.);
267 fUpsilonPt->SetParameters(72.1, 26.516, 10.6834);
268 fUpsilonXPt->SetParameters(72.1, 26.516, 10.6834);
269 double upsnorm = fUpsilonPt->Integral(0.,20.);
280 double Npart[nbins+1], NpartAvg=0.;
285 for(
int i=0;
i<4;
i++) {NpartAvg += Npart[
i];} NpartAvg = NpartAvg/4.;
286 cout <<
"Raa for dAu = " << grRAA1S->Eval(NpartAvg) <<
" " << grRAA2S->Eval(NpartAvg) <<
" " << grRAA3S->Eval(NpartAvg) << endl;
288 double NcollAuAu = 955.;
290 double Ncoll[nbins+1];
295 double NcollAvg=0.;
for(
int i=0;
i<4;
i++) {NcollAvg += Ncoll[
i];} NcollAvg = NcollAvg/4.;
297 double Npionpairs[nbins+1];
298 Npionpairs[0] = 2.23e-03;
299 Npionpairs[1] = 1.23e-03;
300 Npionpairs[2] = 5.31e-04;
301 Npionpairs[3] = 1.85e-04;
302 double NpionpairsAvg=0.;
for(
int i=0;
i<4;
i++) {NpionpairsAvg += Npionpairs[
i];} NpionpairsAvg = NpionpairsAvg/4.;
308 float Nups1tot=0, Nups2tot=0, Nups3tot=0;
314 for(
int i=0;
i<4;
i++) {Nups1tot += Nups1[
i];}
320 for(
int i=0;
i<4;
i++) {Nups2tot += Nups2[
i];}
326 Nups3[0] = Nups2[0]*0.5575;
327 Nups3[1] = Nups2[1]*0.5575;
328 Nups3[2] = Nups2[2]*0.5575;
329 Nups3[3] = Nups2[3]*0.5575;
330 for(
int i=0;
i<4;
i++) {Nups3tot += Nups3[
i];}
331 cout <<
"Number of Upsilons in dAu = " << Nups1tot <<
" " << Nups2tot <<
" " << Nups3tot << endl;
334 int Nups1pp = 2.86e+03;
335 int Nups2pp = 7.16e+02;
336 int Nups3pp = 3.98e+02;
347 double tonypar1 = 0.98;
348 double tonypar2 = 0.93;
350 double tonypar3 = 9.448;
351 double tonypar4 = 0.100;
352 double tonypar4pp = 0.089;
353 fCBpp->SetParameter(0,1000.);
354 fCBpp->SetParameter(1,tonypar1);
355 fCBpp->SetParameter(2,tonypar2);
356 fCBpp->SetParameter(3,tonypar3);
357 fCBpp->SetParameter(4,tonypar4pp);
358 fCBauau->SetParameter(0,1000.);
359 fCBauau->SetParameter(1,tonypar1);
360 fCBauau->SetParameter(2,tonypar2);
361 fCBauau->SetParameter(3,tonypar3);
362 fCBauau->SetParameter(4,tonypar4);
365 TH1D* hhups[nbins+1];
366 TH1D* hhups1[nbins+1];
367 TH1D* hhups2[nbins+1];
368 TH1D* hhups3[nbins+1];
373 for(
int i=0;
i<nbins+1;
i++) {
374 sprintf(hhname,
"hhups_%d",
i);
375 hhups[
i] =
new TH1D(hhname,
"",nchan,start,stop);
377 sprintf(hhname,
"hhups1_%d",
i);
378 hhups1[
i] =
new TH1D(hhname,
"",nchan,start,stop);
380 sprintf(hhname,
"hhups2_%d",
i);
381 hhups2[
i] =
new TH1D(hhname,
"",nchan,start,stop);
383 sprintf(hhname,
"hhups3_%d",
i);
384 hhups3[
i] =
new TH1D(hhname,
"",nchan,start,stop);
386 hhups[
i]->SetLineWidth(2);
387 hhups1[
i]->SetLineWidth(2);
388 hhups2[
i]->SetLineWidth(2);
389 hhups3[
i]->SetLineWidth(2);
391 sprintf(hhname,
"hhupspp");
392 hhupspp=
new TH1D(hhname,
"",nchan,start,stop);
394 sprintf(hhname,
"hhups1pp");
395 hhups1pp =
new TH1D(hhname,
"",nchan,start,stop);
397 sprintf(hhname,
"hhups2pp");
398 hhups2pp =
new TH1D(hhname,
"",nchan,start,stop);
400 sprintf(hhname,
"hhups3pp");
401 hhups3pp =
new TH1D(hhname,
"",nchan,start,stop);
403 hhupspp->SetLineWidth(2);
404 hhups1pp->SetLineWidth(2);
405 hhups2pp->SetLineWidth(2);
406 hhups3pp->SetLineWidth(2);
410 double s2 = s1 + 1.0;
411 fCBauau->SetParameter(3,tonypar3);
412 for(
int i=0;
i<int(Nups1[
j]+0.5);
i++) {
double myrnd = fCBauau->GetRandom(); hhups1[
j]->Fill(myrnd); hhups[
j]->Fill(myrnd); }
413 fCBauau->SetParameter(3,tonypar3*scale[1]);
414 for(
int i=0;
i<int(Nups2[
j]+0.5);
i++) {
double myrnd = fCBauau->GetRandom(); hhups2[
j]->Fill(myrnd); hhups[
j]->Fill(myrnd); }
415 fCBauau->SetParameter(3,tonypar3*scale[2]);
416 for(
int i=0;
i<int(Nups3[
j]+0.5);
i++) {
double myrnd = fCBauau->GetRandom(); hhups3[
j]->Fill(myrnd); hhups[
j]->Fill(myrnd); }
419 fCBpp->SetParameter(3,tonypar3);
420 for(
int i=0;
i<int(Nups1pp+0.5);
i++) {
double myrnd = fCBpp->GetRandom(); hhups1pp->Fill(myrnd); hhupspp->Fill(myrnd); }
421 fCBpp->SetParameter(3,tonypar3*scale[1]);
422 for(
int i=0;
i<int(Nups2pp+0.5);
i++) {
double myrnd = fCBpp->GetRandom(); hhups2pp->Fill(myrnd); hhupspp->Fill(myrnd); }
423 fCBpp->SetParameter(3,tonypar3*scale[2]);
424 for(
int i=0;
i<int(Nups3pp+0.5);
i++) {
double myrnd = fCBpp->GetRandom(); hhups3pp->Fill(myrnd); hhupspp->Fill(myrnd); }
429 TCanvas* cupspp =
new TCanvas(
"cupspp",
"Upsilons in p+p",100,100,600,600);
430 fTCBpp->SetParameter(0,2000.);
431 fTCBpp->FixParameter(1,tonypar1);
432 fTCBpp->FixParameter(2,tonypar2);
433 fTCBpp->SetParameter(3,tonypar3);
434 fTCBpp->FixParameter(4,tonypar4);
435 fTCBpp->SetParameter(5,500.);
436 fTCBpp->SetParameter(6,100.);
437 hhupspp->Fit(fTCBpp,
"rl",
"",7.,11.);
438 hhupspp->SetAxisRange(7.,11.);
439 hhupspp->SetMarkerSize(1.0);
440 hhupspp->GetXaxis()->SetTitle(
"Invariant mass [GeV/c^{2}]");
441 hhupspp->GetXaxis()->SetTitleOffset(1.0);
442 double tmpamp1 = hhupspp->GetFunction(
"fTCBpp")->GetParameter(0);
443 double tmpamp5 = tmpamp1*frac[1]/frac[0];
444 double tmpamp6 = tmpamp1*frac[2]/frac[0];
447 fCB1s->SetLineColor(kBlue);
448 fCB1s->SetLineWidth(1);
449 fCB1s->SetParameter(0,fTCBpp->GetParameter(0));
450 fCB1s->SetParameter(1,fTCBpp->GetParameter(1));
451 fCB1s->SetParameter(2,fTCBpp->GetParameter(2));
452 fCB1s->SetParameter(3,fTCBpp->GetParameter(3)*scale[0]);
453 fCB1s->SetParameter(4,fTCBpp->GetParameter(4));
454 fCB2s->SetLineColor(kRed);
455 fCB2s->SetLineWidth(1);
456 fCB2s->SetParameter(0,tmpamp5);
457 fCB2s->SetParameter(1,fTCBpp->GetParameter(1));
458 fCB2s->SetParameter(2,fTCBpp->GetParameter(2));
459 fCB2s->SetParameter(3,fTCBpp->GetParameter(3)*scale[1]);
460 fCB2s->SetParameter(4,fTCBpp->GetParameter(4));
461 fCB3s->SetLineColor(kGreen+2);
462 fCB3s->SetLineWidth(1);
463 fCB3s->SetParameter(0,tmpamp6);
464 fCB3s->SetParameter(1,fTCBpp->GetParameter(1));
465 fCB3s->SetParameter(2,fTCBpp->GetParameter(2));
466 fCB3s->SetParameter(3,fTCBpp->GetParameter(3)*scale[2]);
467 fCB3s->SetParameter(4,fTCBpp->GetParameter(4));
474 TCanvas* cupsauau =
new TCanvas(
"cupsauau",
"Upsilons in Central Au+Au",100,100,600,600);
475 fTCBauau->SetParameter(0,2000.);
476 fTCBauau->FixParameter(1,tonypar1);
477 fTCBauau->FixParameter(2,tonypar2);
478 fTCBauau->SetParameter(3,tonypar3);
479 fTCBauau->FixParameter(4,tonypar4);
480 fTCBauau->SetParameter(5,500.);
481 fTCBauau->SetParameter(6,100.);
482 hhups[0]->Fit(fTCBauau,
"rl",
"",7.,11.);
483 hhups[0]->SetAxisRange(8.5,11.);
484 hhups[0]->SetMarkerSize(1.0);
485 hhups[0]->GetXaxis()->SetTitle(
"Invariant mass [GeV/c^{2}]");
486 hhups[0]->GetXaxis()->SetTitleOffset(1.0);
492 TCanvas* cdummy1 =
new TCanvas(
"cdummy1",
"cdummy1",0,0,500,500);
497 TH1D* hhall[nbins+1];
498 TH1D* hhall_scaled[nbins+1];
500 TH1D* hhtotbg[nbins+1];
501 TH1D* hhtotbg_scaled[nbins+1];
502 TH1D* hhcombbg[nbins+1];
503 TH1D* hhcombbg_scaled[nbins+1];
504 TH1D* hhfakefake[nbins+1];
505 TH1D* hhfakehf[nbins+1];
506 TH1D* hhbottom[nbins+1];
507 TH1D* hhcharm[nbins+1];
509 TH1D* hhcorrbg[nbins+1];
510 TH1D* hhcorrbg_scaled[nbins+1];
511 TH1D* hhfit[nbins+1];
518 double corrbgfitpar0;
519 double corrbgfitpar1;
521 TFile*
f=
new TFile(
"ccbb_eideff09.root");
523 sprintf(tmpname,
"hhbottom_15");
524 hhbottom[
nbins] = (TH1D*)f->Get(tmpname);
525 hhbottom[
nbins]->SetDirectory(gROOT);
526 sprintf(tmpname,
"hhcharm_15");
527 hhcharm[
nbins] = (TH1D*)f->Get(tmpname);
528 hhcharm[
nbins]->SetDirectory(gROOT);
529 sprintf(tmpname,
"hhdy_15");
530 hhdy[
nbins] = (TH1D*)f->Get(tmpname);
531 hhdy[
nbins]->SetDirectory(gROOT);
532 sprintf(tmpname,
"hhcorrbg_15");
533 hhcorrbg[
nbins] = (TH1D*)hhbottom[nbins]->Clone(tmpname);
534 hhcorrbg[
nbins]->Add(hhcharm[nbins]);
535 hhcorrbg[
nbins]->Add(hhdy[nbins]);
536 sprintf(tmpname,
"hhcorrbg_scaled_15");
537 hhcorrbg_scaled[
nbins] = (TH1D*)hhcorrbg[nbins]->Clone(tmpname);
538 hhcorrbg[
nbins]->Fit(
"expo",
"rql",
"",statscale_lowlim,statscale_uplim);
539 hhbottom[
nbins]->Fit(
"expo",
"rql",
"",statscale_lowlim,statscale_uplim);
540 hhdy[
nbins]->Fit(
"expo",
"rql",
"",statscale_lowlim,statscale_uplim);
541 corrbgfitpar0 = hhcorrbg[
nbins]->GetFunction(
"expo")->GetParameter(0);
542 corrbgfitpar1 = hhcorrbg[
nbins]->GetFunction(
"expo")->GetParameter(1);
543 cout <<
"bgpar0["<< nbins <<
"]="<<hhcorrbg[
nbins]->GetFunction(
"expo")->GetParameter(0)+
TMath::Log(statscale)<<
";"<< endl;
544 cout <<
"bgpar1["<< nbins <<
"]="<<hhcorrbg[
nbins]->GetFunction(
"expo")->GetParameter(1)<<
";"<< endl;
545 for(
int k=1;
k<=hhcorrbg[
nbins]->GetNbinsX();
k++) {
546 if(hhcorrbg[nbins]->GetBinLowEdge(
k)<statscale_lowlim || (hhcorrbg[
nbins]->GetBinLowEdge(
k)+hhcorrbg[
nbins]->GetBinWidth(
k))>statscale_uplim) {
547 hhcorrbg_scaled[
nbins]->SetBinContent(
k,0.);
548 hhcorrbg_scaled[
nbins]->SetBinError(
k,0.);
551 double tmp = statscale * hhcorrbg[
nbins]->GetFunction(
"expo")->Eval(hhcorrbg[nbins]->GetBinCenter(
k));
552 double tmprnd = myrandom->Poisson(tmp);
553 if(tmprnd<0.) { tmprnd=0.; }
554 hhcorrbg_scaled[
nbins]->SetBinContent(
k,tmprnd);
555 hhcorrbg_scaled[
nbins]->SetBinError(
k,sqrt(tmprnd));
558 hhcorrbg_scaled[
nbins]->Fit(
"expo",
"rql",
"",statscale_lowlim,statscale_uplim);
559 hhcorrbg[
nbins]->SetDirectory(gROOT);
560 hhcorrbg_scaled[
nbins]->SetDirectory(gROOT);
567 sprintf(tmpname,
"hhcorrbg_%d",
i);
568 hhcorrbg_scaled[
i] = (TH1D*)hhcorrbg_scaled[nbins]->Clone(tmpname);
570 for(
int k=1;
k<=hhcorrbg_scaled[
nbins]->GetNbinsX();
k++) {
571 if(hhcorrbg_scaled[nbins]->GetBinLowEdge(
k)<statscale_lowlim || (hhcorrbg_scaled[
nbins]->GetBinLowEdge(
k)+hhcorrbg_scaled[
nbins]->GetBinWidth(
k))>statscale_uplim) {
572 hhcorrbg_scaled[
i]->SetBinContent(
k,0.);
573 hhcorrbg_scaled[
i]->SetBinError(
k,0.);
576 double tmp = (Ncoll[
i]/NcollAuAu) * hhcorrbg_scaled[nbins]->GetFunction(
"expo")->Eval(hhcorrbg_scaled[nbins]->GetBinCenter(
k));
577 double tmprnd = myrandom->Poisson(tmp);
578 if(tmprnd<0.) { tmprnd=0.; }
579 hhcorrbg_scaled[
i]->SetBinContent(
k,tmprnd);
580 hhcorrbg_scaled[
i]->SetBinError(
k,sqrt(tmprnd));
583 hhcorrbg_scaled[
i]->Fit(
"expo",
"rql",
"",statscale_lowlim,statscale_uplim);
590 TCanvas* c111 =
new TCanvas(
"c111",
"Au+Au Correlated Background vs. Centrality",200,200,1200,600);
594 hhcorrbg_scaled[
i]->SetAxisRange(8.5,11.0); hhcorrbg_scaled[
i]->SetMarkerStyle(1); hhcorrbg_scaled[
i]->Draw(
"pe");
595 sprintf(tlchar,
"%d-%d",10*
i,10*(
i+1)); tl[
i] =
new TLatex(9.0,hhcorrbg_scaled[
i]->GetMaximum()*0.9,tlchar); tl[
i]->Draw();
608 double ppcorr = (2400./14.)/962.;
609 TF1* fbottom_nosup_corr =
new TF1(
"fbottom_nosup_corr",
"[0]+[1]*x",5.,14.);
610 fbottom_nosup_corr->SetParameters(-2.13861, 0.683323);
612 sprintf(tmpname,
"hhbottom_pp");
613 hhbottom_pp = (TH1D*)hhbottom[nbins]->Clone(tmpname);
614 for(
int k=1;
k<=hhbottom_pp->GetNbinsX();
k++) {
615 if(hhbottom_pp->GetBinLowEdge(
k)<statscale_lowlim || (hhbottom_pp->GetBinLowEdge(
k)+hhbottom_pp->GetBinWidth(
k))>statscale_uplim) {
616 hhbottom_pp->SetBinContent(
k,0.);
617 hhbottom_pp->SetBinError(
k,0.);
620 double tmp = ppcorr * fbottom_nosup_corr->Eval(hhbottom[nbins]->GetBinCenter(
k)) * hhbottom[
nbins]->GetFunction(
"expo")->Eval(hhbottom[nbins]->GetBinCenter(
k));
621 double tmprnd = myrandom->Poisson(tmp);
622 if(tmprnd<0.) { tmprnd=0.; }
623 hhbottom_pp->SetBinContent(
k,tmprnd);
624 hhbottom_pp->SetBinError(
k,sqrt(tmprnd));
628 sprintf(tmpname,
"hhdy_pp");
629 hhdy_pp = (TH1D*)hhdy[nbins]->Clone(tmpname);
630 for(
int k=1;
k<=hhdy_pp->GetNbinsX();
k++) {
631 if(hhdy_pp->GetBinLowEdge(
k)<statscale_lowlim || (hhdy_pp->GetBinLowEdge(
k)+hhdy_pp->GetBinWidth(
k))>statscale_uplim) {
632 hhdy_pp->SetBinContent(
k,0.);
633 hhdy_pp->SetBinError(
k,0.);
636 double tmp = ppcorr * hhdy[
nbins]->GetFunction(
"expo")->Eval(hhdy[nbins]->GetBinCenter(
k));
637 double tmprnd = myrandom->Poisson(tmp);
638 if(tmprnd<0.) { tmprnd=0.; }
639 hhdy_pp->SetBinContent(
k,tmprnd);
640 hhdy_pp->SetBinError(
k,sqrt(tmprnd));
644 sprintf(tmpname,
"hhcorrbg_pp");
645 hhcorrbg_pp = (TH1D*)hhbottom_pp->Clone(tmpname);
646 hhcorrbg_pp->Add(hhdy_pp);
647 hhcorrbg_pp->SetMarkerColor(kBlack);
648 hhcorrbg_pp->SetLineColor(kBlack);
649 hhbottom_pp->SetLineColor(kBlue);
650 hhdy_pp->SetLineColor(kGreen+2);
651 sprintf(tmpname,
"hhall_pp");
652 hhall_pp = (TH1D*)hhcorrbg_pp->Clone(tmpname);
653 hhall_pp->Add(hhupspp);
654 hhall_pp->SetLineColor(kMagenta);
655 hhall_pp->SetMarkerColor(kMagenta);
658 TCanvas* cbginpp =
new TCanvas(
"cbginpp",
"corr bg in pp",10,10,700,700);
660 hhcorrbg_pp->Fit(
"expo",
"rql",
"",statscale_lowlim,statscale_uplim);
661 hhcorrbg_pp->GetFunction(
"expo")->SetLineColor(kBlack);
662 hhbottom_pp->Fit(
"expo",
"rql",
"",statscale_lowlim,statscale_uplim);
663 hhbottom_pp->GetFunction(
"expo")->SetLineColor(kBlue);
664 hhdy_pp->Fit(
"expo",
"rql",
"",statscale_lowlim,statscale_uplim);
665 hhdy_pp->GetFunction(
"expo")->SetLineColor(kGreen+2);
667 hhall_pp->SetAxisRange(7.,12.);
668 hhcorrbg_pp->Draw(
"pehist");
669 hhbottom_pp->Draw(
"histsame");
670 hhdy_pp->Draw(
"histsame");
673 TCanvas* cpp =
new TCanvas(
"cpp",
"corr bg + sig in pp",100,100,700,700);
674 hhall_pp->SetAxisRange(7.,12.);
675 hhall_pp->Draw(
"pehist");
676 hhcorrbg_pp->Draw(
"pesame");
677 hhbottom_pp->Draw(
"same");
678 hhdy_pp->Draw(
"same");
684 TCanvas* cdummy =
new TCanvas(
"cdummy",
"cdummy",0,0,500,500);
686 f =
new TFile(
"fakee_eideff09.root");
687 sprintf(tmpname,
"hhfakefake_15");
688 hhfakefake[
nbins] = (TH1D*)f->Get(tmpname);
689 hhfakefake[
nbins]->SetDirectory(gROOT);
692 f =
new TFile(
"crossterms_eideff09.root");
693 sprintf(tmpname,
"hhfakehf_15");
694 hhfakehf[
nbins] = (TH1D*)f->Get(tmpname);
695 hhfakehf[
nbins]->SetDirectory(gROOT);
698 TF1* fbg =
new TF1(
"fbg",
"exp([0]+[1]*x)+exp([2]+[3]*x)",8.,11.);
699 fbg->SetParameters(10., -1.0, 4., -0.1);
700 fbg->SetParLimits(1.,-999.,0.);
701 fbg->SetParLimits(3.,-999.,0.);
703 sprintf(tmpname,
"hhcombbg_15");
704 hhcombbg[
nbins] = (TH1D*)hhfakefake[nbins]->Clone(tmpname);
705 hhcombbg[
nbins]->Add(hhfakehf[nbins]);
706 sprintf(tmpname,
"hhcombbg_scaled_15");
707 hhcombbg_scaled[
nbins] = (TH1D*)hhcombbg[nbins]->Clone(tmpname);
708 fbg->SetParameters(10., -1.0, 4., -0.1);
709 hhcombbg[
nbins]->Fit(fbg,
"qrl",
"",statscale_lowlim,statscale_uplim);
711 for(
int k=1;
k<=hhcombbg[
nbins]->GetNbinsX();
k++) {
712 if(hhcombbg[nbins]->GetBinLowEdge(
k)<statscale_lowlim || (hhcombbg[
nbins]->GetBinLowEdge(
k)+hhcombbg[
nbins]->GetBinWidth(
k))>statscale_uplim) {
713 hhcombbg_scaled[
nbins]->SetBinContent(
k,0.);
714 hhcombbg_scaled[
nbins]->SetBinError(
k,0.);
717 double tmp = statscale * hhcombbg[
nbins]->GetFunction(
"fbg")->Eval(hhcombbg[nbins]->GetBinCenter(
k));
718 double tmprnd = myrandom->Poisson(tmp);
719 if(tmprnd<0.) { tmprnd=0.; }
720 hhcombbg_scaled[
nbins]->SetBinContent(
k,tmprnd);
721 hhcombbg_scaled[
nbins]->SetBinError(
k,sqrt(tmprnd));
724 hhcombbg_scaled[
nbins]->Fit(fbg,
"qrl",
"",statscale_lowlim,statscale_uplim);
728 TCanvas* C1 =
new TCanvas(
"C1",
"Combinatorial BG Central Au+Au",100,100,600,600);
730 hhfakefake[
nbins]->SetAxisRange(7.0,14.0);
731 hhfakefake[
nbins]->SetMinimum(0.1);
732 hhfakefake[
nbins]->SetMaximum(5000.);
733 hhfakefake[
nbins]->SetLineColor(kGreen+2);
734 hhfakefake[
nbins]->SetLineWidth(2);
735 hhfakefake[
nbins]->GetXaxis()->SetTitle(
"Transverse momentum [GeV/c]");
736 hhfakefake[
nbins]->GetXaxis()->SetTitleOffset(1.0);
737 hhfakefake[
nbins]->GetXaxis()->SetTitleColor(1);
738 hhfakefake[
nbins]->GetXaxis()->SetTitleSize(0.040);
739 hhfakefake[
nbins]->GetXaxis()->SetLabelSize(0.040);
740 hhfakefake[
nbins]->GetYaxis()->SetTitle(
"Combinatorial background");
741 hhfakefake[
nbins]->GetYaxis()->SetTitleOffset(1.3);
742 hhfakefake[
nbins]->GetYaxis()->SetTitleSize(0.040);
743 hhfakefake[
nbins]->GetYaxis()->SetLabelSize(0.040);
744 hhfakefake[
nbins]->Draw(
"e");
746 hhfakehf[
nbins]->SetLineColor(kOrange+4);
747 hhfakehf[
nbins]->SetLineWidth(2);
748 hhfakehf[
nbins]->Draw(
"esame");
750 hhcombbg[
nbins]->SetLineColor(kBlack);
751 hhcombbg[
nbins]->SetLineWidth(2);
752 hhcombbg[
nbins]->Draw(
"esame");
754 TCanvas* C1sc =
new TCanvas(
"C1sc",
"SCALED Combinatorial BG Central Au+Au",100,100,600,600);
756 hhcombbg_scaled[
nbins]->SetAxisRange(7.,14.);
757 hhcombbg_scaled[
nbins]->Draw(
"esame");
763 sprintf(tmpname,
"hhcombbg_%d",
i);
764 hhcombbg_scaled[
i] = (TH1D*)hhcombbg_scaled[nbins]->Clone(tmpname);
766 for(
int k=1;
k<=hhcombbg_scaled[
nbins]->GetNbinsX();
k++) {
767 if(hhcombbg_scaled[nbins]->GetBinLowEdge(
k)<statscale_lowlim || (hhcombbg_scaled[
nbins]->GetBinLowEdge(
k)+hhcombbg_scaled[
nbins]->GetBinWidth(
k))>statscale_uplim) {
768 hhcombbg_scaled[
i]->SetBinContent(
k,0.);
769 hhcombbg_scaled[
i]->SetBinError(
k,0.);
772 double tmp = Npionpairs[
i] * hhcombbg_scaled[
nbins]->GetFunction(
"fbg")->Eval(hhcombbg_scaled[nbins]->GetBinCenter(
k));
773 double tmprnd = myrandom->Poisson(tmp);
774 if(tmprnd<0.) { tmprnd=0.; }
775 hhcombbg_scaled[
i]->SetBinContent(
k,tmprnd);
776 hhcombbg_scaled[
i]->SetBinError(
k,sqrt(tmprnd));
779 hhcombbg_scaled[
i]->Fit(fbg,
"qrl",
"",statscale_lowlim,statscale_uplim);
783 TCanvas* c_comb_scaled =
new TCanvas(
"c_comb_scaled",
"Combinatorial Background vs. Centrality",200,100,1200,600);
784 c_comb_scaled->Divide(4,2);
786 c_comb_scaled->cd(
i+1);
787 hhcombbg_scaled[
i]->SetAxisRange(8.5,11.0); hhcombbg_scaled[
i]->SetMarkerStyle(1); hhcombbg_scaled[
i]->Draw(
"pe");
788 sprintf(tlchar,
"%d-%d",10*
i,10*(
i+1)); tl[
i] =
new TLatex(9.0,hhcombbg_scaled[
i]->GetMaximum()*0.9,tlchar); tl[
i]->Draw();
797 sprintf(tmpname,
"hhtotbg_scaled_%d",
i);
798 hhtotbg_scaled[
i] = (TH1D*)hhcombbg_scaled[
i]->Clone(tmpname);
799 hhtotbg_scaled[
i]->Add(hhcorrbg_scaled[
i]);
803 sprintf(tmpname,
"hhall_scaled_%d",
i);
804 hhall_scaled[
i] = (TH1D*)hhtotbg_scaled[
i]->Clone(tmpname);
805 hhall_scaled[
i]->Add(hhups[
i]);
808 TCanvas* c000 =
new TCanvas(
"c000",
"Au+Au Signal + All Background vs. Centrality",200,200,1200,600);
812 hhall_scaled[
i]->SetAxisRange(8.5,11.0); hhall_scaled[
i]->SetMarkerStyle(1); hhall_scaled[
i]->Draw(
"pehist");
813 sprintf(tlchar,
"%d-%d",10*
i,10*(
i+1)); tl[
i] =
new TLatex(9.0,hhall_scaled[
i]->GetMaximum()*0.9,tlchar); tl[
i]->Draw();
905 TCanvas* callpt =
new TCanvas(
"callpt",
"Signal + All BG Central Au+Au",300,300,600,600);
907 hhall_scaled[0]->GetXaxis()->SetTitle(
"Invariant mass GeV/c");
908 hhall_scaled[0]->SetLineColor(kBlack);
909 hhall_scaled[0]->SetMarkerColor(kBlack);
910 hhall_scaled[0]->SetMarkerStyle(20);
911 hhall_scaled[0]->SetAxisRange(8.0,10.8);
912 hhall_scaled[0]->Draw(
"pehist");
913 hhcombbg_scaled[0]->SetLineColor(kBlue);
914 hhcombbg_scaled[0]->Draw(
"histsame");
915 hhcorrbg_scaled[0]->SetLineColor(kRed);
916 hhcorrbg_scaled[0]->Draw(
"histsame");
924 double u1start = 9.25;
925 double u1stop = 9.65;
926 double u2start = 9.80;
927 double u2stop = 10.20;
928 double u3start = 10.20;
929 double u3stop = 10.55;
930 cout <<
"kuku2" << endl;
931 double raa1[nbins+1],raa2[nbins+1],raa3[nbins+1],erraa1[nbins+1],erraa2[nbins+1],erraa3[nbins+1];
936 raa1[
i] = grRAA1S->Eval(Npart[
i]);
937 raa2[
i] = grRAA2S->Eval(Npart[i]);
938 raa3[
i] = grRAA3S->Eval(Npart[i]);
940 cout <<
"Npart, Raa = " << Npart[
i] <<
" " << raa1[
i] <<
" " << raa2[
i] <<
" " << raa3[
i] << endl;
942 int fbin1 = hhall_scaled[0]->FindBin(u1start + 0.001);
943 int lbin1 = hhall_scaled[0]->FindBin(u1stop - 0.001);
944 int fbin2 = hhall_scaled[0]->FindBin(u2start + 0.001);
945 int lbin2 = hhall_scaled[0]->FindBin(u2stop - 0.001);
946 int fbin3 = hhall_scaled[0]->FindBin(u3start + 0.001);
947 int lbin3 = hhall_scaled[0]->FindBin(u3stop - 0.001);
948 cout <<
"Y(1S) bin range: " << fbin1 <<
" - " << lbin1 << endl;
949 cout <<
"Y(1S) inv. mass range: " << u1start <<
" - " << u1stop << endl;
950 cout <<
"Y(2S) bin range: " << fbin2 <<
" - " << lbin2 << endl;
951 cout <<
"Y(2S) inv. mass range: " << u2start <<
" - " << u2stop << endl;
952 cout <<
"Y(3S) bin range: " << fbin3 <<
" - " << lbin3 << endl;
953 cout <<
"Y(3S) inv. mass range: " << u3start <<
" - " << u3stop << endl;
955 double sum1[99] = {0.};
956 double truesum1[99] = {0.};
957 double ersum1[99] = {0.};
959 double ersumpp1 = 0.;
960 double sum2[99] = {0.};
961 double truesum2[99] = {0.};
962 double ersum2[99] = {0.};
964 double ersumpp2 = 0.;
965 double sum3[99] = {0.};
966 double truesum3[99] = {0.};
967 double ersum3[99] = {0.};
969 double ersumpp3 = 0.;
971 double sumsum1[99] = {0.};
972 double sumsum2[99] = {0.};
973 double sumsum3[99] = {0.};
974 double sumsum1pp = 0.;
975 double sumsum2pp = 0.;
976 double sumsum3pp = 0.;
978 for(
int j=fbin1;
j<=lbin1;
j++) {
979 sumpp1 += hhups1pp->GetBinContent(
j);
980 ersumpp1 += hhupspp->GetBinError(
j)*hhupspp->GetBinError(
j);
982 for(
int j=fbin2;
j<=lbin2;
j++) {
983 sumpp2 += hhups2pp->GetBinContent(
j);
984 ersumpp2 += hhupspp->GetBinError(
j)*hhupspp->GetBinError(
j);
986 for(
int j=fbin3;
j<=lbin3;
j++) {
987 sumpp3 += hhups3pp->GetBinContent(
j);
988 ersumpp3 += hhupspp->GetBinError(
j)*hhupspp->GetBinError(
j);
995 for(
int j=fbin1;
j<=lbin1;
j++) {
996 sum1[
i] += (hhall_scaled[
i]->GetBinContent(
j) - hhcombbg_scaled[
i]->GetFunction(
"fbg")->Eval(hhall_scaled[
i]->GetBinCenter(
j)) - hhcorrbg_scaled[
i]->GetFunction(
"expo")->Eval(hhall_scaled[
i]->GetBinCenter(
j)));
997 truesum1[
i] += hhups1[
i]->GetBinContent(
j);
998 ersum1[
i] += hhall_scaled[
i]->GetBinError(
j)*hhall_scaled[
i]->GetBinError(
j);
1000 sumsum1[
i] = truesum1[
i];
1007 if(sumsum1[
i]>0. && sumsum1pp>0.) {
1008 erraa1[
i] = raa1[
i]*sqrt(ersum1[
i]/sumsum1[
i]/sumsum1[
i] + ersumpp1/sumsum1pp/sumsum1pp);
1009 }
else {raa1[
i]=-1.0; erraa1[
i] = 999.; }
1011 for(
int j=fbin2;
j<=lbin2;
j++) {
1012 sum2[
i] += (hhall_scaled[
i]->GetBinContent(
j) - hhcombbg_scaled[
i]->GetFunction(
"fbg")->Eval(hhall_scaled[
i]->GetBinCenter(
j)) - hhcorrbg_scaled[
i]->GetFunction(
"expo")->Eval(hhall_scaled[
i]->GetBinCenter(
j)));
1013 truesum2[
i] += hhups2[
i]->GetBinContent(
j);
1014 ersum2[
i] += hhall_scaled[
i]->GetBinError(
j)*hhall_scaled[
i]->GetBinError(
j);
1016 sumsum2[
i] = truesum2[
i];
1023 if(sumsum2[
i]>0. && sumsum2pp>0.) {
1024 erraa2[
i] = raa2[
i]*sqrt(ersum2[
i]/sumsum2[
i]/sumsum2[
i] + ersumpp2/sumsum2pp/sumsum2pp);
1025 }
else {raa2[
i]=-1.0; erraa2[
i] = 999.; }
1027 for(
int j=fbin3;
j<=lbin3;
j++) {
1028 sum3[
i] += (hhall_scaled[
i]->GetBinContent(
j) - hhcombbg_scaled[
i]->GetFunction(
"fbg")->Eval(hhall_scaled[
i]->GetBinCenter(
j)) - hhcorrbg_scaled[
i]->GetFunction(
"expo")->Eval(hhall_scaled[
i]->GetBinCenter(
j)));
1029 truesum3[
i] += hhups3[
i]->GetBinContent(
j);
1030 ersum3[
i] += hhall_scaled[
i]->GetBinError(
j)*hhall_scaled[
i]->GetBinError(
j);
1032 sumsum3[
i] = truesum3[
i];
1039 if(truesum3[
i]>0. && sumpp3>0.) {
1040 erraa3[
i] = raa3[
i]*sqrt(ersum3[
i]/sumsum3[
i]/sumsum3[
i] + ersumpp3/sumsum3pp/sumsum3pp);
1041 }
else {raa3[
i]=-1.0; erraa3[
i] = 999.; }
1045 erraa2[2] = erraa2[2]*0.70;
1048 cout <<
"Npart, Raa = " << Npart[
i] <<
" " << raa1[
i] <<
" " << raa2[
i] <<
" " << raa3[
i] << endl;
1051 cout <<
"====== Y(1S):" << endl;
1053 cout <<
" " <<
i <<
" " << sumsum1[
i] <<
"(" << Nups1[
i] <<
")" <<
" +- " << sqrt(ersum1[
i])
1054 <<
" \t\t pp: " << sumsum1pp <<
" +- " << sqrt(ersumpp1) << endl;
1056 cout <<
"====== Y(2S):" << endl;
1058 cout <<
" " <<
i <<
" " << sumsum2[
i] <<
"(" << Nups2[
i] <<
")" <<
" +- " << sqrt(ersum2[
i])
1059 <<
" \t\t pp: " << sumsum2pp <<
" +- " << sqrt(ersumpp2) << endl;
1061 cout <<
"====== Y(3S):" << endl;
1063 cout <<
" " <<
i <<
" " << sumsum3[
i] <<
"(" << Nups3[
i] <<
")" <<
" +- " << sqrt(ersum3[
i])
1064 <<
" \t\t pp: " << sumsum3pp <<
" +- " << sqrt(ersumpp3) << endl;
1068 double raa3_rebin[9],raapt_rebin3[9],erraa3_rebin[9];
1069 double sum3_rebin[9],ersum3_rebin[9],sum3pp_rebin[9],ersumpp3_rebin[9];
1072 raa3_rebin[0] = grRAA3S->Eval(raapt_rebin3[0]);
1073 raa3_rebin[1] = grRAA3S->Eval(raapt_rebin3[1]);
1074 sum3_rebin[0] = truesum3[0]+truesum3[1];
1075 sum3_rebin[1] = truesum3[2]+truesum3[3];
1076 ersum3_rebin[0] = ersum3[0]+ersum3[1];
1077 ersum3_rebin[1] = ersum3[2]+ersum3[3];
1078 sum3pp_rebin[0] = sumsum3pp;
1079 sum3pp_rebin[1] = sumsum3pp;
1080 ersumpp3_rebin[0] = ersumpp3;
1081 ersumpp3_rebin[1] = ersumpp3;
1082 erraa3_rebin[0] = raa3[0]*sqrt(ersum3_rebin[0]/sum3_rebin[0]/sum3_rebin[0] + ersumpp3_rebin[0]/sum3pp_rebin[0]/sum3pp_rebin[0]);
1083 erraa3_rebin[1] = raa3[1]*sqrt(ersum3_rebin[1]/sum3_rebin[1]/sum3_rebin[1] + ersumpp3_rebin[1]/sum3pp_rebin[1]/sum3pp_rebin[1]);
1092 int npts2_rebin = 4;
1093 int npts3_rebin = 2;
1095 TCanvas* craa =
new TCanvas(
"craa",
"R_{dAu}",120,120,800,600);
1096 TH2F* hh2 =
new TH2F(
"hh2",
" ",10,0.,10.,10,0.,1.5);
1097 hh2->GetXaxis()->SetTitle(
"N_{coll}");
1098 hh2->GetXaxis()->SetTitleOffset(0.9);
1099 hh2->GetXaxis()->SetTitleColor(1);
1100 hh2->GetXaxis()->SetTitleSize(0.050);
1101 hh2->GetXaxis()->SetLabelSize(0.040);
1102 hh2->GetYaxis()->SetTitle(
"R_{dAu}");
1103 hh2->GetYaxis()->SetTitleOffset(0.9);
1104 hh2->GetYaxis()->SetTitleSize(0.050);
1105 hh2->GetYaxis()->SetLabelSize(0.040);
1108 double xx1[nbins+1];
for(
int i=0;
i<
nbins;
i++) {xx1[
i] = Npart[
i];}
1109 double xx2[nbins+1];
for(
int i=0;
i<
nbins;
i++) {xx2[
i] = Npart[
i] - 0.1;}
1110 double xx3[nbins+1];
for(
int i=0;
i<
nbins;
i++) {xx3[
i] = Npart[
i] + 0.1;}
1111 double xx3_rebin[nbins+1];
1112 xx3_rebin[0] = (Ncoll[0]+Ncoll[1])/2.;
1113 xx3_rebin[1] = (Ncoll[2]+1.2*Ncoll[3])/2.;
1115 TGraphErrors* gr1 =
new TGraphErrors(npts1,xx1,raa1,0,erraa1);
1116 gr1->SetMarkerStyle(kFullCircle);
1117 gr1->SetMarkerColor(kBlack);
1118 gr1->SetLineColor(kBlack);
1119 gr1->SetLineWidth(2);
1120 gr1->SetMarkerSize(1.5);
1121 gr1->SetName(
"gr1");
1124 TGraphErrors* gr2 =
new TGraphErrors(npts2,xx2,raa2,0,erraa2);
1125 gr2->SetMarkerStyle(kFullSquare);
1126 gr2->SetMarkerColor(kRed);
1127 gr2->SetLineColor(kRed);
1128 gr2->SetLineWidth(2);
1129 gr2->SetMarkerSize(1.5);
1130 gr2->SetName(
"gr2");
1144 TGraphErrors* gr3 =
new TGraphErrors(2,xx3_rebin,raa3,0,erraa3_rebin);
1145 gr3->SetMarkerStyle(kFullDiamond);
1146 gr3->SetMarkerColor(kBlue);
1147 gr3->SetLineColor(kBlue);
1148 gr3->SetLineWidth(2);
1149 gr3->SetMarkerSize(2.5);
1150 gr3->SetName(
"gr3");
1192 TLegend *
leg =
new TLegend(0.70,0.20,0.88,0.38);
1193 leg->SetBorderSize(0);
1194 leg->SetFillColor(10);
1195 leg->SetFillStyle(1001);
1196 TLegendEntry *entry1=leg->AddEntry(
"gr1",
"Y(1S)",
"p");
1197 TLegendEntry *entry2=leg->AddEntry(
"gr2",
"Y(2S)",
"p");
1199 TLegendEntry *entry3=leg->AddEntry(
"gr3",
"Y(3S)",
"p");
1202 TLatex*
l1 =
new TLatex(1.,0.40,
"#font[72]{sPHENIX} Projection"); l1->SetTextFont(42); l1->Draw();
1204 TLatex*
l2 =
new TLatex(1.,0.30,
"190B rec. d+Au events"); l2->SetTextFont(42); l2->Draw();
1205 TLatex* l3 =
new TLatex(1.,0.20,
"62 pb^{-1} samp. #it{p+p}"); l3->SetTextFont(42); l3->Draw();
1207 TLine* lll =
new TLine(0.6,0.64,1.3,0.64);
1208 lll->SetLineColor(kBlue);
1209 lll->SetLineWidth(2);