1 //____________________________________________________________________
3 * @defgroup pwg2_forward_otherdata External data
5 * @ingroup pwg2_forward_scripts
10 * @ingroup pwg2_forward_script_otherdata
12 #include <TGraphAsymmErrors.h>
13 #include <TMultiGraph.h>
19 //____________________________________________________________________
23 * @ingroup pwg2_forward_otherdata
34 /** Style used for UA5 data */
36 /** Style used for CMS data */
38 /** Style used for ALICE published data */
40 /** Color used for UA5 data */
42 /** Color used for CMS data */
44 /** Color used for ALICE data */
45 ALICEColor = kMagenta+1,
48 /** Marker style INEL data */
50 /** Marker style INEL>0 data */
52 /** Marker style NSD data */
54 /** Color used for UA5 data */
56 /** Color used for CMS data */
57 INELGt0Color = kGreen+1,
58 /** Color used for ALICE data */
62 /** Style offset for mirror data */
66 //____________________________________________________________________
68 * Set graph attributes based on trigger type and experiment.
71 * @param trig Trigger (INEL, INEL>0, NSD)
72 * @param exp Experiment
73 * @param mirror True if mirrored data
74 * @param name Name of graph
75 * @param title Title of graph
77 * @ingroup pwg2_forward_otherdata
80 SetGraphAttributes(TGraph* g, Int_t trig, Int_t exp, bool mirror,
81 const Char_t* name, const Char_t* title)
85 case UA5: color = UA5Color; break;
86 case CMS: color = CMSColor; break;
87 case ALICE: color = ALICEColor; break;
91 case UA5: style = UA5Style; break;
92 case CMS: style = CMSStyle; break;
93 case ALICE: style = ALICEStyle; break;
95 Float_t size = g->GetMarkerSize();
98 case 25: size *= 0.8; break;
99 case 27: size *= 1.4; break;
102 if (mirror) style += MirrorOff;
106 g->SetMarkerStyle(style);
107 g->SetMarkerSize(size);
108 g->SetMarkerColor(color);
109 g->SetLineColor(color);
112 g->GetHistogram()->SetStats(kFALSE);
113 g->GetHistogram()->SetXTitle("#eta");
114 g->GetHistogram()->SetYTitle("#frac{1}{N} #frac{dN_{ch}}{#eta}");
117 //____________________________________________________________________
119 * Get the UA5 NSD data for pp at @f$ \sqrt{s} = 900GeV@f$
120 * p7886_d1x1y4 - Z.Phys.C33:1-6,1986.
122 * @param mirrored Wether to produce the mirrored plot
124 * @return graph of data
126 * @ingroup pwg2_forward_otherdata
128 TGraphAsymmErrors* UA5Nsd(Bool_t mirrored=false)
130 //UA5 data NSD - p7886_d1x1y4 - Z.Phys.C33:1-6,1986.
131 double x[] = { 0.125, 0.375, 0.625, 0.875, 1.125, 1.375, 1.625, 1.875, 2.125,
132 2.375, 2.625, 2.875, 3.125, 3.375, 3.625, 3.875, 4.125, 4.375,
134 double exm[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
135 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
136 double exp[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
137 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
138 double y[] = { 3.48, 3.38, 3.52, 3.68, 3.71, 3.86, 3.76, 3.66, 3.72,
139 3.69, 3.56, 3.41, 3.15, 3.09, 2.74, 2.73, 2.32, 1.99, 1.69 };
140 double eym[] = { 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07,
141 0.07, 0.07, 0.07, 0.07, 0.08, 0.08, 0.09, 0.09, 0.1, 0.13 };
142 double eyp[] = { 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07,
143 0.07, 0.07, 0.07, 0.07, 0.08, 0.08, 0.09, 0.09, 0.1, 0.13 };
151 for (int i = 0; i < np; i++) {
161 TGraphAsymmErrors* g = new TGraphAsymmErrors(19,x, y, exm, exp, eym, eyp);
162 TGraphAsymmErrors* gm = new TGraphAsymmErrors(19,xm,ym,exmm,expm,eymm,eypm);
163 SetGraphAttributes(g, NSD, UA5, false,"ua5_nsd", "UA5 NSD");
164 SetGraphAttributes(gm, NSD, UA5, true,"ua5_nsd_mirrored",
165 "UA5 NSD (mirrored)");
167 return (mirrored ? gm : g);
170 //____________________________________________________________________
172 * Get the UA5 INEL data for pp at @f$ \sqrt{s} = 900GeV@f$
173 * p7886_d2x1y2 - Z.Phys.C33:1-6,1986.
175 * @param mirrored Wether to produce the mirrored plot
177 * @return graph of data
179 * @ingroup pwg2_forward_otherdata
181 TGraphAsymmErrors* UA5Inel(Bool_t mirrored=false)
183 //UA5 data INEL - p7886_d2x1y2 - Z.Phys.C33:1-6,1986.
184 double x[] = { 0.125, 0.375, 0.625, 0.875, 1.125, 1.375, 1.625, 1.875, 2.125,
185 2.375, 2.625, 2.875, 3.125, 3.375, 3.625, 3.875, 4.125, 4.375,
187 double exm[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
188 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
189 double exp[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
190 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
191 double y[] = { 3.14, 3.04, 3.17, 3.33, 3.33, 3.53, 3.46, 3.41, 3.45,
192 3.39, 3.07, 3.07, 2.93, 2.93, 2.55, 2.48, 2.18, 1.91, 1.52 };
193 double eym[] = { 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07,
194 0.07, 0.07, 0.07, 0.07, 0.08, 0.08, 0.09, 0.09, 0.1, 0.13 };
195 double eyp[] = { 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07,
196 0.07, 0.07, 0.07, 0.07, 0.08, 0.08, 0.09, 0.09, 0.1, 0.13 };
204 for (int i = 0; i < np; i++) {
213 TGraphAsymmErrors* g = new TGraphAsymmErrors(np,x, y, exm, exp, eym, eyp);
214 TGraphAsymmErrors* gm = new TGraphAsymmErrors(np,xm,ym,exmm,expm,eymm,eypm);
216 SetGraphAttributes(g, INEL, UA5, false, "ua5_inel", "UA5 INEL");
217 SetGraphAttributes(gm, INEL, UA5, true, "ua5_inel_mirrored",
218 "UA5 INEL (mirrored)");
220 return (mirrored ? gm : g);
223 //____________________________________________________________________
225 * Get the ALICE INEL data in @f$ |\eta|<1.3@f$ for pp at @f$ \sqrt{s}
227 * p7742_d1x1y1 - Eur.Phys.J.C68:89-108,2010.
229 * @return graph of data
231 * @ingroup pwg2_forward_otherdata
233 TGraphAsymmErrors* AliceCentralInel900()
235 // INEL - p7742_d1x1y1 - Eur.Phys.J.C68:89-108,2010.
236 TGraphAsymmErrors* g = 0;
237 double x[] = { -1.3, -1.1, -0.9, -0.7, -0.5, -0.3,
238 -0.1, 0.1, 0.3, 0.5, 0.7, 0.9, 1.1, 1.3 };
239 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
240 0.1, 0.1, 0.1, 0.1, 0.1 };
241 double exp[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
242 0.1, 0.1, 0.1, 0.1, 0.1 };
243 double y[] = { 3.28, 3.28, 3.22, 3.12, 3.06, 3.02, 2.98, 3.02, 3.02,
244 3.05, 3.15, 3.21, 3.26, 3.33 };
245 double eym[] = { 0.06324555320336758, 0.06324555320336758,
246 0.06324555320336758, 0.06324555320336758,
247 0.06324555320336758, 0.05385164807134505,
248 0.05385164807134505, 0.05385164807134505,
249 0.05385164807134505, 0.06324555320336758,
250 0.06324555320336758, 0.06324555320336758,
251 0.06324555320336758, 0.06324555320336758 };
252 double eyp[] = { 0.08246211251235322, 0.08246211251235322,
253 0.08246211251235322, 0.08246211251235322,
254 0.08246211251235322, 0.08246211251235322,
255 0.07280109889280519, 0.08246211251235322,
256 0.08246211251235322, 0.08246211251235322,
257 0.08246211251235322, 0.08246211251235322,
258 0.08246211251235322, 0.08246211251235322 };
260 for (int i = 0; i < np; i++) {
264 g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
265 SetGraphAttributes(g, INEL, ALICE, false, "alice_inel",
266 "ALICE INEL (publ.)");
271 //____________________________________________________________________
273 * Get the ALICE INEL>0 data in @f$ |\eta|<1.3@f$ for pp at @f$
274 * \sqrt{s} = 900GeV@f$
276 * p7741_d4x1y1 - Eur.Phys.J.C68:345-354,2010.
278 * @return graph of data
280 * @ingroup pwg2_forward_otherdata
282 TGraphAsymmErrors* AliceCentralInelGt900()
284 // INEL>0 - p7741_d4x1y1 - Eur.Phys.J.C68:345-354,2010.
285 double x[] = { -0.9, -0.7, -0.5, -0.3, -0.1, 0.1, 0.3, 0.5, 0.7,
287 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
289 double exp[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
291 double y[] = { 4.0, 3.87, 3.8, 3.7, 3.67, 3.73, 3.72, 3.77, 3.92,
293 double eym[] = { 0.07615773105863909, 0.07615773105863909,
294 0.07615773105863909, 0.06324555320336758,
295 0.06324555320336758, 0.06324555320336758,
296 0.0670820393249937, 0.07615773105863909,
297 0.07615773105863909, 0.07615773105863909 };
298 double eyp[] = { 0.08544003745317531, 0.07615773105863909,
299 0.07615773105863909, 0.07280109889280519,
300 0.07280109889280519, 0.07280109889280519,
301 0.07615773105863909, 0.07615773105863909,
302 0.08544003745317531, 0.08544003745317531 };
304 for (int i = 0; i < np; i++) {
305 double stat = (i >= 3 && i<=5) ? 0.02 : 0.03;
310 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
311 SetGraphAttributes(g, INELGt0, ALICE, false, "alice_inelgt900",
312 "ALICE INEL>0 (publ.)");
317 //____________________________________________________________________
319 * Get the ALICE INEL>0 data in @f$ |\eta|<0.9@f$ for pp at @f$
320 * \sqrt{s} = 2.36TeV@f$
322 * p7741_d5x1y1 - Eur.Phys.J.C68:345-354,2010.
324 * @return graph of data
326 * @ingroup pwg2_forward_otherdata
328 TGraphAsymmErrors* AliceCentralInelGt2360()
330 // INEL>0 - p7741_d5x1y1 - Eur.Phys.J.C68:345-354,2010.
331 double x[] = { -0.9, -0.7, -0.5, -0.3, -0.1, 0.1, 0.3, 0.5, 0.7, 0.9 };
332 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 };
333 double exp[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 };
334 double y[] = { 4.91, 4.76, 4.63, 4.64, 4.55, 4.55, 4.64, 4.66, 4.82, 4.88 };
335 double eym[] = { 0.08544003745317531, 0.08544003745317531,
336 0.08544003745317531, 0.08544003745317531,
337 0.08544003745317531, 0.08544003745317531,
338 0.08544003745317531, 0.08544003745317531,
339 0.08544003745317531, 0.08544003745317531 };
340 double eyp[] = { 0.11401754250991379, 0.11401754250991379,
341 0.1044030650891055, 0.1044030650891055,
342 0.1044030650891055, 0.1044030650891055,
343 0.1044030650891055, 0.1044030650891055,
344 0.11401754250991379, 0.11401754250991379 };
346 for (int i = 0; i < np; i++) {
352 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
353 SetGraphAttributes(g, INELGt0, ALICE, false, "alice_inelgt2360",
354 "ALICE INEL>0 (publ.)");
358 //____________________________________________________________________
360 * Get the ALICE INEL>0 data in @f$ |\eta|<0.9@f$ for pp at @f$
363 * p7741_d6x1y1 - Eur.Phys.J.C68:345-354,2010.
365 * @return graph of data
367 * @ingroup pwg2_forward_otherdata
369 TGraphAsymmErrors* AliceCentralInelGt7000()
371 // INEL>0 - p7741_d6x1y1 - Eur.Phys.J.C68:345-354,2010.
372 // Plot: p7741_d6x1y1
373 double x[] = { -0.9, -0.7, -0.5, -0.3, -0.1, 0.1, 0.3, 0.5, 0.7, 0.9 };
374 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 };
375 double exp[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1 };
376 double y[] = { 6.22, 6.07, 6.01, 5.84, 5.85, 5.85, 5.91, 6.01, 6.17, 6.26 };
377 double eym[] = { 0.1216552506059644, 0.1216552506059644,
378 0.1216552506059644, 0.11180339887498948,
379 0.11180339887498948, 0.11180339887498948,
380 0.11180339887498948, 0.1216552506059644,
381 0.1216552506059644, 0.1216552506059644 };
382 double eyp[] = { 0.21095023109728983, 0.21095023109728983,
383 0.2009975124224178, 0.2009975124224178,
384 0.2009975124224178, 0.2009975124224178,
385 0.2009975124224178, 0.2009975124224178,
386 0.21095023109728983, 0.21095023109728983 };
388 for (int i = 0; i < np; i++) {
394 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
395 SetGraphAttributes(g, INELGt0, ALICE, false, "alice_inelgt7000",
396 "ALICE INEL>0 (publ.)");
400 //____________________________________________________________________
402 * Get the ALICE NSD data in @f$ |\eta|<1.3@f$ for pp at @f$
403 * \sqrt{s} = 900GeV@f$
405 * p7742_d2x1y1 - Eur.Phys.J.C68:89-108,2010.
407 * @return graph of data
409 * @ingroup pwg2_forward_otherdata
411 TGraphAsymmErrors* AliceCentralNsd900()
413 //NSD - p7742_d2x1y1 - Eur.Phys.J.C68:89-108,2010.
414 double x[] = { -1.3, -1.1, -0.9, -0.7, -0.5, -0.3, -0.1, 0.1, 0.3,
415 0.5, 0.7, 0.9, 1.1, 1.3 };
416 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
417 0.1, 0.1, 0.1, 0.1, 0.1 };
418 double exp[] = { 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 y[] = { 3.9, 3.89, 3.81, 3.7, 3.64, 3.59, 3.53, 3.58, 3.59,
421 3.61, 3.74, 3.8, 3.87, 3.95 };
422 double eym[] = { 0.13341664064126335, 0.13152946437965907,
423 0.13152946437965907, 0.1216552506059644,
424 0.1216552506059644, 0.1216552506059644,
425 0.1216552506059644, 0.1216552506059644,
426 0.1216552506059644, 0.1216552506059644,
427 0.1216552506059644, 0.13152946437965907,
428 0.13152946437965907, 0.13341664064126335 };
429 double eyp[] = { 0.13341664064126335, 0.13152946437965907,
430 0.13152946437965907, 0.1216552506059644,
431 0.1216552506059644, 0.1216552506059644,
432 0.1216552506059644, 0.1216552506059644,
433 0.1216552506059644, 0.1216552506059644,
434 0.1216552506059644, 0.13152946437965907,
435 0.13152946437965907, 0.13341664064126335 };
437 for (int i = 0; i < np; i++) {
438 double stat = (i == 0 || i == np-1) ? 0.03 : 0.02;
443 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
444 SetGraphAttributes(g, NSD, ALICE, false, "alice_nsd", "ALICE NSD (publ.)");
449 //____________________________________________________________________
451 * Get the ALICE INEL data in @f$ |\eta|<1.3@f$ for pp at @f$
452 * \sqrt{s} = 2.36TeV@f$
454 * p7742_d3x1y1 - Eur.Phys.J.C68:89-108,2010.
456 * @return graph of data
458 * @ingroup pwg2_forward_otherdata
460 TGraphAsymmErrors* AliceCentralInel2360()
462 // INEL - p7742_d3x1y1 - Eur.Phys.J.C68:89-108,2010.
463 double x[] = { -1.3, -1.1, -0.9, -0.7, -0.5, -0.3, -0.1, 0.1, 0.3,
464 0.5, 0.7, 0.9, 1.1, 1.3 };
465 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
466 0.1, 0.1, 0.1, 0.1, 0.1 };
467 double exp[] = { 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 y[] = { 4.08, 4.01, 4.0, 3.88, 3.77, 3.8, 3.73, 3.71, 3.79,
470 3.82, 3.94, 4.02, 4.05, 4.16 };
471 double eym[] = { 0.13341664064126335, 0.12369316876852982,
472 0.12369316876852982, 0.1216552506059644,
473 0.1216552506059644, 0.1216552506059644,
474 0.1216552506059644, 0.11180339887498948,
475 0.1216552506059644, 0.1216552506059644,
476 0.12369316876852982, 0.12369316876852982,
477 0.13341664064126335, 0.13341664064126335 };
478 double eyp[] = { 0.2716615541441225, 0.2716615541441225,
479 0.2716615541441225, 0.260768096208106,
480 0.25079872407968906, 0.25079872407968906,
481 0.25079872407968906, 0.25079872407968906,
482 0.25079872407968906, 0.260768096208106,
483 0.261725046566048, 0.2716615541441225,
484 0.2716615541441225, 0.2816025568065745 };
486 for (int i = 0; i < np; i++) {
487 double stat = (i < 3 || i > np-1-4) ? 0.03 : 0.02;
492 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
493 SetGraphAttributes(g, NSD, ALICE, false, "alice_inel2360",
494 "ALICE INEL (publ.)");
498 //____________________________________________________________________
500 * Get the ALICE NSD data in @f$ |\eta|<1.3@f$ for pp at @f$
501 * \sqrt{s} = 2.36TeV@f$
503 * p7742_d4x1y1 - Eur.Phys.J.C68:89-108,2010.
505 * @return graph of data
507 * @ingroup pwg2_forward_otherdata
509 TGraphAsymmErrors* AliceCentralNsd2360()
511 // NSD - p7742_d4x1y1 - Eur.Phys.J.C68:89-108,2010.
512 double x[] = { -1.3, -1.1, -0.9, -0.7, -0.5, -0.3, -0.1, 0.1, 0.3,
513 0.5, 0.7, 0.9, 1.1, 1.3 };
514 double exm[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
515 0.1, 0.1, 0.1, 0.1, 0.1 };
516 double exp[] = { 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
517 0.1, 0.1, 0.1, 0.1, 0.1 };
518 double y[] = { 4.79, 4.72, 4.7, 4.56, 4.44, 4.47, 4.39, 4.37, 4.47,
519 4.5, 4.64, 4.73, 4.76, 4.9 };
520 double eym[] = { 0.13601470508735444, 0.13341664064126335,
521 0.13341664064126335, 0.12369316876852982,
522 0.12369316876852982, 0.12369316876852982,
523 0.12369316876852982, 0.12369316876852982,
524 0.12369316876852982, 0.12369316876852982,
525 0.12369316876852982, 0.13341664064126335,
526 0.13341664064126335, 0.13341664064126335 };
527 double eyp[] = { 0.18439088914585774, 0.18248287590894657,
528 0.18248287590894657, 0.1726267650163207,
529 0.1726267650163207, 0.1726267650163207,
530 0.16278820596099708, 0.16278820596099708,
531 0.1726267650163207, 0.1726267650163207,
532 0.1726267650163207, 0.18248287590894657,
533 0.18248287590894657, 0.18248287590894657 };
536 for (int i = 0; i < np; i++) {
537 double stat = (i < 1) ? 0.03 : 0.02;
542 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
543 SetGraphAttributes(g, NSD, ALICE, false, "alice_nsd2360",
544 "ALICE NSD (publ.)");
549 //____________________________________________________________________
551 * Get the CMS NSD data in @f$ |\eta|<2.25@f$ for pp at @f$
552 * \sqrt{s} = 900GeV@f$
556 * @return graph of data
558 * @ingroup pwg2_forward_otherdata
560 TGraphAsymmErrors* CMSNsd900()
562 // CMS published NSD data - p7743_d8x1y1
563 double x[] = { -2.25, -1.75, -1.25, -0.75, -0.25, 0.25, 0.75, 1.25, 1.75,
565 double exm[] = { 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25 };
566 double exp[] = { 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25 };
567 double y[] = { 3.6, 3.73, 3.62, 3.54, 3.48, 3.48, 3.54, 3.62, 3.73, 3.6 };
568 double eym[] = { 0.13, 0.14, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.14,0.13 };
569 double eyp[] = { 0.13, 0.14, 0.13, 0.13, 0.13, 0.13, 0.13, 0.13, 0.14, 0.13 };
571 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
572 SetGraphAttributes(g, NSD, CMS, false, "cms_nsd900", "CMS NSD");
578 //____________________________________________________________________
580 * Get the CMS NSD data in @f$ |\eta|<2.25@f$ for pp at @f$
581 * \sqrt{s} = 2.36GeV@f$
585 * @return graph of data
587 * @ingroup pwg2_forward_otherdata
589 TGraphAsymmErrors* CMSNsd2360()
591 // CMS NSD 2360 - p7743_d8x1y2
592 double x[] = { -2.25, -1.75, -1.25, -0.75, -0.25, 0.25, 0.75,1.25,1.75,2.25 };
593 double exm[] = { 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25 };
594 double exp[] = { 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25 };
595 double y[] = { 4.78, 4.81, 4.66, 4.61, 4.47, 4.47, 4.61, 4.66, 4.81, 4.78 };
596 double eym[] = { 0.17, 0.18, 0.17, 0.17, 0.16, 0.16, 0.17, 0.17, 0.18, 0.17 };
597 double eyp[] = { 0.17, 0.18, 0.17, 0.17, 0.16, 0.16, 0.17, 0.17, 0.18, 0.17 };
599 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
600 SetGraphAttributes(g, NSD, CMS, false, "cms_nsd2360", "CMS NSD");
605 //____________________________________________________________________
607 * Get the CMS NSD data in @f$ |\eta|<2.25@f$ for pp at @f$
612 * @return graph of data
614 * @ingroup pwg2_forward_otherdata
616 TGraphAsymmErrors* CMSNsd7000()
618 // CMS NSD 7000 - Plot: p7838_d5x1y1
619 double x[] = { -2.25, -1.75, -1.25, -0.75, -0.25, 0.25, 0.75,1.25,1.75,2.25 };
620 double exm[] = { 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25 };
621 double exp[] = { 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25 };
622 double y[] = { 6.18, 6.26, 6.14, 6.01, 5.78, 5.78, 6.01, 6.14, 6.26, 6.18 };
623 double eym[] = { 0.25, 0.25, 0.24, 0.24, 0.23, 0.23, 0.24, 0.24, 0.25, 0.25 };
624 double eyp[] = { 0.25, 0.25, 0.24, 0.24, 0.23, 0.23, 0.24, 0.24, 0.25, 0.25 };
626 TGraphAsymmErrors* g = new TGraphAsymmErrors(np, x, y, exm, exp, eym, eyp);
627 SetGraphAttributes(g, NSD, CMS, false, "cms_nsd7000", "CMS NSD");
631 //____________________________________________________________________
633 * Get a multi graph of data for a given energy and trigger type
635 * @param sys Collision system (1: pp, 2: PbPb)
636 * @param energy Energy in GeV (900, 2360, 7000)
637 * @param type Bit pattern of trigger type
641 * @param centLow Low centrality cut (only for PbPB)
642 * @param centHigh High centrality cut (only for PbPB)
643 * @param aliceOnly Only return other ALICE data
645 * @return A multi graph with the selected data.
647 * @ingroup pwg2_forward_otherdata
650 GetData(UShort_t sys,
655 bool aliceOnly=false)
657 TMultiGraph* mp = new TMultiGraph(Form("dndeta_%dGeV_%d_%03d_%03d",
658 energy, type, centLow, centHigh),"");
664 sn = ", pp(p#bar{p})";
666 en = Form(", #sqrt{s}=%dGeV", energy);
668 en = Form(", #sqrt{s}=%f4.2TeV", float(energy)/1000);
670 Warning("GetData", "Unknown trigger mask 0x%x", type);
672 if (TMath::Abs(energy-900) < 10) {
675 if (!aliceOnly) mp->Add(UA5Inel(false));
676 if (!aliceOnly) mp->Add(UA5Inel(true));
677 mp->Add(AliceCentralInel900());
681 if (!aliceOnly) mp->Add(UA5Nsd(false));
682 if (!aliceOnly) mp->Add(UA5Nsd(true));
683 mp->Add(AliceCentralNsd900());
684 if (!aliceOnly) mp->Add(CMSNsd900());
687 tn.Append(" INEL>0");
688 mp->Add(AliceCentralInelGt900());
691 else if (TMath::Abs(energy-2360) < 10) {
694 mp->Add(AliceCentralInel2360());
698 mp->Add(AliceCentralNsd2360());
699 if (!aliceOnly) mp->Add(CMSNsd2360());
702 tn.Append(" INEL>0");
703 mp->Add(AliceCentralInelGt2360());
706 else if (TMath::Abs(energy-7000) < 10) {
712 if (!aliceOnly) mp->Add(CMSNsd7000());
715 tn.Append(" INEL>0");
716 mp->Add(AliceCentralInelGt7000());
720 Warning("GetData", "No other results for sys=%d, energy=%d",
724 // Nothing for PbPb so far
725 cn = Form(", %d%%-%d%% central", centLow, centHigh);
728 en = Form(", #sqrt{s_{NN}}=%dGeV", energy);
730 en = Form(", #sqrt{s_{NN}}=%f4.2TeV", float(energy)/1000);
731 Warning("GetData", "No other data for PbP b yet");
734 Warning("GetData", "Unknown system %d", sys);
735 TString tit(Form("1/N dN_{ch}/d#eta%s%s%s%s",
736 sn.Data(), en.Data(), tn.Data(), cn.Data()));
737 mp->SetTitle(tit.Data());
738 if (!mp->GetListOfGraphs() || mp->GetListOfGraphs()->GetEntries() <= 0) {
745 //____________________________________________________________________
747 * Plot external data for a given selection of energy and trigger type
750 * @param sys Collision system (1: pp, 2: PbPb)
751 * @param energy Energy in GeV (900, 2360, 7000)
752 * @param type Bit pattern of trigger type
756 * @param centLow Low centrality cut (only for PbPB)
757 * @param centHigh High centrality cut (only for PbPB)
758 * @param aliceOnly Only return other ALICE data
760 * @ingroup pwg2_forward_otherdata
763 OtherData(UShort_t sys=1,
768 bool aliceOnly=false)
770 TMultiGraph* mp = GetData(sys, energy, type, centLow, centHigh, aliceOnly);
773 gStyle->SetTitleX(0.1);
774 gStyle->SetTitleY(1.0);
775 gStyle->SetTitleW(0.85);
776 gStyle->SetTitleH(0.05);
777 gStyle->SetTitleBorderSize(0);
778 gStyle->SetTitleTextColor(kWhite);
779 gStyle->SetTitleFillColor(kBlack);
780 gStyle->SetTitleFontSize(0.02);
782 gStyle->SetOptTitle(1);
783 gStyle->SetOptStat(0);
785 TCanvas* c = new TCanvas("c", "dN/deta", 800, 600);
789 c->SetRightMargin(0.05);
790 c->SetTopMargin(0.05);
796 mp->GetXaxis()->SetTitle("#eta");
798 mp->GetYaxis()->SetTitle("#frac{1}{N} #frac{dN_{ch}}{#eta}");
800 TLegend* l = c->BuildLegend(0.3, 0.15, 0.7, 0.5);
807 //____________________________________________________________________