1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 // Library class for particle pt and y distributions used for
19 // muon spectrometer simulations.
20 // To be used with AliGenParam.
21 // The following particle typed can be simulated:
22 // pi, K, phi, omega, eta, J/Psi, Upsilon, charm and beauty mesons.
24 // andreas.morsch@cern.ch
29 #include "TDatabasePDG.h"
31 #include "AliGenMUONlib.h"
33 ClassImp(AliGenMUONlib)
36 Double_t AliGenMUONlib::PtPion(const Double_t *px, const Double_t* /*dummy*/)
39 // PT-PARAMETERIZATION CDF, PRL 61(88) 1819
40 // POWER LAW FOR PT > 500 MEV
41 // MT SCALING BELOW (T=160 MEV)
43 const Double_t kp0 = 1.3;
44 const Double_t kxn = 8.28;
45 const Double_t kxlim=0.5;
46 const Double_t kt=0.160;
47 const Double_t kxmpi=0.139;
49 Double_t y, y1, xmpi2, ynorm, a;
52 y1=TMath::Power(kp0/(kp0+kxlim),kxn);
54 ynorm=kb*(TMath::Exp(-sqrt(kxlim*kxlim+xmpi2)/kt));
57 y=a*TMath::Power(kp0/(kp0+x),kxn);
59 y=kb*TMath::Exp(-sqrt(x*x+xmpi2)/kt);
65 Double_t AliGenMUONlib::YPion( const Double_t *py, const Double_t */*dummy*/)
68 Double_t y=TMath::Abs(*py);
70 const Double_t ka = 7000.;
71 const Double_t kdy = 4.;
72 Double_t ex = y*y/(2*kdy*kdy);
73 return ka*TMath::Exp(-ex);
75 return 1.16526e+04+y*-3.79886e+03+y*y*4.31130e+02;
78 // particle composition
80 Int_t AliGenMUONlib::IpPion(TRandom *ran)
83 if (ran->Rndm() < 0.5) {
90 //____________________________________________________________
94 Double_t AliGenMUONlib::PtScal(Double_t pt, Int_t np)
96 // SCALING EN MASSE PAR RAPPORT A PTPI
97 // MASS PI,K,ETA,RHO,OMEGA,ETA',PHI
98 const Double_t khm[10] = {.13957,.493,.5488,.769,.7826,.958,1.02,0,0,0};
99 // VALUE MESON/PI AT 5 GEV
100 const Double_t kfmax[10]={1.,0.3,0.55,1.0,1.0,1.0,1.0,0,0,0};
102 Double_t f5=TMath::Power(((sqrt(100.018215)+2.)/(sqrt(100.+khm[np]*khm[np])+2.0)),12.3);
103 Double_t fmax2=f5/kfmax[np];
105 Double_t ptpion=100.*PtPion(&pt, (Double_t*) 0);
106 Double_t fmtscal=TMath::Power(((sqrt(pt*pt+0.018215)+2.)/
107 (sqrt(pt*pt+khm[np]*khm[np])+2.0)),12.3)/ fmax2;
108 return fmtscal*ptpion;
114 //____________________________________________________________
115 Double_t AliGenMUONlib::PtKaon( const Double_t *px, const Double_t */*dummy*/)
118 return PtScal(*px,2);
122 //____________________________________________________________
123 Double_t AliGenMUONlib::YKaon( const Double_t *py, const Double_t */*dummy*/)
126 Double_t y=TMath::Abs(*py);
128 const Double_t ka = 1000.;
129 const Double_t kdy = 4.;
131 Double_t ex = y*y/(2*kdy*kdy);
132 return ka*TMath::Exp(-ex);
135 return 1.16526e+04+y*-3.79886e+03+y*y*4.31130e+02;
138 // particle composition
140 Int_t AliGenMUONlib::IpKaon(TRandom *ran)
143 if (ran->Rndm() < 0.5) {
154 //____________________________________________________________
155 Double_t AliGenMUONlib::PtJpsiPP7000( const Double_t *px, const Double_t */*dummy*/)
160 // using ALICE data at 2.5<y<4, see arXiv:1103.2394
162 const Double_t kpt0 = 2.44;
163 const Double_t kxn = 3.9;
166 Double_t pass1 = 1.+0.36*(x/kpt0)*(x/kpt0);
167 return x/TMath::Power(pass1,kxn);
170 Double_t AliGenMUONlib::PtJpsiPP2760( const Double_t *px, const Double_t */*dummy*/)
175 // from the fit of RHIC + LHC data, see arXiv:1103.2394
177 const Double_t kpt0 = 2.31;
178 const Double_t kxn = 3.9;
181 Double_t pass1 = 1.+0.36*(x/kpt0)*(x/kpt0);
182 return x/TMath::Power(pass1,kxn);
185 Double_t AliGenMUONlib::PtJpsiPbPb2760( const Double_t *px, const Double_t *dummy)
189 // PbPb 2.76 TeV, for EKS98 with minimum bias shadowing factor 0.66
191 Double_t c[5] = {6.01022e-01, 4.70988e-02, -2.27917e-03, 3.09885e-05, 1.31955e-06};
196 while (j > 0) y = y * x + c[--j];
198 Double_t d = 1.+c[4]*TMath::Power(x,4);
199 return y/d * AliGenMUONlib::PtJpsiPP2760(px,dummy);
202 Double_t AliGenMUONlib::PtJpsi( const Double_t *px, const Double_t */*dummy*/)
205 const Double_t kpt0 = 4.;
206 const Double_t kxn = 3.6;
209 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
210 return x/TMath::Power(pass1,kxn);
213 Double_t AliGenMUONlib::PtJpsiCDFscaled( const Double_t *px, const Double_t */*dummy*/)
218 // scaled from CDF data at 2 TeV
219 // see S.Grigoryan, PWG3 Meeting, 27th Oct 2008
221 const Double_t kpt0 = 5.100;
222 const Double_t kxn = 4.102;
225 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
226 return x/TMath::Power(pass1,kxn);
229 Double_t AliGenMUONlib::PtJpsiCDFscaledPP( const Double_t *px, const Double_t */*dummy*/)
234 // scaled from CDF data at 2 TeV
236 const Double_t kpt0 = 5.630;
237 const Double_t kxn = 4.071;
240 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
241 return x/TMath::Power(pass1,kxn);
244 Double_t AliGenMUONlib::PtJpsiCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
249 // scaled from CDF data at 2 TeV
251 const Double_t kpt0 = 5.334;
252 const Double_t kxn = 4.071;
255 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
256 return x/TMath::Power(pass1,kxn);
259 Double_t AliGenMUONlib::PtJpsiCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
264 // scaled from CDF data at 2 TeV
266 const Double_t kpt0 = 5.245;
267 const Double_t kxn = 4.071;
270 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
271 return x/TMath::Power(pass1,kxn);
274 Double_t AliGenMUONlib::PtJpsiCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
279 // scaled from CDF data at 2 TeV
281 const Double_t kpt0 = 5.072;
282 const Double_t kxn = 4.071;
285 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
286 return x/TMath::Power(pass1,kxn);
289 Double_t AliGenMUONlib::PtJpsiCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
294 // scaled from CDF data at 2 TeV
296 const Double_t kpt0 = 4.647;
297 const Double_t kxn = 4.071;
300 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
301 return x/TMath::Power(pass1,kxn);
304 Double_t AliGenMUONlib::PtJpsiCDFscaledPP3( const Double_t *px, const Double_t */*dummy*/)
309 // scaled from CDF data at 1.9 TeV
311 const Double_t kpt0 = 4.435;
312 const Double_t kxn = 4.071;
315 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
316 return x/TMath::Power(pass1,kxn);
319 Double_t AliGenMUONlib::PtJpsiCDFscaledPP2( const Double_t *px, const Double_t */*dummy*/)
324 // fit of the CDF data at 1.9 TeV
326 const Double_t kpt0 = 4.233;
327 const Double_t kxn = 4.071;
330 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
331 return x/TMath::Power(pass1,kxn);
334 Double_t AliGenMUONlib::PtJpsiCDFscaledPPb9( const Double_t *px, const Double_t *dummy)
338 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
340 Double_t c[5] = {6.42774e-01, 1.86168e-02, -6.77296e-04, 8.93512e-06, 1.31586e-07};
345 while (j > 0) y = y * x + c[--j];
347 Double_t d = 1.+c[4]*TMath::Power(x,4);
348 return y/d * AliGenMUONlib::PtJpsiCDFscaledPP9(px,dummy);
351 Double_t AliGenMUONlib::PtJpsiCDFscaledPbP9( const Double_t *px, const Double_t *dummy)
355 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
357 Double_t c[5] = {8.58557e-01, 5.39791e-02, -4.75180e-03, 2.49463e-04, 5.52396e-05};
362 while (j > 0) y = y * x + c[--j];
364 Double_t d = 1.+c[4]*TMath::Power(x,4);
365 return y/d * AliGenMUONlib::PtJpsiCDFscaledPP9(px,dummy);
368 Double_t AliGenMUONlib::PtJpsiCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
372 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.66
374 Double_t c[5] = {6.01022e-01, 4.70988e-02, -2.27917e-03, 3.09885e-05, 1.31955e-06};
379 while (j > 0) y = y * x + c[--j];
381 Double_t d = 1.+c[4]*TMath::Power(x,4);
382 return y/d * AliGenMUONlib::PtJpsiCDFscaledPP4(px,dummy);
385 Double_t AliGenMUONlib::PtJpsiFlat( const Double_t */*px*/, const Double_t */*dummy*/ )
390 Double_t AliGenMUONlib::PtJpsiPbPb( const Double_t *px, const Double_t */*dummy*/)
397 // mc = 1.4 GeV, pt-kick 1 GeV
401 -2.13098e+00, 9.46552e+00, -5.06799e+00, 1.27260e+00,
402 -1.83806e-01, 1.55853e-02, -7.23241e-04, 1.42105e-05
409 while (j > 0) y = y * x +c[--j];
410 y = x * TMath::Exp(y);
417 Double_t AliGenMUONlib::PtJpsiBPbPb( const Double_t *px, const Double_t */*dummy*/)
421 Double_t x0 = 4.0384;
425 Double_t y = x / TMath::Power((1. + (x/x0)*(x/x0)), n);
431 Double_t AliGenMUONlib::PtJpsiPP( const Double_t *px, const Double_t */*dummy*/)
438 // mc = 1.4 GeV, pt-kick 1 GeV
441 Float_t c[4] = {8.47471e+00, -1.93567e+00, 1.50271e-01, -5.51212e-03};
447 while (j > 0) y = y * x +c[--j];
448 y = x * TMath::Exp(y);
457 //____________________________________________________________
458 Double_t AliGenMUONlib::YJpsiPP7000( const Double_t *px, const Double_t */*dummy*/)
463 // from the fit of RHIC + LHC data, see arXiv:1103.2394
465 Double_t x = px[0]/7.72;
467 Double_t y = TMath::Exp(-x/0.383/0.383/2);
472 Double_t AliGenMUONlib::YJpsiPP2760( const Double_t *px, const Double_t */*dummy*/)
477 // from the fit of RHIC + LHC data, see arXiv:1103.2394
479 Double_t x = px[0]/6.79;
481 Double_t y = TMath::Exp(-x/0.383/0.383/2);
486 Double_t AliGenMUONlib::YJpsiPbPb2760( const Double_t *px, const Double_t *dummy)
490 // PbPb 2.76 TeV, for EKS98 with minimum bias shadowing factor 0.66
492 Double_t c[4] = {5.95228e-01, 9.45069e-03, 2.44710e-04, -1.32894e-05};
493 Double_t x = px[0]*px[0];
497 while (j > 0) y = y * x + c[--j];
500 return y * AliGenMUONlib::YJpsiPP2760(px,dummy);
503 Double_t AliGenMUONlib::YJpsi(const Double_t *py, const Double_t */*dummy*/)
506 const Double_t ky0 = 4.;
507 const Double_t kb=1.;
509 Double_t y=TMath::Abs(*py);
514 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
518 Double_t AliGenMUONlib::YJpsiFlat( const Double_t */*py*/, const Double_t */*dummy*/ )
524 Double_t AliGenMUONlib::YJpsiPbPb( const Double_t *px, const Double_t */*dummy*/)
534 // mc = 1.4 GeV, pt-kick 1 GeV
536 Double_t c[5] = {-6.03425e+02, 4.98257e+02, -1.38794e+02, 1.62209e+01, -6.85955e-01};
537 Double_t x = TMath::Abs(px[0]);
545 while (j > 0) y = y * x + c[--j];
553 Double_t AliGenMUONlib::YJpsiCDFscaled( const Double_t *px, const Double_t* dummy)
556 return AliGenMUONlib::YJpsiPbPb(px, dummy);
559 Double_t AliGenMUONlib::YJpsiCDFscaledPP( const Double_t *px, const Double_t* dummy)
562 return AliGenMUONlib::YJpsiPP(px, dummy);
565 Double_t AliGenMUONlib::YJpsiCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
570 // scaled from YJpsiPP(14 TeV) using 10 TeV / 14 TeV ratio of y-spectra in LO pQCD.
571 // see S.Grigoryan, PWG3 Meeting, 27th Oct 2008
574 Double_t c[5] = {2.46681e+01, 8.91486e+01, -3.21227e+01, 3.63075e+00, -1.32047e-01};
576 Double_t x = TMath::Abs(px[0]);
580 y = 98.523 - 1.3664 * x * x;
581 } else if (x < 7.5) {
584 while (j > 0) y = y * x + c[--j];
594 Double_t AliGenMUONlib::YJpsiCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
599 // rescaling of YJpsiPP(14 TeV) using 8.8 TeV / 14 TeV ratio of y-spectra in LO QCD
601 Double_t c[5] = {3.33882e+02, -1.30980e+02, 2.59082e+01, -3.08935e+00, 1.56375e-01};
602 Double_t x = TMath::Abs(px[0]);
606 y = 99.236 - 1.5498 * x * x;
607 } else if (x < 7.4) {
610 while (j > 0) y = y * x + c[--j];
620 Double_t AliGenMUONlib::YJpsiCDFscaledPP9dummy(Double_t px)
622 return AliGenMUONlib::YJpsiCDFscaledPP9(&px, (Double_t*) 0);
625 Double_t AliGenMUONlib::YJpsiCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
630 // scaled from YJpsiPP(14 TeV) using 7 TeV / 14 TeV ratio of y-spectra in LO pQCD.
633 Double_t c[5] = {6.71181e+02, -3.69240e+02, 8.89644e+01, -1.04937e+01, 4.80959e-01};
635 Double_t x = TMath::Abs(px[0]);
639 y = 100.78 - 1.8353 * x * x;
640 } else if (x < 7.3) {
643 while (j > 0) y = y * x + c[--j];
653 Double_t AliGenMUONlib::YJpsiCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
658 // rescaling of YJpsiPP(14 TeV) using 3.94 TeV / 14 TeV ratio of y-spectra in LO QCD
660 Double_t c[5] = {4.00785e+02, -1.41159e+01, -3.28599e+01, 5.53048e+00, -2.45151e-01};
661 Double_t x = TMath::Abs(px[0]);
665 y = 107.389 - 2.7454 * x * x;
666 } else if (x < 7.0) {
669 while (j > 0) y = y * x + c[--j];
679 Double_t AliGenMUONlib::YJpsiCDFscaledPP3( const Double_t *px, const Double_t *dummy)
682 return AliGenMUONlib::YJpsiPP2760(px, dummy);
685 Double_t AliGenMUONlib::YJpsiCDFscaledPP2( const Double_t *px, const Double_t */*dummy*/)
690 // from the fit of RHIC + LHC data, see arXiv:1103.2394
692 Double_t x = px[0]/6.42;
694 Double_t y = TMath::Exp(-x/0.383/0.383/2);
699 Double_t AliGenMUONlib::YJpsiPP( const Double_t *px, const Double_t */*dummy*/)
709 // mc = 1.4 GeV, pt-kick 1 GeV
712 Double_t c[5] = {1.38532e+00, 1.00596e+02, -3.46378e+01, 3.94172e+00, -1.48319e-01};
713 Double_t x = TMath::Abs(px[0]);
717 y = 96.455 - 0.8483 * x * x;
718 } else if (x < 7.9) {
721 while (j > 0) y = y * x + c[--j];
729 Double_t AliGenMUONlib::YJpsiCDFscaledPPb9( const Double_t *px, const Double_t */*dummy*/)
733 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
735 Double_t c[7] = {7.52296e-01, 2.49917e-02, 3.36500e-03, 1.91187e-03, 2.92154e-04,
736 -4.16509e-05,-7.62709e-06};
738 Double_t x = px[0] + 0.47; // rapidity shift
741 while (j > 0) y = y * x + c[--j];
744 return y * AliGenMUONlib::YJpsiCDFscaledPP9dummy(x);
747 Double_t AliGenMUONlib::YJpsiCDFscaledPbP9( const Double_t *px, const Double_t */*dummy*/)
751 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
753 Double_t c[7] = {7.52296e-01, 2.49917e-02, 3.36500e-03, 1.91187e-03, 2.92154e-04,
754 -4.16509e-05,-7.62709e-06};
756 Double_t x = -px[0] + 0.47; // rapidity shift
759 while (j > 0) y = y * x + c[--j];
762 return y * AliGenMUONlib::YJpsiCDFscaledPP9dummy(x);
765 Double_t AliGenMUONlib::YJpsiCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
769 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.66
771 Double_t c[4] = {5.95228e-01, 9.45069e-03, 2.44710e-04, -1.32894e-05};
772 Double_t x = px[0]*px[0];
776 while (j > 0) y = y * x + c[--j];
779 return y * AliGenMUONlib::YJpsiCDFscaledPP4(px,dummy);
782 Double_t AliGenMUONlib::YJpsiBPbPb( const Double_t *px, const Double_t */*dummy*/)
786 // J/Psi from B->J/Psi X
791 Double_t c[7] = {7.37025e-02, 0., -2.94487e-03, 0., 6.07953e-06, 0., 5.39219e-07};
793 Double_t x = TMath::Abs(px[0]);
801 while (j > 0) y = y * x + c[--j];
809 // particle composition
811 Int_t AliGenMUONlib::IpJpsi(TRandom *)
816 Int_t AliGenMUONlib::IpPsiP(TRandom *)
818 // Psi prime composition
821 Int_t AliGenMUONlib::IpJpsiFamily(TRandom *)
825 Float_t r = gRandom->Rndm();
840 //____________________________________________________________
841 Double_t AliGenMUONlib::PtUpsilon( const Double_t *px, const Double_t */*dummy*/ )
844 const Double_t kpt0 = 5.3;
845 const Double_t kxn = 2.5;
848 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
849 return x/TMath::Power(pass1,kxn);
852 Double_t AliGenMUONlib::PtUpsilonCDFscaled( const Double_t *px, const Double_t */*dummy*/ )
855 const Double_t kpt0 = 7.753;
856 const Double_t kxn = 3.042;
859 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
860 return x/TMath::Power(pass1,kxn);
863 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP( const Double_t *px, const Double_t */*dummy*/ )
869 // scaled from CDF data at 2 TeV
871 const Double_t kpt0 = 8.610;
872 const Double_t kxn = 3.051;
875 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
876 return x/TMath::Power(pass1,kxn);
879 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
885 // scaled from CDF data at 2 TeV
887 const Double_t kpt0 = 8.235;
888 const Double_t kxn = 3.051;
891 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
892 return x/TMath::Power(pass1,kxn);
895 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
900 // scaled from CDF data at 2 TeV
902 const Double_t kpt0 = 8.048;
903 const Double_t kxn = 3.051;
906 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
907 return x/TMath::Power(pass1,kxn);
910 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
916 // scaled from CDF data at 2 TeV
918 const Double_t kpt0 = 7.817;
919 const Double_t kxn = 3.051;
922 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
923 return x/TMath::Power(pass1,kxn);
926 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
931 // scaled from CDF data at 2 TeV
933 const Double_t kpt0 = 7.189;
934 const Double_t kxn = 3.051;
937 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
938 return x/TMath::Power(pass1,kxn);
941 Double_t AliGenMUONlib::PtUpsilonCDFscaledPPb9( const Double_t *px, const Double_t *dummy)
945 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
947 Double_t c[5] = {7.64952e-01, 1.12501e-04, 4.96038e-04, -3.03198e-05, 3.74035e-06};
952 while (j > 0) y = y * x + c[--j];
954 Double_t d = 1.+c[4]*TMath::Power(x,4);
955 return y/d * AliGenMUONlib::PtUpsilonCDFscaledPP9(px,dummy);
958 Double_t AliGenMUONlib::PtUpsilonCDFscaledPbP9( const Double_t *px, const Double_t *dummy)
962 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
964 Double_t c[5] = {1.09881e+00, 3.08329e-03, -2.00356e-04, 8.28991e-06, 2.52576e-06};
969 while (j > 0) y = y * x + c[--j];
971 Double_t d = 1.+c[4]*TMath::Power(x,4);
972 return y/d * AliGenMUONlib::PtUpsilonCDFscaledPP9(px,dummy);
975 Double_t AliGenMUONlib::PtUpsilonCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
979 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.85
981 Double_t c[5] = {8.65872e-01, 2.05465e-03, 2.56063e-04, -1.65598e-05, 2.29209e-06};
986 while (j > 0) y = y * x + c[--j];
988 Double_t d = 1.+c[4]*TMath::Power(x,4);
989 return y/d * AliGenMUONlib::PtUpsilonCDFscaledPP4(px,dummy);
992 Double_t AliGenMUONlib::PtUpsilonFlat( const Double_t */*px*/, const Double_t */*dummy*/ )
997 Double_t AliGenMUONlib::PtUpsilonPbPb( const Double_t *px, const Double_t */*dummy*/)
1006 // mc = 1.4 GeV, pt-kick 1 GeV
1010 -1.03488e+01, 1.28065e+01, -6.60500e+00, 1.66140e+00,
1011 -2.34293e-01, 1.86925e-02, -7.80708e-04, 1.30610e-05
1017 while (j > 0) y = y * x +c[--j];
1018 y = x * TMath::Exp(y);
1025 Double_t AliGenMUONlib::PtUpsilonPP( const Double_t *px, const Double_t */*dummy*/)
1034 // mc = 1.4 GeV, pt-kick 1 GeV
1037 Double_t c[8] = {-7.93955e+00, 1.06306e+01, -5.21392e+00, 1.19703e+00,
1038 -1.45718e-01, 8.95151e-03, -2.04806e-04, -1.13053e-06};
1044 while (j > 0) y = y * x +c[--j];
1045 y = x * TMath::Exp(y);
1055 //____________________________________________________________
1056 Double_t AliGenMUONlib::YUpsilon(const Double_t *py, const Double_t */*dummy*/)
1059 const Double_t ky0 = 3.;
1060 const Double_t kb=1.;
1062 Double_t y=TMath::Abs(*py);
1067 yu=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
1072 Double_t AliGenMUONlib::YUpsilonPbPb( const Double_t *px, const Double_t */*dummy*/)
1082 // mc = 1.4 GeV, pt-kick 1 GeV
1085 Double_t c[7] = {3.40036e-01, -3.98882e-07, -4.48398e-03, 8.46411e-08, -6.10854e-04,
1086 -2.99753e-09, 1.28895e-05};
1087 Double_t x = TMath::Abs(px[0]);
1088 if (x > 5.55) return 0.;
1090 Double_t y = c[j = 6];
1091 while (j > 0) y = y * x +c[--j];
1095 Double_t AliGenMUONlib::YUpsilonCDFscaled( const Double_t *px, const Double_t *dummy)
1098 return AliGenMUONlib::YUpsilonPbPb(px, dummy);
1102 Double_t AliGenMUONlib::YUpsilonCDFscaledPP( const Double_t *px, const Double_t *dummy)
1105 return AliGenMUONlib::YUpsilonPP(px, dummy);
1109 Double_t AliGenMUONlib::YUpsilonFlat( const Double_t */*px*/, const Double_t */*dummy*/)
1116 Double_t AliGenMUONlib::YUpsilonCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
1121 // scaled from YUpsilonPP(14 TeV) using 10 TeV / 14 TeV ratio of y-spectra in LO pQCD.
1122 // see S.Grigoryan, PWG3 Meeting, 27th Oct 2008
1124 Double_t c[4] = {1., -2.17877e-02, -6.52830e-04, 1.40578e-05};
1125 Double_t x = TMath::Abs(px[0]);
1126 if (x > 6.1) return 0.;
1128 Double_t y = c[j = 3];
1129 while (j > 0) y = y * x*x +c[--j];
1133 Double_t AliGenMUONlib::YUpsilonCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
1138 // rescaling of YUpsilonPP(14 TeV) using 8.8 TeV / 14 TeV ratio of y-spectra in LO QCD
1140 Double_t c[4] = {1., -2.37621e-02, -6.29610e-04, 1.47976e-05};
1141 Double_t x = TMath::Abs(px[0]);
1142 if (x > 6.1) return 0.;
1144 Double_t y = c[j = 3];
1145 while (j > 0) y = y * x*x +c[--j];
1149 Double_t AliGenMUONlib::YUpsilonCDFscaledPP9dummy(Double_t px)
1151 return AliGenMUONlib::YUpsilonCDFscaledPP9(&px, (Double_t*) 0);
1154 Double_t AliGenMUONlib::YUpsilonCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
1159 // scaled from YUpsilonPP(14 TeV) using 7 TeV / 14 TeV ratio of y-spectra in LO pQCD.
1161 Double_t c[4] = {1., -2.61009e-02, -6.83937e-04, 1.78451e-05};
1162 Double_t x = TMath::Abs(px[0]);
1163 if (x > 6.0) return 0.;
1165 Double_t y = c[j = 3];
1166 while (j > 0) y = y * x*x +c[--j];
1170 Double_t AliGenMUONlib::YUpsilonCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
1175 // rescaling of YUpsilonPP(14 TeV) using 3.94 TeV / 14 TeV ratio of y-spectra in LO QCD
1177 Double_t c[4] = {1., -3.91924e-02, -4.26184e-04, 2.10914e-05};
1178 Double_t x = TMath::Abs(px[0]);
1179 if (x > 5.7) return 0.;
1181 Double_t y = c[j = 3];
1182 while (j > 0) y = y * x*x +c[--j];
1187 Double_t AliGenMUONlib::YUpsilonPP( const Double_t *px, const Double_t */*dummy*/)
1197 // mc = 1.4 GeV, pt-kick 1 GeV
1199 Double_t c[7] = {8.91936e-01, -6.46645e-07, -1.52774e-02, 4.28677e-08, -7.01517e-04,
1200 -6.20539e-10, 1.29943e-05};
1201 Double_t x = TMath::Abs(px[0]);
1202 if (x > 6.2) return 0.;
1204 Double_t y = c[j = 6];
1205 while (j > 0) y = y * x +c[--j];
1209 Double_t AliGenMUONlib::YUpsilonCDFscaledPPb9( const Double_t *px, const Double_t */*dummy*/)
1213 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
1215 Double_t c[7] = {8.71829e-01, 4.77467e-02, 8.09671e-03, 6.45294e-04, -2.15730e-04,
1216 -4.67538e-05,-2.11683e-06};
1218 Double_t x = px[0] + 0.47; // rapidity shift
1221 while (j > 0) y = y * x + c[--j];
1224 return y * AliGenMUONlib::YUpsilonCDFscaledPP9dummy(x);
1227 Double_t AliGenMUONlib::YUpsilonCDFscaledPbP9( const Double_t *px, const Double_t */*dummy*/)
1231 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
1233 Double_t c[7] = {8.71829e-01, 4.77467e-02, 8.09671e-03, 6.45294e-04, -2.15730e-04,
1234 -4.67538e-05,-2.11683e-06};
1236 Double_t x = -px[0] + 0.47; // rapidity shift
1239 while (j > 0) y = y * x + c[--j];
1242 return y * AliGenMUONlib::YUpsilonCDFscaledPP9dummy(x);
1245 Double_t AliGenMUONlib::YUpsilonCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
1249 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.85
1251 Double_t c[4] = {8.27837e-01, 1.70115e-02, -1.26046e-03, 1.52091e-05};
1252 Double_t x = px[0]*px[0];
1256 while (j > 0) y = y * x + c[--j];
1259 return y * AliGenMUONlib::YUpsilonCDFscaledPP4(px,dummy);
1263 // particle composition
1265 Int_t AliGenMUONlib::IpUpsilon(TRandom *)
1270 Int_t AliGenMUONlib::IpUpsilonP(TRandom *)
1275 Int_t AliGenMUONlib::IpUpsilonPP(TRandom *)
1280 Int_t AliGenMUONlib::IpUpsilonFamily(TRandom *)
1284 Float_t r = gRandom->Rndm();
1288 } else if (r < 0.896) {
1301 // pt-distribution (by scaling of pion distribution)
1302 //____________________________________________________________
1303 Double_t AliGenMUONlib::PtPhi( const Double_t *px, const Double_t */*dummy*/)
1306 return PtScal(*px,7);
1309 Double_t AliGenMUONlib::YPhi( const Double_t *px, const Double_t */*dummy*/)
1313 return YJpsi(px,dum);
1315 // particle composition
1317 Int_t AliGenMUONlib::IpPhi(TRandom *)
1327 // pt-distribution (by scaling of pion distribution)
1328 //____________________________________________________________
1329 Double_t AliGenMUONlib::PtOmega( const Double_t *px, const Double_t */*dummy*/)
1332 return PtScal(*px,5);
1335 Double_t AliGenMUONlib::YOmega( const Double_t *px, const Double_t */*dummy*/)
1339 return YJpsi(px,dum);
1341 // particle composition
1343 Int_t AliGenMUONlib::IpOmega(TRandom *)
1345 // Omega composition
1354 // pt-distribution (by scaling of pion distribution)
1355 //____________________________________________________________
1356 Double_t AliGenMUONlib::PtEta( const Double_t *px, const Double_t */*dummy*/)
1359 return PtScal(*px,3);
1362 Double_t AliGenMUONlib::YEta( const Double_t *px, const Double_t */*dummy*/)
1366 return YJpsi(px,dum);
1368 // particle composition
1370 Int_t AliGenMUONlib::IpEta(TRandom *)
1381 //____________________________________________________________
1382 Double_t AliGenMUONlib::PtCharm( const Double_t *px, const Double_t */*dummy*/)
1385 const Double_t kpt0 = 2.25;
1386 const Double_t kxn = 3.17;
1389 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1390 return x/TMath::Power(pass1,kxn);
1393 Double_t AliGenMUONlib::PtCharmCentral( const Double_t *px, const Double_t */*dummy*/)
1396 const Double_t kpt0 = 2.12;
1397 const Double_t kxn = 2.78;
1400 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1401 return x/TMath::Power(pass1,kxn);
1403 Double_t AliGenMUONlib::PtCharmF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1405 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1406 // PtCharmFiMjSkPP = PtCharmF0M0S0PP * (dN(i,j,k)/dpt / dN(0,0,0)/dpt)_MNR
1407 // i=0,1,2; j=0,1,2; k=0,1,...,6
1408 // dN(i,j,k)/dpt - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1409 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1410 // calculations for the following inputs:
1411 // Peterson fragmentation function (F) with \epsilon_c = 0.02, 0.002 & 0.11
1412 // for i=0,1 & 2 respectively; quark mass (M) of 1.5, 1.3 & 1.7 GeV
1413 // for j=0,1 & 2 respectively;
1414 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1415 // with a/b = 1/1, 1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2
1416 // for k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1417 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1418 // June 2008, Smbat.Grigoryan@cern.ch
1421 // Pythia6.214 (kCharmppMNRwmi, PDF = CTEQ5L, quark mass = 1.2 GeV, PtHard > 2.76 GeV/c)
1422 // for pp collisions at 14 TeV with one c-cbar pair per event.
1423 // Corresponding NLO total cross section is 5.68 mb
1426 const Double_t kpt0 = 2.2930;
1427 const Double_t kxn = 3.1196;
1428 Double_t c[3]={-5.2180e-01,1.8753e-01,2.8669e-02};
1431 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1432 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1434 Double_t AliGenMUONlib::PtCharmF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1437 // Corresponding NLO total cross section is 6.06 mb
1438 const Double_t kpt0 = 2.8669;
1439 const Double_t kxn = 3.1044;
1440 Double_t c[3]={-4.6714e-01,1.5005e-01,4.5003e-02};
1443 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1444 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1446 Double_t AliGenMUONlib::PtCharmF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1449 // Corresponding NLO total cross section is 6.06 mb
1450 const Double_t kpt0 = 1.8361;
1451 const Double_t kxn = 3.2966;
1452 Double_t c[3]={-6.1550e-01,2.6498e-01,1.0728e-02};
1455 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1456 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1458 Double_t AliGenMUONlib::PtCharmF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1461 // Corresponding NLO total cross section is 7.69 mb
1462 const Double_t kpt0 = 2.1280;
1463 const Double_t kxn = 3.1397;
1464 Double_t c[3]={-5.4021e-01,2.0944e-01,2.5211e-02};
1467 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1468 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1470 Double_t AliGenMUONlib::PtCharmF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1473 // Corresponding NLO total cross section is 4.81 mb
1474 const Double_t kpt0 = 2.4579;
1475 const Double_t kxn = 3.1095;
1476 Double_t c[3]={-5.1497e-01,1.7532e-01,3.2429e-02};
1479 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1480 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1482 Double_t AliGenMUONlib::PtCharmF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1485 // Corresponding NLO total cross section is 14.09 mb
1486 const Double_t kpt0 = 2.1272;
1487 const Double_t kxn = 3.1904;
1488 Double_t c[3]={-4.6088e-01,2.1918e-01,2.3055e-02};
1491 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1492 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1494 Double_t AliGenMUONlib::PtCharmF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
1497 // Corresponding NLO total cross section is 1.52 mb
1498 const Double_t kpt0 = 2.8159;
1499 const Double_t kxn = 3.0857;
1500 Double_t c[3]={-6.4691e-01,2.0289e-01,2.4922e-02};
1503 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1504 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1506 Double_t AliGenMUONlib::PtCharmF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
1509 // Corresponding NLO total cross section is 3.67 mb
1510 const Double_t kpt0 = 2.7297;
1511 const Double_t kxn = 3.3019;
1512 Double_t c[3]={-6.2216e-01,1.9031e-01,1.5341e-02};
1515 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1516 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1518 Double_t AliGenMUONlib::PtCharmF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
1521 // Corresponding NLO total cross section is 3.38 mb
1522 const Double_t kpt0 = 2.3894;
1523 const Double_t kxn = 3.1075;
1524 Double_t c[3]={-4.9742e-01,1.7032e-01,2.5994e-02};
1527 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1528 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1530 Double_t AliGenMUONlib::PtCharmF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
1533 // Corresponding NLO total cross section is 10.37 mb
1534 const Double_t kpt0 = 2.0187;
1535 const Double_t kxn = 3.3011;
1536 Double_t c[3]={-3.9869e-01,2.9248e-01,1.1763e-02};
1539 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1540 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1542 Double_t AliGenMUONlib::PtCharmF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
1545 // Corresponding NLO total cross section is 7.22 mb
1546 const Double_t kpt0 = 2.1089;
1547 const Double_t kxn = 3.1848;
1548 Double_t c[3]={-4.6275e-01,1.8114e-01,2.1363e-02};
1551 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1552 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1556 Double_t AliGenMUONlib::YCharm( const Double_t *px, const Double_t */*dummy*/)
1558 // Charm y :: Carrer & Dainese : ALICE-INT-2003-019 v.3 (hep-ph/0311225)
1559 // Pythia tuned to reproduce the distribution given by the HVQMNR program based on NLO calculations (pQCD)
1560 // shadowing + kt broadening
1563 Double_t c[2]={-2.42985e-03,-2.31001e-04};
1564 Double_t y=1+(c[0]*TMath::Power(x,2))+(c[1]*TMath::Power(x,4));
1567 if (TMath::Abs(x)>8) {
1571 ycharm=TMath::Power(y,3);
1576 Double_t AliGenMUONlib::YCharmF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1578 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1579 // YCharmFiMjSkPP = YCharmF0M0S0PP * (dN(i,j,k)/dy / dN(0,0,0)/dy)_MNR
1580 // i=0,1,2; j=0,1,2; k=0,1,...,6
1581 // dN(i,j,k)/dy - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1582 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1583 // calculations for the following inputs:
1584 // Peterson fragmentation function (F) with \epsilon_c = 0.02, 0.002 & 0.11
1585 // for i=0,1 & 2 respectively; quark mass (M) of 1.5, 1.3 & 1.7 GeV
1586 // for j=0,1 & 2 respectively;
1587 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1588 // with a/b = 1/1,1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2 for
1589 // k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1590 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1591 // June 2008, Smbat.Grigoryan@cern.ch
1594 // Pythia6.214 (kCharmppMNRwmi, PDF = CTEQ5L, quark mass = 1.2 GeV, PtHard > 2.76 GeV/c)
1595 // for pp collisions at 14 TeV with one c-cbar pair per event.
1596 // Corresponding NLO total cross section is 5.68 mb
1599 Double_t c[2]={7.0909e-03,6.1967e-05};
1600 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1603 if (TMath::Abs(x)>9) {
1607 ycharm=TMath::Power(y,3);
1612 Double_t AliGenMUONlib::YCharmF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1615 // Corresponding NLO total cross section is 6.06 mb
1617 Double_t c[2]={6.9707e-03,6.0971e-05};
1618 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1621 if (TMath::Abs(x)>9) {
1625 ycharm=TMath::Power(y,3);
1630 Double_t AliGenMUONlib::YCharmF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1633 // Corresponding NLO total cross section is 6.06 mb
1635 Double_t c[2]={7.1687e-03,6.5303e-05};
1636 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1639 if (TMath::Abs(x)>9) {
1643 ycharm=TMath::Power(y,3);
1648 Double_t AliGenMUONlib::YCharmF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1651 // Corresponding NLO total cross section is 7.69 mb
1653 Double_t c[2]={5.9090e-03,7.1854e-05};
1654 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1657 if (TMath::Abs(x)>9) {
1661 ycharm=TMath::Power(y,3);
1666 Double_t AliGenMUONlib::YCharmF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1669 // Corresponding NLO total cross section is 4.81 mb
1671 Double_t c[2]={8.0882e-03,5.5872e-05};
1672 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1675 if (TMath::Abs(x)>9) {
1679 ycharm=TMath::Power(y,3);
1684 Double_t AliGenMUONlib::YCharmF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1687 // Corresponding NLO total cross section is 14.09 mb
1689 Double_t c[2]={7.2520e-03,6.2691e-05};
1690 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1693 if (TMath::Abs(x)>9) {
1697 ycharm=TMath::Power(y,3);
1702 Double_t AliGenMUONlib::YCharmF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
1705 // Corresponding NLO total cross section is 1.52 mb
1707 Double_t c[2]={1.1040e-04,1.4498e-04};
1708 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1711 if (TMath::Abs(x)>9) {
1715 ycharm=TMath::Power(y,3);
1720 Double_t AliGenMUONlib::YCharmF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
1723 // Corresponding NLO total cross section is 3.67 mb
1725 Double_t c[2]={-3.1328e-03,1.8270e-04};
1726 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1729 if (TMath::Abs(x)>9) {
1733 ycharm=TMath::Power(y,3);
1738 Double_t AliGenMUONlib::YCharmF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
1741 // Corresponding NLO total cross section is 3.38 mb
1743 Double_t c[2]={7.0865e-03,6.2532e-05};
1744 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1747 if (TMath::Abs(x)>9) {
1751 ycharm=TMath::Power(y,3);
1756 Double_t AliGenMUONlib::YCharmF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
1759 // Corresponding NLO total cross section is 10.37 mb
1761 Double_t c[2]={7.7070e-03,5.3533e-05};
1762 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1765 if (TMath::Abs(x)>9) {
1769 ycharm=TMath::Power(y,3);
1774 Double_t AliGenMUONlib::YCharmF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
1777 // Corresponding NLO total cross section is 7.22 mb
1779 Double_t c[2]={7.9195e-03,5.3823e-05};
1780 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1783 if (TMath::Abs(x)>9) {
1787 ycharm=TMath::Power(y,3);
1794 Int_t AliGenMUONlib::IpCharm(TRandom *ran)
1796 // Charm composition
1800 random = ran->Rndm();
1801 // Taux de production Carrer & Dainese : ALICE-INT-2003-019 v.3
1802 // >>>>> cf. tab 4 p 11
1804 if (random < 0.30) {
1806 } else if (random < 0.60) {
1808 } else if (random < 0.70) {
1810 } else if (random < 0.80) {
1812 } else if (random < 0.86) {
1814 } else if (random < 0.92) {
1816 } else if (random < 0.96) {
1830 //____________________________________________________________
1831 Double_t AliGenMUONlib::PtBeauty( const Double_t *px, const Double_t */*dummy*/)
1834 const Double_t kpt0 = 6.53;
1835 const Double_t kxn = 3.59;
1838 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1839 return x/TMath::Power(pass1,kxn);
1842 Double_t AliGenMUONlib::PtBeautyCentral( const Double_t *px, const Double_t */*dummy*/)
1845 const Double_t kpt0 = 6.14;
1846 const Double_t kxn = 2.93;
1849 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1850 return x/TMath::Power(pass1,kxn);
1852 Double_t AliGenMUONlib::PtBeautyF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1854 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1855 // PtBeautyFiMjSkPP = PtBeautyF0M0S0PP * (dN(i,j,k)/dpt / dN(0,0,0)/dpt)_MNR
1856 // i=0,1,2; j=0,1,2; k=0,1,...,6
1857 // dN(i,j,k)/dpt - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1858 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1859 // calculations for the following inputs:
1860 // Peterson fragmentation function (F) with \epsilon_b = 0.001, 0.0002 & 0.004
1861 // for i=0,1 & 2 respectively; quark mass (M) of 4.75, 4.5 & 5.0 GeV
1862 // for j=0,1 & 2 respectively;
1863 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1864 // with a/b = 1/1, 1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2 for
1865 // k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1866 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1867 // June 2008, Smbat.Grigoryan@cern.ch
1870 // Pythia6.214 (kBeautyppMNRwmi, PDF = CTEQ5L, quark mass = 4.75 GeV, PtHard > 2.76 GeV/c)
1871 // for pp collisions at 14 TeV with one b-bbar pair per event.
1872 // Corresponding NLO total cross section is 0.494 mb
1874 const Double_t kpt0 = 8.0575;
1875 const Double_t kxn = 3.1921;
1878 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1879 return x/TMath::Power(pass1,kxn);
1881 Double_t AliGenMUONlib::PtBeautyF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1884 // Corresponding NLO total cross section is 0.445 mb
1885 const Double_t kpt0 = 8.6239;
1886 const Double_t kxn = 3.2911;
1889 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1890 return x/TMath::Power(pass1,kxn);
1892 Double_t AliGenMUONlib::PtBeautyF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1895 // Corresponding NLO total cross section is 0.445 mb
1896 const Double_t kpt0 = 7.3367;
1897 const Double_t kxn = 3.0692;
1900 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1901 return x/TMath::Power(pass1,kxn);
1903 Double_t AliGenMUONlib::PtBeautyF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1906 // Corresponding NLO total cross section is 0.518 mb
1907 const Double_t kpt0 = 7.6409;
1908 const Double_t kxn = 3.1364;
1911 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1912 return x/TMath::Power(pass1,kxn);
1914 Double_t AliGenMUONlib::PtBeautyF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1917 // Corresponding NLO total cross section is 0.384 mb
1918 const Double_t kpt0 = 8.4948;
1919 const Double_t kxn = 3.2546;
1922 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1923 return x/TMath::Power(pass1,kxn);
1925 Double_t AliGenMUONlib::PtBeautyF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1928 // Corresponding NLO total cross section is 0.648 mb
1929 const Double_t kpt0 = 7.6631;
1930 const Double_t kxn = 3.1621;
1933 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1934 return x/TMath::Power(pass1,kxn);
1936 Double_t AliGenMUONlib::PtBeautyF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
1939 // Corresponding NLO total cross section is 0.294 mb
1940 const Double_t kpt0 = 8.7245;
1941 const Double_t kxn = 3.2213;
1944 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1945 return x/TMath::Power(pass1,kxn);
1947 Double_t AliGenMUONlib::PtBeautyF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
1950 // Corresponding NLO total cross section is 0.475 mb
1951 const Double_t kpt0 = 8.5296;
1952 const Double_t kxn = 3.2187;
1955 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1956 return x/TMath::Power(pass1,kxn);
1958 Double_t AliGenMUONlib::PtBeautyF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
1961 // Corresponding NLO total cross section is 0.324 mb
1962 const Double_t kpt0 = 7.9440;
1963 const Double_t kxn = 3.1614;
1966 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1967 return x/TMath::Power(pass1,kxn);
1969 Double_t AliGenMUONlib::PtBeautyF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
1972 // Corresponding NLO total cross section is 0.536 mb
1973 const Double_t kpt0 = 8.2408;
1974 const Double_t kxn = 3.3029;
1977 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1978 return x/TMath::Power(pass1,kxn);
1980 Double_t AliGenMUONlib::PtBeautyF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
1983 // Corresponding NLO total cross section is 0.420 mb
1984 const Double_t kpt0 = 7.8041;
1985 const Double_t kxn = 3.2094;
1988 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1989 return x/TMath::Power(pass1,kxn);
1993 Double_t AliGenMUONlib::YBeauty( const Double_t *px, const Double_t */*dummy*/)
1995 // Beauty y :: Carrer & Dainese : ALICE-INT-2003-019 v.3 (hep-ph/0311225)
1996 // Pythia tuned to reproduce the distribution given by the HVQMNR program based on NLO calculations (pQCD)
1997 // shadowing + kt broadening
2000 Double_t c[2]={-1.27590e-02,-2.42731e-04};
2001 Double_t y=1+c[0]*TMath::Power(x,2)+c[1]*TMath::Power(x,4);
2004 if (TMath::Abs(x)>6) {
2008 ybeauty=TMath::Power(y,3);
2013 Double_t AliGenMUONlib::YBeautyF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
2015 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
2016 // YBeautyFiMjSkPP = YBeautyF0M0S0PP * (dN(i,j,k)/dy / dN(0,0,0)/dy)_MNR
2017 // i=0,1,2; j=0,1,2; k=0,1,...,6
2018 // dN(i,j,k)/dy - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
2019 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
2020 // calculations for the following inputs:
2021 // Peterson fragmentation function (F) with \epsilon_b = 0.001, 0.0002 & 0.004
2022 // for i=0,1 & 2 respectively; quark mass (M) of 4.75, 4.5 & 5.0 GeV
2023 // for j=0,1 & 2 respectively;
2024 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
2025 // with a/b = 1/1, 1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2
2026 // for k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
2027 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
2028 // June 2008, Smbat.Grigoryan@cern.ch
2031 // Pythia6.214 (kBeautyppMNRwmi, PDF = CTEQ5L, quark mass = 4.75 GeV, PtHard > 2.76 GeV/c)
2032 // for pp collisions at 14 TeV with one b-bbar pair per event.
2033 // Corresponding NLO total cross section is 0.494 mb
2037 Double_t c[2]={1.2350e-02,9.2667e-05};
2038 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2041 if (TMath::Abs(x)>7.6) {
2045 ybeauty=TMath::Power(y,3);
2050 Double_t AliGenMUONlib::YBeautyF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
2053 // Corresponding NLO total cross section is 0.445 mb
2055 Double_t c[2]={1.2292e-02,9.1847e-05};
2056 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2059 if (TMath::Abs(x)>7.6) {
2063 ybeauty=TMath::Power(y,3);
2068 Double_t AliGenMUONlib::YBeautyF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
2071 // Corresponding NLO total cross section is 0.445 mb
2073 Double_t c[2]={1.2436e-02,9.3709e-05};
2074 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2077 if (TMath::Abs(x)>7.6) {
2081 ybeauty=TMath::Power(y,3);
2086 Double_t AliGenMUONlib::YBeautyF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
2089 // Corresponding NLO total cross section is 0.518 mb
2091 Double_t c[2]={1.1714e-02,1.0068e-04};
2092 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2095 if (TMath::Abs(x)>7.6) {
2099 ybeauty=TMath::Power(y,3);
2104 Double_t AliGenMUONlib::YBeautyF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
2107 // Corresponding NLO total cross section is 0.384 mb
2109 Double_t c[2]={1.2944e-02,8.5500e-05};
2110 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2113 if (TMath::Abs(x)>7.6) {
2117 ybeauty=TMath::Power(y,3);
2122 Double_t AliGenMUONlib::YBeautyF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
2125 // Corresponding NLO total cross section is 0.648 mb
2127 Double_t c[2]={1.2455e-02,9.2713e-05};
2128 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2131 if (TMath::Abs(x)>7.6) {
2135 ybeauty=TMath::Power(y,3);
2140 Double_t AliGenMUONlib::YBeautyF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
2143 // Corresponding NLO total cross section is 0.294 mb
2145 Double_t c[2]={1.0897e-02,1.1878e-04};
2146 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2149 if (TMath::Abs(x)>7.6) {
2153 ybeauty=TMath::Power(y,3);
2158 Double_t AliGenMUONlib::YBeautyF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
2161 // Corresponding NLO total cross section is 0.475 mb
2163 Double_t c[2]={1.0912e-02,1.1858e-04};
2164 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2167 if (TMath::Abs(x)>7.6) {
2171 ybeauty=TMath::Power(y,3);
2176 Double_t AliGenMUONlib::YBeautyF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
2179 // Corresponding NLO total cross section is 0.324 mb
2181 Double_t c[2]={1.2378e-02,9.2490e-05};
2182 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2185 if (TMath::Abs(x)>7.6) {
2189 ybeauty=TMath::Power(y,3);
2194 Double_t AliGenMUONlib::YBeautyF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
2197 // Corresponding NLO total cross section is 0.536 mb
2199 Double_t c[2]={1.2886e-02,8.2912e-05};
2200 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2203 if (TMath::Abs(x)>7.6) {
2207 ybeauty=TMath::Power(y,3);
2212 Double_t AliGenMUONlib::YBeautyF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
2215 // Corresponding NLO total cross section is 0.420 mb
2217 Double_t c[2]={1.3106e-02,8.0115e-05};
2218 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2221 if (TMath::Abs(x)>7.6) {
2225 ybeauty=TMath::Power(y,3);
2231 Int_t AliGenMUONlib::IpBeauty(TRandom *ran)
2233 // Beauty Composition
2236 random = ran->Rndm();
2238 // Taux de production Carrer & Dainese : ALICE-INT-2003-019 v.3
2239 // >>>>> cf. tab 4 p 11
2241 if (random < 0.20) {
2243 } else if (random < 0.40) {
2245 } else if (random < 0.605) {
2247 } else if (random < 0.81) {
2249 } else if (random < 0.87) {
2251 } else if (random < 0.93) {
2253 } else if (random < 0.965) {
2263 typedef Double_t (*GenFunc) (const Double_t*, const Double_t*);
2264 GenFunc AliGenMUONlib::GetPt(Int_t param, const char* tname) const
2266 // Return pointer to pT parameterisation
2267 TString sname = TString(tname);
2285 if (sname == "Vogt" || sname == "Vogt PbPb") {
2287 } else if (sname == "Vogt pp") {
2289 } else if (sname == "pp 7") {
2291 } else if (sname == "pp 2.76") {
2293 } else if (sname == "PbPb 2.76") {
2294 func=PtJpsiPbPb2760;
2295 } else if (sname == "CDF scaled") {
2296 func=PtJpsiCDFscaled;
2297 } else if (sname == "CDF pp") {
2298 func=PtJpsiCDFscaledPP;
2299 } else if (sname == "CDF pp 10") {
2300 func=PtJpsiCDFscaledPP10;
2301 } else if (sname == "CDF pp 8.8") {
2302 func=PtJpsiCDFscaledPP9;
2303 } else if (sname == "CDF pp 7" || sname == "CDF pp 7 flat y") {
2304 func=PtJpsiCDFscaledPP7;
2305 } else if (sname == "CDF pp 3.94") {
2306 func=PtJpsiCDFscaledPP4;
2307 } else if (sname == "CDF pp 2.76") {
2308 func=PtJpsiCDFscaledPP3;
2309 } else if (sname == "CDF pp 1.9") {
2310 func=PtJpsiCDFscaledPP2;
2311 } else if (sname == "CDF pPb 8.8") {
2312 func=PtJpsiCDFscaledPPb9;
2313 } else if (sname == "CDF Pbp 8.8") {
2314 func=PtJpsiCDFscaledPbP9;
2315 } else if (sname == "CDF PbPb 3.94") {
2316 func=PtJpsiCDFscaledPbPb4;
2317 } else if (sname == "Flat" || sname == "CDF pp 7 flat pt") {
2326 case kUpsilonFamily:
2330 if (sname == "Vogt" || sname == "Vogt PbPb") {
2332 } else if (sname == "Vogt pp") {
2334 } else if (sname == "CDF scaled") {
2335 func=PtUpsilonCDFscaled;
2336 } else if (sname == "CDF pp") {
2337 func=PtUpsilonCDFscaledPP;
2338 } else if (sname == "CDF pp 10") {
2339 func=PtUpsilonCDFscaledPP10;
2340 } else if (sname == "CDF pp 8.8") {
2341 func=PtUpsilonCDFscaledPP9;
2342 } else if (sname == "CDF pp 7") {
2343 func=PtUpsilonCDFscaledPP7;
2344 } else if (sname == "CDF pp 3.94") {
2345 func=PtUpsilonCDFscaledPP4;
2346 } else if (sname == "CDF pPb 8.8") {
2347 func=PtUpsilonCDFscaledPPb9;
2348 } else if (sname == "CDF Pbp 8.8") {
2349 func=PtUpsilonCDFscaledPbP9;
2350 } else if (sname == "CDF PbPb 3.94") {
2351 func=PtUpsilonCDFscaledPbPb4;
2352 } else if (sname == "Flat") {
2359 if (sname == "F0M0S0 pp") {
2360 func=PtCharmF0M0S0PP;
2361 } else if (sname == "F1M0S0 pp") {
2362 func=PtCharmF1M0S0PP;
2363 } else if (sname == "F2M0S0 pp") {
2364 func=PtCharmF2M0S0PP;
2365 } else if (sname == "F0M1S0 pp") {
2366 func=PtCharmF0M1S0PP;
2367 } else if (sname == "F0M2S0 pp") {
2368 func=PtCharmF0M2S0PP;
2369 } else if (sname == "F0M0S1 pp") {
2370 func=PtCharmF0M0S1PP;
2371 } else if (sname == "F0M0S2 pp") {
2372 func=PtCharmF0M0S2PP;
2373 } else if (sname == "F0M0S3 pp") {
2374 func=PtCharmF0M0S3PP;
2375 } else if (sname == "F0M0S4 pp") {
2376 func=PtCharmF0M0S4PP;
2377 } else if (sname == "F0M0S5 pp") {
2378 func=PtCharmF0M0S5PP;
2379 } else if (sname == "F0M0S6 pp") {
2380 func=PtCharmF0M0S6PP;
2381 } else if (sname == "central") {
2382 func=PtCharmCentral;
2388 if (sname == "F0M0S0 pp") {
2389 func=PtBeautyF0M0S0PP;
2390 } else if (sname == "F1M0S0 pp") {
2391 func=PtBeautyF1M0S0PP;
2392 } else if (sname == "F2M0S0 pp") {
2393 func=PtBeautyF2M0S0PP;
2394 } else if (sname == "F0M1S0 pp") {
2395 func=PtBeautyF0M1S0PP;
2396 } else if (sname == "F0M2S0 pp") {
2397 func=PtBeautyF0M2S0PP;
2398 } else if (sname == "F0M0S1 pp") {
2399 func=PtBeautyF0M0S1PP;
2400 } else if (sname == "F0M0S2 pp") {
2401 func=PtBeautyF0M0S2PP;
2402 } else if (sname == "F0M0S3 pp") {
2403 func=PtBeautyF0M0S3PP;
2404 } else if (sname == "F0M0S4 pp") {
2405 func=PtBeautyF0M0S4PP;
2406 } else if (sname == "F0M0S5 pp") {
2407 func=PtBeautyF0M0S5PP;
2408 } else if (sname == "F0M0S6 pp") {
2409 func=PtBeautyF0M0S6PP;
2410 } else if (sname == "central") {
2411 func=PtBeautyCentral;
2417 if (sname == "2010 Pos PP") {
2418 func=PtPionPos2010PP;
2419 } else if (sname == "2010 Neg PP") {
2420 func=PtPionNeg2010PP;
2426 if (sname == "2010 Pos PP") {
2427 func=PtKaonPos2010PP;
2428 } else if (sname == "2010 Neg PP") {
2429 func=PtKaonNeg2010PP;
2442 printf("<AliGenMUONlib::GetPt> unknown parametrisation\n");
2447 GenFunc AliGenMUONlib::GetY(Int_t param, const char* tname) const
2450 // Return pointer to y- parameterisation
2452 TString sname = TString(tname);
2470 if (sname == "Vogt" || sname == "Vogt PbPb") {
2472 } else if (sname == "Vogt pp"){
2474 } else if (sname == "pp 7") {
2476 } else if (sname == "pp 2.76") {
2478 } else if (sname == "PbPb 2.76") {
2480 } else if (sname == "CDF scaled") {
2481 func=YJpsiCDFscaled;
2482 } else if (sname == "CDF pp") {
2483 func=YJpsiCDFscaledPP;
2484 } else if (sname == "CDF pp 10") {
2485 func=YJpsiCDFscaledPP10;
2486 } else if (sname == "CDF pp 8.8") {
2487 func=YJpsiCDFscaledPP9;
2488 } else if (sname == "CDF pp 7" || sname == "CDF pp 7 flat pt") {
2489 func=YJpsiCDFscaledPP7;
2490 } else if (sname == "CDF pp 3.94") {
2491 func=YJpsiCDFscaledPP4;
2492 } else if (sname == "CDF pp 2.76") {
2493 func=YJpsiCDFscaledPP3;
2494 } else if (sname == "CDF pp 1.9") {
2495 func=YJpsiCDFscaledPP2;
2496 } else if (sname == "CDF pPb 8.8") {
2497 func=YJpsiCDFscaledPPb9;
2498 } else if (sname == "CDF Pbp 8.8") {
2499 func=YJpsiCDFscaledPbP9;
2500 } else if (sname == "CDF PbPb 3.94") {
2501 func=YJpsiCDFscaledPbPb4;
2502 } else if (sname == "Flat" || sname == "CDF pp 7 flat y") {
2511 case kUpsilonFamily:
2515 if (sname == "Vogt" || sname == "Vogt PbPb") {
2517 } else if (sname == "Vogt pp") {
2519 } else if (sname == "CDF scaled") {
2520 func=YUpsilonCDFscaled;
2521 } else if (sname == "CDF pp") {
2522 func=YUpsilonCDFscaledPP;
2523 } else if (sname == "CDF pp 10") {
2524 func=YUpsilonCDFscaledPP10;
2525 } else if (sname == "CDF pp 8.8") {
2526 func=YUpsilonCDFscaledPP9;
2527 } else if (sname == "CDF pp 7") {
2528 func=YUpsilonCDFscaledPP7;
2529 } else if (sname == "CDF pp 3.94") {
2530 func=YUpsilonCDFscaledPP4;
2531 } else if (sname == "CDF pPb 8.8") {
2532 func=YUpsilonCDFscaledPPb9;
2533 } else if (sname == "CDF Pbp 8.8") {
2534 func=YUpsilonCDFscaledPbP9;
2535 } else if (sname == "CDF PbPb 3.94") {
2536 func=YUpsilonCDFscaledPbPb4;
2537 } else if (sname == "Flat") {
2544 if (sname == "F0M0S0 pp") {
2545 func=YCharmF0M0S0PP;
2546 } else if (sname == "F1M0S0 pp") {
2547 func=YCharmF1M0S0PP;
2548 } else if (sname == "F2M0S0 pp") {
2549 func=YCharmF2M0S0PP;
2550 } else if (sname == "F0M1S0 pp") {
2551 func=YCharmF0M1S0PP;
2552 } else if (sname == "F0M2S0 pp") {
2553 func=YCharmF0M2S0PP;
2554 } else if (sname == "F0M0S1 pp") {
2555 func=YCharmF0M0S1PP;
2556 } else if (sname == "F0M0S2 pp") {
2557 func=YCharmF0M0S2PP;
2558 } else if (sname == "F0M0S3 pp") {
2559 func=YCharmF0M0S3PP;
2560 } else if (sname == "F0M0S4 pp") {
2561 func=YCharmF0M0S4PP;
2562 } else if (sname == "F0M0S5 pp") {
2563 func=YCharmF0M0S5PP;
2564 } else if (sname == "F0M0S6 pp") {
2565 func=YCharmF0M0S6PP;
2571 if (sname == "F0M0S0 pp") {
2572 func=YBeautyF0M0S0PP;
2573 } else if (sname == "F1M0S0 pp") {
2574 func=YBeautyF1M0S0PP;
2575 } else if (sname == "F2M0S0 pp") {
2576 func=YBeautyF2M0S0PP;
2577 } else if (sname == "F0M1S0 pp") {
2578 func=YBeautyF0M1S0PP;
2579 } else if (sname == "F0M2S0 pp") {
2580 func=YBeautyF0M2S0PP;
2581 } else if (sname == "F0M0S1 pp") {
2582 func=YBeautyF0M0S1PP;
2583 } else if (sname == "F0M0S2 pp") {
2584 func=YBeautyF0M0S2PP;
2585 } else if (sname == "F0M0S3 pp") {
2586 func=YBeautyF0M0S3PP;
2587 } else if (sname == "F0M0S4 pp") {
2588 func=YBeautyF0M0S4PP;
2589 } else if (sname == "F0M0S5 pp") {
2590 func=YBeautyF0M0S5PP;
2591 } else if (sname == "F0M0S6 pp") {
2592 func=YBeautyF0M0S6PP;
2598 if (sname == "2010 Pos PP") {
2599 func=YKaonPion2010PP;
2600 } else if (sname == "2010 Neg PP") {
2601 func=YKaonPion2010PP;
2607 if (sname == "2010 Pos PP") {
2608 func=YKaonPion2010PP;
2609 } else if (sname == "2010 Neg PP") {
2610 func=YKaonPion2010PP;
2623 printf("<AliGenMUONlib::GetY> unknown parametrisation\n");
2633 //____________________________________________________________
2634 Double_t AliGenMUONlib::PtChic0( const Double_t *px, const Double_t */*dummy*/)
2637 const Double_t kpt0 = 4.;
2638 const Double_t kxn = 3.6;
2641 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2642 return x/TMath::Power(pass1,kxn);
2644 Double_t AliGenMUONlib::PtChic1( const Double_t *px, const Double_t */*dummy*/)
2647 const Double_t kpt0 = 4.;
2648 const Double_t kxn = 3.6;
2651 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2652 return x/TMath::Power(pass1,kxn);
2654 Double_t AliGenMUONlib::PtChic2( const Double_t *px, const Double_t */*dummy*/)
2657 const Double_t kpt0 = 4.;
2658 const Double_t kxn = 3.6;
2661 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2662 return x/TMath::Power(pass1,kxn);
2664 Double_t AliGenMUONlib::PtChic( const Double_t *px, const Double_t */*dummy*/)
2667 const Double_t kpt0 = 4.;
2668 const Double_t kxn = 3.6;
2671 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2672 return x/TMath::Power(pass1,kxn);
2677 //____________________________________________________________
2678 Double_t AliGenMUONlib::YChic0(const Double_t *py, const Double_t */*dummy*/)
2681 const Double_t ky0 = 4.;
2682 const Double_t kb=1.;
2684 Double_t y=TMath::Abs(*py);
2689 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2693 Double_t AliGenMUONlib::YChic1(const Double_t *py, const Double_t */*dummy*/)
2696 const Double_t ky0 = 4.;
2697 const Double_t kb=1.;
2699 Double_t y=TMath::Abs(*py);
2704 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2708 Double_t AliGenMUONlib::YChic2(const Double_t *py, const Double_t */*dummy*/)
2711 const Double_t ky0 = 4.;
2712 const Double_t kb=1.;
2714 Double_t y=TMath::Abs(*py);
2719 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2723 Double_t AliGenMUONlib::YChic(const Double_t *py, const Double_t */*dummy*/)
2726 const Double_t ky0 = 4.;
2727 const Double_t kb=1.;
2729 Double_t y=TMath::Abs(*py);
2734 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2738 // particle composition
2740 Int_t AliGenMUONlib::IpChic0(TRandom *)
2746 Int_t AliGenMUONlib::IpChic1(TRandom *)
2751 Int_t AliGenMUONlib::IpChic2(TRandom *)
2753 // Chi_c2 prime composition
2756 Int_t AliGenMUONlib::IpChic(TRandom *)
2760 Float_t r = gRandom->Rndm();
2763 } else if( r < 0.377 ) {
2772 //_____________________________________________________________
2774 typedef Int_t (*GenFuncIp) (TRandom *);
2775 GenFuncIp AliGenMUONlib::GetIp(Int_t param, const char* tname) const
2777 // Return pointer to particle type parameterisation
2778 TString sname = TString(tname);
2804 case kUpsilonFamily:
2805 func=IpUpsilonFamily;
2820 if (sname == "2010 Pos PP") {
2822 } else if (sname == "2010 Neg PP") {
2829 if (sname == "2010 Pos PP") {
2831 } else if (sname == "2010 Neg PP") {
2851 printf("<AliGenMUONlib::GetIp> unknown parametrisation\n");
2858 Float_t AliGenMUONlib::Interpolate(Float_t x, Float_t* y, Float_t x0,
2863 // Neville's alorithm for interpolation
2869 // n: number of data points
2870 // no: order of polynom
2872 Float_t* c = new Float_t[n];
2873 Float_t* d = new Float_t[n];
2875 for (i = 0; i < n; i++) {
2880 Int_t ns = int((x - x0)/dx);
2884 for (m = 0; m < no; m++) {
2885 for (i = 0; i < n-m; i++) {
2886 Float_t ho = x0 + Float_t(i) * dx - x;
2887 Float_t hp = x0 + Float_t(i+m+1) * dx - x;
2888 Float_t w = c[i+1] - d[i];
2889 Float_t den = ho-hp;
2896 if (2*ns < (n-m-1)) {
2908 //=============================================================================
2909 Double_t AliGenMUONlib::PtPionPos2010PP(const Double_t *px, const Double_t* /*dummy*/)
2912 const Double_t par[3] = {2.27501, 0.116141, 5.59591};
2913 Double_t pt = px[0];
2914 Double_t m0 = TDatabasePDG::Instance()->GetParticle(211)->Mass();
2915 Double_t mt = TMath::Sqrt(m0*m0 + pt*pt);
2916 Double_t nc = par[1]*par[2];
2917 Double_t t1 = (par[2]-1.)/nc/(nc/(par[2]-2.)+m0);
2918 Double_t t2 = TMath::Power(1.+(mt-m0)/nc, -1.*par[2]);
2919 Double_t fn = par[0] * pt * t1 * t2;
2923 //=============================================================================
2924 Double_t AliGenMUONlib::PtPionNeg2010PP(const Double_t *px, const Double_t* /*dummy*/)
2927 const Double_t par[3] = {2.25188, 0.12176, 5.91166};
2928 Double_t pt = px[0];
2929 Double_t m0 = TDatabasePDG::Instance()->GetParticle(211)->Mass();
2930 Double_t mt = TMath::Sqrt(m0*m0 + pt*pt);
2931 Double_t nc = par[1]*par[2];
2932 Double_t t1 = (par[2]-1.)/nc/(nc/(par[2]-2.)+m0);
2933 Double_t t2 = TMath::Power(1.+(mt-m0)/nc, -1.*par[2]);
2934 Double_t fn = par[0] * pt * t1 * t2;
2938 //=============================================================================
2939 Double_t AliGenMUONlib::PtKaonPos2010PP(const Double_t *px, const Double_t* /*dummy*/)
2942 const Double_t par[3] = {0.279386, 0.195466, 6.59587};
2943 Double_t pt = px[0];
2944 Double_t m0 = TDatabasePDG::Instance()->GetParticle(321)->Mass();
2945 Double_t mt = TMath::Sqrt(m0*m0 + pt*pt);
2946 Double_t nc = par[1]*par[2];
2947 Double_t t1 = (par[2]-1.)/nc/(nc/(par[2]-2.)+m0);
2948 Double_t t2 = TMath::Power(1.+(mt-m0)/nc, -1.*par[2]);
2949 Double_t fn = par[0] * pt * t1 * t2;
2953 //=============================================================================
2954 Double_t AliGenMUONlib::PtKaonNeg2010PP(const Double_t *px, const Double_t* /*dummy*/)
2957 const Double_t par[3] = {0.278927, 0.189049, 6.43006};
2958 Double_t pt = px[0];
2959 Double_t m0 = TDatabasePDG::Instance()->GetParticle(321)->Mass();
2960 Double_t mt = TMath::Sqrt(m0*m0 + pt*pt);
2961 Double_t nc = par[1]*par[2];
2962 Double_t t1 = (par[2]-1.)/nc/(nc/(par[2]-2.)+m0);
2963 Double_t t2 = TMath::Power(1.+(mt-m0)/nc, -1.*par[2]);
2964 Double_t fn = par[0] * pt * t1 * t2;
2968 //=============================================================================
2969 Double_t AliGenMUONlib::YKaonPion2010PP(const Double_t *px, const Double_t* /*dummy*/)
2973 Double_t sigma = 2.35;
2974 Double_t kernal = y/2./sigma;
2975 Double_t fxn = TMath::Exp(-1.*kernal*kernal);
2979 //=============================================================================
2980 Int_t AliGenMUONlib::IpPionPos(TRandom *)
2986 //=============================================================================
2987 Int_t AliGenMUONlib::IpPionNeg(TRandom *)
2993 //=============================================================================
2994 Int_t AliGenMUONlib::IpKaonPos(TRandom *)
3000 //=============================================================================
3001 Int_t AliGenMUONlib::IpKaonNeg(TRandom *)