]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/PHOSTasks/PHOS_PbPb/macros/Flow/v2PHENIX.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGGA / PHOSTasks / PHOS_PbPb / macros / Flow / v2PHENIX.C
1 //source:   Phys. Rev. Lett. 105, 142301 (2010)
2 //http://www.phenix.bnl.gov/phenix/WWW/info/data/ppg110/fig1.txt
3
4 TGraphErrors* v2PHENIX010(Int_t color=1, Int_t marker=20, Int_t first=-1,Int_t last=-1)
5 {
6   //commentme
7   Int_t _nPoints = 17;
8   if (last>_nPoints-1) last=_nPoints-1;
9   if (last<0 && first<0) last=_nPoints-1;
10   if (last<0) last=_nPoints-1+last;
11   if (first<0) first=0;
12
13    Double_t _x[] = {1.25,1.75,2.25,2.75,3.25,3.75,4.25,4.75,5.5,6.5,7.5,8.5,9.5,11,13,15,17};
14    Double_t _y[] = {0.0523,0.0617,0.0697,0.0777,0.0746,0.0695,0.0612,0.0615,0.061,0.0391,0.0526,0.0467,0.0419,0.0055,0.0615,0.1435,0.1409};
15 Double_t _xerr[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
16 Double_t _yerr[] = {0.0031,0.0019,0.0018,0.0022,0.0029,0.0034,0.0042,0.0054,0.0057,0.0088,0.0126,0.0184,0.0261,0.0283,0.0512,0.1019,0.1372};
17
18   TGraphErrors* graph = new TGraphErrors(last-first+1, &_x[first], &_y[first], &_xerr[first], &_yerr[first]);
19   graph->SetLineColor(color);
20   graph->SetMarkerColor(color);
21   graph->SetMarkerStyle(marker);
22   return graph;
23 }
24 TGraphErrors* v2PHENIX1020(Int_t color=1, Int_t marker=20, Int_t first=-1,Int_t last=-1)
25 {
26   //commentme
27   Int_t _nPoints = 17;
28   if (last>_nPoints-1) last=_nPoints-1;
29   if (last<0 && first<0) last=_nPoints-1;
30   if (last<0) last=_nPoints-1+last;
31   if (first<0) first=0;
32
33    Double_t _x[] = {1.25,1.75,2.25,2.75,3.25,3.75,4.25,4.75,5.5,6.5,7.5,8.5,9.5,11,13,15,17};
34    Double_t _y[] = {0.0996,0.1208,0.132,0.1386,0.1373,0.1221,0.1174,0.1071,0.0949,0.0855,0.0887,0.0783,0.0991,0.0648,0.1224,0.1507,-0.1153};
35 Double_t _xerr[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
36 Double_t _yerr[] = {0.002,0.0012,0.0012,0.0014,0.0019,0.0022,0.003,0.004,0.0041,0.0066,0.01,0.0148,0.0211,0.0236,0.044,0.0753,0.1492};
37
38   TGraphErrors* graph = new TGraphErrors(last-first+1, &_x[first], &_y[first], &_xerr[first], &_yerr[first]);
39   graph->SetLineColor(color);
40   graph->SetMarkerColor(color);
41   graph->SetMarkerStyle(marker);
42   return graph;
43 }
44 TGraphErrors* v2PHENIX2030(Int_t color=1, Int_t marker=20, Int_t first=-1,Int_t last=-1)
45 {
46   Int_t _nPoints = 17;
47   if (last>_nPoints-1) last=_nPoints-1;
48   if (last<0 && first<0) last=_nPoints-1;
49   if (last<0) last=_nPoints-1+last;
50   if (first<0) first=0;
51
52    Double_t _x[] = {1.25,1.75,2.25,2.75,3.25,3.75,4.25,4.75,5.5,6.5,7.5,8.5,9.5,11,13,15,17};
53    Double_t _y[] = {0.1346,0.1572,0.1704,0.175,0.1726,0.1646,0.1493,0.1333,0.1242,0.1081,0.1043,0.0796,0.0741,0.0577,0.0294,0.0161,0.1917};
54 Double_t _xerr[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
55 Double_t _yerr[] = {0.0018,0.0011,0.0011,0.0014,0.0018,0.0023,0.0031,0.0041,0.0039,0.0066,0.0103,0.0156,0.0222,0.0249,0.0455,0.0801,0.1424};
56
57   TGraphErrors* graph = new TGraphErrors(last-first+1, &_x[first], &_y[first], &_xerr[first], &_yerr[first]);
58   graph->SetLineColor(color);
59   graph->SetMarkerColor(color);
60   graph->SetMarkerStyle(marker);
61   return graph;
62 }
63
64 TGraphErrors* v2PHENIX3040(Int_t color=1, Int_t marker=20, Int_t first=-1,Int_t last=-1)
65 {
66   Int_t _nPoints = 17;
67   if (last>_nPoints-1) last=_nPoints-1;
68   if (last<0 && first<0) last=_nPoints-1;
69   if (last<0) last=_nPoints-1+last;
70   if (first<0) first=0;
71
72    Double_t _x[] = {1.25,1.75,2.25,2.75,3.25,3.75,4.25,4.75,5.5,6.5,7.5,8.5,9.5,11,13,15,17};
73    Double_t _y[] = {0.1534,0.1788,0.1898,0.192,0.1823,0.1791,0.164,0.1584,0.1406,0.1252,0.1224,0.109,0.1163,0.1112,0.1214,0.1556,0.1111};
74 Double_t _xerr[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
75 Double_t _yerr[] = {0.0019,0.001,0.0011,0.0014,0.0019,0.0024,0.0032,0.0044,0.0044,0.0076,0.0122,0.0183,0.0278,0.0299,0.056,0.1043,0.194};
76
77   TGraphErrors* graph = new TGraphErrors(last-first+1, &_x[first], &_y[first], &_xerr[first], &_yerr[first]);
78   graph->SetLineColor(color);
79   graph->SetMarkerColor(color);
80   graph->SetMarkerStyle(marker);
81   return graph;
82 }
83
84 TGraphErrors* v2PHENIX4050(Int_t color=1, Int_t marker=20, Int_t first=-1,Int_t last=-1)
85 {
86   Int_t _nPoints = 17;
87   if (last>_nPoints-1) last=_nPoints-1;
88   if (last<0 && first<0) last=_nPoints-1;
89   if (last<0) last=_nPoints-1+last;
90   if (first<0) first=0;
91
92    Double_t _x[] = {1.25,1.75,2.25,2.75,3.25,3.75,4.25,4.75,5.5,6.5,7.5,8.5,9.5,11,13,15,17};
93    Double_t _y[] = {0.1676,0.1862,0.1935,0.1989,0.1989,0.175,0.1736,0.1671,0.1473,0.1253,0.12,0.1098,0.1383,0.1269,0.054,0.0532,-0.0181};
94 Double_t _xerr[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
95 Double_t _yerr[] = {0.0022,0.0012,0.0013,0.0017,0.0022,0.0028,0.0039,0.0054,0.0058,0.0102,0.0166,0.0256,0.0389,0.0426,0.0879,0.1456,0.2846};
96
97   TGraphErrors* graph = new TGraphErrors(last-first+1, &_x[first], &_y[first], &_xerr[first], &_yerr[first]);
98   graph->SetLineColor(color);
99   graph->SetMarkerColor(color);
100   graph->SetMarkerStyle(marker);
101   return graph;
102 }
103 TGraphErrors* v2PHENIX5060(Int_t color=1, Int_t marker=20, Int_t first=-1,Int_t last=-1)
104 {
105   Int_t _nPoints = 17;
106   if (last>_nPoints-1) last=_nPoints-1;
107   if (last<0 && first<0) last=_nPoints-1;
108   if (last<0) last=_nPoints-1+last;
109   if (first<0) first=0;
110
111    Double_t _x[] = {1.25,1.75,2.25,2.75,3.25,3.75,4.25,4.75,5.5,6.5,7.5,8.5,9.5,11,13,15,17};
112    Double_t _y[] = {0.165,0.1841,0.1894,0.1888,0.1825,0.1763,0.1838,0.1747,0.1734,0.1771,0.1153,0.1617,0.1986,0.1398,0.2379,0.08,0.287};
113 Double_t _xerr[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
114 Double_t _yerr[] = {0.003,0.0016,0.0017,0.0022,0.0031,0.0042,0.0061,0.0085,0.0092,0.0161,0.0271,0.0419,0.0601,0.07,0.1227,0.2248,0.4645};
115
116   TGraphErrors* graph = new TGraphErrors(last-first+1, &_x[first], &_y[first], &_xerr[first], &_yerr[first]);
117   graph->SetLineColor(color);
118   graph->SetMarkerColor(color);
119   graph->SetMarkerStyle(marker);
120   return graph;
121 }
122