4 * @ingroup pwg2_forward_scripts
6 #include <TGraphAsymmErrors.h>
7 #include <TMultiGraph.h>
13 //____________________________________________________________________
15 * @defgroup pwg2_forward_otherdata External data
17 * @ingroup pwg2_forward_scripts
19 //____________________________________________________________________
23 * @ingroup pwg2_forward_otherdata
26 /** Color used for UA5 data */
28 /** Color used for CMS data */
30 /** Color used for ALICE data */
31 ALICEColor = kMagenta+1,
32 /** Marker style INEL data */
34 /** Marker style INEL>0 data */
36 /** Marker style NSD data */
38 /** Colour offset for mirror data */
42 //____________________________________________________________________
44 * Set graph attributes
47 * @param marker Marker style
48 * @param color Marker and line color
49 * @param name Name of graph
50 * @param title Title of graph
52 * @ingroup pwg2_forward_otherdata
55 SetGraphAttributes(TGraph* g, Int_t marker, Int_t color,
56 const Char_t* name, const Char_t* title)
60 g->SetMarkerStyle(marker);
61 g->SetMarkerColor(color);
62 g->SetLineColor(color);
65 g->GetHistogram()->SetStats(kFALSE);
66 g->GetHistogram()->SetXTitle("#eta");
67 g->GetHistogram()->SetYTitle("#frac{1}{N} #frac{dN_{ch}}{#eta}");
70 //____________________________________________________________________
72 * Get the UA5 NSD data for pp at @f$ \sqrt{s} = 900GeV@f$
73 * p7886_d1x1y4 - Z.Phys.C33:1-6,1986.
75 * @param mirrored Wether to produce the mirrored plot
77 * @return graph of data
79 * @ingroup pwg2_forward_otherdata
81 TGraphAsymmErrors* UA5Nsd(Bool_t mirrored=false)
83 //UA5 data NSD - p7886_d1x1y4 - Z.Phys.C33:1-6,1986.
84 double x[] = { 0.125, 0.375, 0.625, 0.875, 1.125, 1.375, 1.625, 1.875, 2.125,
85 2.375, 2.625, 2.875, 3.125, 3.375, 3.625, 3.875, 4.125, 4.375,
87 double exm[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
88 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
89 double exp[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
90 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
91 double y[] = { 3.48, 3.38, 3.52, 3.68, 3.71, 3.86, 3.76, 3.66, 3.72,
92 3.69, 3.56, 3.41, 3.15, 3.09, 2.74, 2.73, 2.32, 1.99, 1.69 };
93 double eym[] = { 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07,
94 0.07, 0.07, 0.07, 0.07, 0.08, 0.08, 0.09, 0.09, 0.1, 0.13 };
95 double eyp[] = { 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07,
96 0.07, 0.07, 0.07, 0.07, 0.08, 0.08, 0.09, 0.09, 0.1, 0.13 };
104 for (int i = 0; i < np; i++) {
114 TGraphAsymmErrors* g = new TGraphAsymmErrors(19,x, y, exm, exp, eym, eyp);
115 TGraphAsymmErrors* gm = new TGraphAsymmErrors(19,xm,ym,exmm,expm,eymm,eypm);
116 SetGraphAttributes(g, NSDStyle, UA5Color,"ua5_nsd", "UA5 NSD");
117 SetGraphAttributes(gm, NSDStyle+MirrorOff, UA5Color,"ua5_nsd_mirrored",
118 "UA5 NSD (mirrored)");
120 return (mirrored ? gm : g);
123 //____________________________________________________________________
125 * Get the UA5 INEL data for pp at @f$ \sqrt{s} = 900GeV@f$
126 * p7886_d2x1y2 - Z.Phys.C33:1-6,1986.
128 * @param mirrored Wether to produce the mirrored plot
130 * @return graph of data
132 * @ingroup pwg2_forward_otherdata
134 TGraphAsymmErrors* UA5Inel(Bool_t mirrored=false)
136 //UA5 data INEL - p7886_d2x1y2 - Z.Phys.C33:1-6,1986.
137 double x[] = { 0.125, 0.375, 0.625, 0.875, 1.125, 1.375, 1.625, 1.875, 2.125,
138 2.375, 2.625, 2.875, 3.125, 3.375, 3.625, 3.875, 4.125, 4.375,
140 double exm[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
141 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
142 double exp[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
143 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
144 double y[] = { 3.14, 3.04, 3.17, 3.33, 3.33, 3.53, 3.46, 3.41, 3.45,
145 3.39, 3.07, 3.07, 2.93, 2.93, 2.55, 2.48, 2.18, 1.91, 1.52 };
146 double eym[] = { 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07,
147 0.07, 0.07, 0.07, 0.07, 0.08, 0.08, 0.09, 0.09, 0.1, 0.13 };
148 double eyp[] = { 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07,
149 0.07, 0.07, 0.07, 0.07, 0.08, 0.08, 0.09, 0.09, 0.1, 0.13 };
157 for (int i = 0; i < np; i++) {
166 TGraphAsymmErrors* g = new TGraphAsymmErrors(np,x, y, exm, exp, eym, eyp);
167 TGraphAsymmErrors* gm = new TGraphAsymmErrors(np,xm,ym,exmm,expm,eymm,eypm);
169 SetGraphAttributes(g, INELStyle, UA5Color, "ua5_inel", "UA5 INEL");
170 SetGraphAttributes(gm, INELStyle+MirrorOff, UA5Color, "ua5_inel_mirrored",
171 "UA5 INEL (mirrored)");
173 return (mirrored ? gm : g);
176 //____________________________________________________________________
178 * Get the ALICE INEL data in @f$ |\eta|<1.3@f$ for pp at @f$ \sqrt{s}
180 * p7742_d1x1y1 - Eur.Phys.J.C68:89-108,2010.
182 * @return graph of data
184 * @ingroup pwg2_forward_otherdata
186 TGraphAsymmErrors* AliceCentralInel900()
188 // INEL - p7742_d1x1y1 - Eur.Phys.J.C68:89-108,2010.
189 TGraphAsymmErrors* g = 0;
190 double x[] = { -1.3, -1.1, -0.9, -0.7, -0.5, -0.3,
191 -0.1, 0.1, 0.3, 0.5, 0.7, 0.9, 1.1, 1.3 };
192 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
193 0.1, 0.1, 0.1, 0.1, 0.1 };
194 double exp[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
195 0.1, 0.1, 0.1, 0.1, 0.1 };
196 double y[] = { 3.28, 3.28, 3.22, 3.12, 3.06, 3.02, 2.98, 3.02, 3.02,
197 3.05, 3.15, 3.21, 3.26, 3.33 };
198 double eym[] = { 0.06324555320336758, 0.06324555320336758,
199 0.06324555320336758, 0.06324555320336758,
200 0.06324555320336758, 0.05385164807134505,
201 0.05385164807134505, 0.05385164807134505,
202 0.05385164807134505, 0.06324555320336758,
203 0.06324555320336758, 0.06324555320336758,
204 0.06324555320336758, 0.06324555320336758 };
205 double eyp[] = { 0.08246211251235322, 0.08246211251235322,
206 0.08246211251235322, 0.08246211251235322,
207 0.08246211251235322, 0.08246211251235322,
208 0.07280109889280519, 0.08246211251235322,
209 0.08246211251235322, 0.08246211251235322,
210 0.08246211251235322, 0.08246211251235322,
211 0.08246211251235322, 0.08246211251235322 };
213 for (int i = 0; i < np; i++) {
217 g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
218 SetGraphAttributes(g, INELStyle, ALICEColor, "alice_inel",
219 "ALICE INEL (publ.)");
224 //____________________________________________________________________
226 * Get the ALICE INEL>0 data in @f$ |\eta|<1.3@f$ for pp at @f$
227 * \sqrt{s} = 900GeV@f$
229 * p7741_d4x1y1 - Eur.Phys.J.C68:345-354,2010.
231 * @return graph of data
233 * @ingroup pwg2_forward_otherdata
235 TGraphAsymmErrors* AliceCentralInelGt900()
237 // INEL>0 - p7741_d4x1y1 - Eur.Phys.J.C68:345-354,2010.
238 double x[] = { -0.9, -0.7, -0.5, -0.3, -0.1, 0.1, 0.3, 0.5, 0.7,
240 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
242 double exp[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
244 double y[] = { 4.0, 3.87, 3.8, 3.7, 3.67, 3.73, 3.72, 3.77, 3.92,
246 double eym[] = { 0.07615773105863909, 0.07615773105863909,
247 0.07615773105863909, 0.06324555320336758,
248 0.06324555320336758, 0.06324555320336758,
249 0.0670820393249937, 0.07615773105863909,
250 0.07615773105863909, 0.07615773105863909 };
251 double eyp[] = { 0.08544003745317531, 0.07615773105863909,
252 0.07615773105863909, 0.07280109889280519,
253 0.07280109889280519, 0.07280109889280519,
254 0.07615773105863909, 0.07615773105863909,
255 0.08544003745317531, 0.08544003745317531 };
257 for (int i = 0; i < np; i++) {
258 double stat = (i >= 3 && i<=5) ? 0.02 : 0.03;
263 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
264 SetGraphAttributes(g, INELGtStyle, ALICEColor, "alice_inelgt900",
265 "ALICE INEL>0 (publ.)");
270 //____________________________________________________________________
272 * Get the ALICE INEL>0 data in @f$ |\eta|<0.9@f$ for pp at @f$
273 * \sqrt{s} = 2.36TeV@f$
275 * p7741_d5x1y1 - Eur.Phys.J.C68:345-354,2010.
277 * @return graph of data
279 * @ingroup pwg2_forward_otherdata
281 TGraphAsymmErrors* AliceCentralInelGt2360()
283 // INEL>0 - p7741_d5x1y1 - Eur.Phys.J.C68:345-354,2010.
284 double x[] = { -0.9, -0.7, -0.5, -0.3, -0.1, 0.1, 0.3, 0.5, 0.7, 0.9 };
285 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 };
286 double exp[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 };
287 double y[] = { 4.91, 4.76, 4.63, 4.64, 4.55, 4.55, 4.64, 4.66, 4.82, 4.88 };
288 double eym[] = { 0.08544003745317531, 0.08544003745317531,
289 0.08544003745317531, 0.08544003745317531,
290 0.08544003745317531, 0.08544003745317531,
291 0.08544003745317531, 0.08544003745317531,
292 0.08544003745317531, 0.08544003745317531 };
293 double eyp[] = { 0.11401754250991379, 0.11401754250991379,
294 0.1044030650891055, 0.1044030650891055,
295 0.1044030650891055, 0.1044030650891055,
296 0.1044030650891055, 0.1044030650891055,
297 0.11401754250991379, 0.11401754250991379 };
299 for (int i = 0; i < np; i++) {
305 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
306 SetGraphAttributes(g, INELGtStyle, ALICEColor, "alice_inelgt2360",
307 "ALICE INEL>0 (publ.)");
311 //____________________________________________________________________
313 * Get the ALICE INEL>0 data in @f$ |\eta|<0.9@f$ for pp at @f$
316 * p7741_d6x1y1 - Eur.Phys.J.C68:345-354,2010.
318 * @return graph of data
320 * @ingroup pwg2_forward_otherdata
322 TGraphAsymmErrors* AliceCentralInelGt7000()
324 // INEL>0 - p7741_d6x1y1 - Eur.Phys.J.C68:345-354,2010.
325 // Plot: p7741_d6x1y1
326 double x[] = { -0.9, -0.7, -0.5, -0.3, -0.1, 0.1, 0.3, 0.5, 0.7, 0.9 };
327 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 };
328 double exp[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 };
329 double y[] = { 6.22, 6.07, 6.01, 5.84, 5.85, 5.85, 5.91, 6.01, 6.17, 6.26 };
330 double eym[] = { 0.1216552506059644, 0.1216552506059644,
331 0.1216552506059644, 0.11180339887498948,
332 0.11180339887498948, 0.11180339887498948,
333 0.11180339887498948, 0.1216552506059644,
334 0.1216552506059644, 0.1216552506059644 };
335 double eyp[] = { 0.21095023109728983, 0.21095023109728983,
336 0.2009975124224178, 0.2009975124224178,
337 0.2009975124224178, 0.2009975124224178,
338 0.2009975124224178, 0.2009975124224178,
339 0.21095023109728983, 0.21095023109728983 };
341 for (int i = 0; i < np; i++) {
347 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
348 SetGraphAttributes(g, INELGtStyle, ALICEColor, "alice_inelgt7000",
349 "ALICE INEL>0 (publ.)");
353 //____________________________________________________________________
355 * Get the ALICE NSD data in @f$ |\eta|<1.3@f$ for pp at @f$
356 * \sqrt{s} = 900GeV@f$
358 * p7742_d2x1y1 - Eur.Phys.J.C68:89-108,2010.
360 * @return graph of data
362 * @ingroup pwg2_forward_otherdata
364 TGraphAsymmErrors* AliceCentralNsd900()
366 //NSD - p7742_d2x1y1 - Eur.Phys.J.C68:89-108,2010.
367 double x[] = { -1.3, -1.1, -0.9, -0.7, -0.5, -0.3, -0.1, 0.1, 0.3,
368 0.5, 0.7, 0.9, 1.1, 1.3 };
369 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
370 0.1, 0.1, 0.1, 0.1, 0.1 };
371 double exp[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
372 0.1, 0.1, 0.1, 0.1, 0.1 };
373 double y[] = { 3.9, 3.89, 3.81, 3.7, 3.64, 3.59, 3.53, 3.58, 3.59,
374 3.61, 3.74, 3.8, 3.87, 3.95 };
375 double eym[] = { 0.13341664064126335, 0.13152946437965907,
376 0.13152946437965907, 0.1216552506059644,
377 0.1216552506059644, 0.1216552506059644,
378 0.1216552506059644, 0.1216552506059644,
379 0.1216552506059644, 0.1216552506059644,
380 0.1216552506059644, 0.13152946437965907,
381 0.13152946437965907, 0.13341664064126335 };
382 double eyp[] = { 0.13341664064126335, 0.13152946437965907,
383 0.13152946437965907, 0.1216552506059644,
384 0.1216552506059644, 0.1216552506059644,
385 0.1216552506059644, 0.1216552506059644,
386 0.1216552506059644, 0.1216552506059644,
387 0.1216552506059644, 0.13152946437965907,
388 0.13152946437965907, 0.13341664064126335 };
390 for (int i = 0; i < np; i++) {
391 double stat = (i == 0 || i == np-1) ? 0.03 : 0.02;
396 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
397 SetGraphAttributes(g, NSDStyle, ALICEColor, "alice_nsd", "ALICE NSD (publ.)");
402 //____________________________________________________________________
404 * Get the ALICE INEL data in @f$ |\eta|<1.3@f$ for pp at @f$
405 * \sqrt{s} = 2.36TeV@f$
407 * p7742_d3x1y1 - Eur.Phys.J.C68:89-108,2010.
409 * @return graph of data
411 * @ingroup pwg2_forward_otherdata
413 TGraphAsymmErrors* AliceCentralInel2360()
415 // INEL - p7742_d3x1y1 - Eur.Phys.J.C68:89-108,2010.
416 double x[] = { -1.3, -1.1, -0.9, -0.7, -0.5, -0.3, -0.1, 0.1, 0.3,
417 0.5, 0.7, 0.9, 1.1, 1.3 };
418 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
419 0.1, 0.1, 0.1, 0.1, 0.1 };
420 double exp[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
421 0.1, 0.1, 0.1, 0.1, 0.1 };
422 double y[] = { 4.08, 4.01, 4.0, 3.88, 3.77, 3.8, 3.73, 3.71, 3.79,
423 3.82, 3.94, 4.02, 4.05, 4.16 };
424 double eym[] = { 0.13341664064126335, 0.12369316876852982,
425 0.12369316876852982, 0.1216552506059644,
426 0.1216552506059644, 0.1216552506059644,
427 0.1216552506059644, 0.11180339887498948,
428 0.1216552506059644, 0.1216552506059644,
429 0.12369316876852982, 0.12369316876852982,
430 0.13341664064126335, 0.13341664064126335 };
431 double eyp[] = { 0.2716615541441225, 0.2716615541441225,
432 0.2716615541441225, 0.260768096208106,
433 0.25079872407968906, 0.25079872407968906,
434 0.25079872407968906, 0.25079872407968906,
435 0.25079872407968906, 0.260768096208106,
436 0.261725046566048, 0.2716615541441225,
437 0.2716615541441225, 0.2816025568065745 };
439 for (int i = 0; i < np; i++) {
440 double stat = (i < 3 || i > np-1-4) ? 0.03 : 0.02;
445 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
446 SetGraphAttributes(g, NSDStyle, ALICEColor, "alice_inel2360",
447 "ALICE INEL (publ.)");
451 //____________________________________________________________________
453 * Get the ALICE NSD data in @f$ |\eta|<1.3@f$ for pp at @f$
454 * \sqrt{s} = 2.36TeV@f$
456 * p7742_d4x1y1 - Eur.Phys.J.C68:89-108,2010.
458 * @return graph of data
460 * @ingroup pwg2_forward_otherdata
462 TGraphAsymmErrors* AliceCentralNsd2360()
464 // NSD - p7742_d4x1y1 - Eur.Phys.J.C68:89-108,2010.
465 double x[] = { -1.3, -1.1, -0.9, -0.7, -0.5, -0.3, -0.1, 0.1, 0.3,
466 0.5, 0.7, 0.9, 1.1, 1.3 };
467 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
468 0.1, 0.1, 0.1, 0.1, 0.1 };
469 double exp[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
470 0.1, 0.1, 0.1, 0.1, 0.1 };
471 double y[] = { 4.79, 4.72, 4.7, 4.56, 4.44, 4.47, 4.39, 4.37, 4.47,
472 4.5, 4.64, 4.73, 4.76, 4.9 };
473 double eym[] = { 0.13601470508735444, 0.13341664064126335,
474 0.13341664064126335, 0.12369316876852982,
475 0.12369316876852982, 0.12369316876852982,
476 0.12369316876852982, 0.12369316876852982,
477 0.12369316876852982, 0.12369316876852982,
478 0.12369316876852982, 0.13341664064126335,
479 0.13341664064126335, 0.13341664064126335 };
480 double eyp[] = { 0.18439088914585774, 0.18248287590894657,
481 0.18248287590894657, 0.1726267650163207,
482 0.1726267650163207, 0.1726267650163207,
483 0.16278820596099708, 0.16278820596099708,
484 0.1726267650163207, 0.1726267650163207,
485 0.1726267650163207, 0.18248287590894657,
486 0.18248287590894657, 0.18248287590894657 };
489 for (int i = 0; i < np; i++) {
490 double stat = (i < 1) ? 0.03 : 0.02;
495 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
496 SetGraphAttributes(g, NSDStyle, ALICEColor, "alice_nsd2360",
497 "ALICE NSD (publ.)");
502 //____________________________________________________________________
504 * Get the CMS NSD data in @f$ |\eta|<2.25@f$ for pp at @f$
505 * \sqrt{s} = 900GeV@f$
509 * @return graph of data
511 * @ingroup pwg2_forward_otherdata
513 TGraphAsymmErrors* CMSNsd900()
515 // CMS published NSD data - p7743_d8x1y1
516 double x[] = { -2.25, -1.75, -1.25, -0.75, -0.25, 0.25, 0.75, 1.25, 1.75,
518 double exm[] = { 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25 };
519 double exp[] = { 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25 };
520 double y[] = { 3.6, 3.73, 3.62, 3.54, 3.48, 3.48, 3.54, 3.62, 3.73, 3.6 };
521 double eym[] = { 0.13, 0.14, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.14,0.13 };
522 double eyp[] = { 0.13, 0.14, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.14, 0.13 };
524 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
525 SetGraphAttributes(g, NSDStyle, CMSColor, "cms_nsd900", "CMS NSD");
531 //____________________________________________________________________
533 * Get the CMS NSD data in @f$ |\eta|<2.25@f$ for pp at @f$
534 * \sqrt{s} = 2.36GeV@f$
538 * @return graph of data
540 * @ingroup pwg2_forward_otherdata
542 TGraphAsymmErrors* CMSNsd2360()
544 // CMS NSD 2360 - p7743_d8x1y2
545 double x[] = { -2.25, -1.75, -1.25, -0.75, -0.25, 0.25, 0.75,1.25,1.75,2.25 };
546 double exm[] = { 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25 };
547 double exp[] = { 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25 };
548 double y[] = { 4.78, 4.81, 4.66, 4.61, 4.47, 4.47, 4.61, 4.66, 4.81, 4.78 };
549 double eym[] = { 0.17, 0.18, 0.17, 0.17, 0.16, 0.16, 0.17, 0.17, 0.18, 0.17 };
550 double eyp[] = { 0.17, 0.18, 0.17, 0.17, 0.16, 0.16, 0.17, 0.17, 0.18, 0.17 };
552 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
553 SetGraphAttributes(g, NSDStyle, CMSColor, "cms_nsd2360", "CMS NSD");
558 //____________________________________________________________________
560 * Get the CMS NSD data in @f$ |\eta|<2.25@f$ for pp at @f$
565 * @return graph of data
567 * @ingroup pwg2_forward_otherdata
569 TGraphAsymmErrors* CMSNsd7000()
571 // CMS NSD 7000 - Plot: p7838_d5x1y1
572 double x[] = { -2.25, -1.75, -1.25, -0.75, -0.25, 0.25, 0.75,1.25,1.75,2.25 };
573 double exm[] = { 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25 };
574 double exp[] = { 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25 };
575 double y[] = { 6.18, 6.26, 6.14, 6.01, 5.78, 5.78, 6.01, 6.14, 6.26, 6.18 };
576 double eym[] = { 0.25, 0.25, 0.24, 0.24, 0.23, 0.23, 0.24, 0.24, 0.25, 0.25 };
577 double eyp[] = { 0.25, 0.25, 0.24, 0.24, 0.23, 0.23, 0.24, 0.24, 0.25, 0.25 };
579 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
580 SetGraphAttributes(g, NSDStyle, CMSColor, "cms_nsd7000", "CMS NSD");
584 //____________________________________________________________________
586 * Get a multi graph of data for a given energy and trigger type
588 * @param energy Energy in GeV (900, 2360, 7000)
589 * @param type Bit pattern of trigger type
594 * @return A multi graph with the selected data.
596 * @ingroup pwg2_forward_otherdata
599 GetData(Int_t energy, Int_t type, bool aliceOnly=false)
601 TMultiGraph* mp = new TMultiGraph(Form("dndeta_%dGeV_%d", energy, type),"");
604 if (TMath::Abs(energy-900) < 10) {
605 en.Append(" #sqrt{s}=900GeV");
608 if (!aliceOnly) mp->Add(UA5Inel(false));
609 if (!aliceOnly) mp->Add(UA5Inel(true));
610 mp->Add(AliceCentralInel900());
614 if (!aliceOnly) mp->Add(UA5Nsd(false));
615 if (!aliceOnly) mp->Add(UA5Nsd(true));
616 mp->Add(AliceCentralNsd900());
617 if (!aliceOnly) mp->Add(CMSNsd900());
620 tn.Append(" INEL>0");
621 mp->Add(AliceCentralInelGt900());
624 if (TMath::Abs(energy-2360) < 10) {
625 en.Append(" #sqrt{s}=2.36TeV");
628 mp->Add(AliceCentralInel2360());
632 mp->Add(AliceCentralNsd2360());
633 if (!aliceOnly) mp->Add(CMSNsd2360());
636 tn.Append(" INEL>0");
637 mp->Add(AliceCentralInelGt2360());
640 if (TMath::Abs(energy-7000) < 10) {
641 en.Append(" #sqrt{s}=7TeV");
647 if (!aliceOnly) mp->Add(CMSNsd7000());
650 tn.Append(" INEL>0");
651 mp->Add(AliceCentralInelGt7000());
654 mp->SetTitle(Form("1/N dN_{ch}/d#eta, pp(p#bar{p}), %s, %s",
655 en.Data(), tn.Data()));
656 if (!mp->GetListOfGraphs() || mp->GetListOfGraphs()->GetEntries() <= 0) {
663 //____________________________________________________________________
665 * Plot external data for a given selection of energy and trigger type
668 * @param energy Energy in GeV
669 * @param type Trigger type bit mask
671 * @ingroup pwg2_forward_otherdata
674 OtherData(Int_t energy=900, Int_t type=0x1, bool aliceOnly=false)
676 TMultiGraph* mp = GetData(energy, type, aliceOnly);
679 gStyle->SetTitleX(0.1);
680 gStyle->SetTitleY(1.0);
681 gStyle->SetTitleW(0.85);
682 gStyle->SetTitleH(0.05);
683 gStyle->SetTitleBorderSize(0);
684 gStyle->SetTitleTextColor(kWhite);
685 gStyle->SetTitleFillColor(kBlack);
686 gStyle->SetTitleFontSize(0.02);
688 gStyle->SetOptTitle(1);
689 gStyle->SetOptStat(0);
691 TCanvas* c = new TCanvas("c", "dN/deta", 800, 600);
695 c->SetRightMargin(0.05);
696 c->SetTopMargin(0.05);
702 mp->GetXaxis()->SetTitle("#eta");
704 mp->GetYaxis()->SetTitle("#frac{1}{N} #frac{dN_{ch}}{#eta}");
706 TLegend* l = c->BuildLegend(0.3, 0.15, 0.7, 0.5);
713 //____________________________________________________________________