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
30 #include "AliGenMUONlib.h"
32 ClassImp(AliGenMUONlib)
35 Double_t AliGenMUONlib::PtPion(const Double_t *px, const Double_t* /*dummy*/)
38 // PT-PARAMETERIZATION CDF, PRL 61(88) 1819
39 // POWER LAW FOR PT > 500 MEV
40 // MT SCALING BELOW (T=160 MEV)
42 const Double_t kp0 = 1.3;
43 const Double_t kxn = 8.28;
44 const Double_t kxlim=0.5;
45 const Double_t kt=0.160;
46 const Double_t kxmpi=0.139;
48 Double_t y, y1, xmpi2, ynorm, a;
51 y1=TMath::Power(kp0/(kp0+kxlim),kxn);
53 ynorm=kb*(TMath::Exp(-sqrt(kxlim*kxlim+xmpi2)/kt));
56 y=a*TMath::Power(kp0/(kp0+x),kxn);
58 y=kb*TMath::Exp(-sqrt(x*x+xmpi2)/kt);
64 Double_t AliGenMUONlib::YPion( const Double_t *py, const Double_t */*dummy*/)
67 Double_t y=TMath::Abs(*py);
69 const Double_t ka = 7000.;
70 const Double_t kdy = 4.;
71 Double_t ex = y*y/(2*kdy*kdy);
72 return ka*TMath::Exp(-ex);
74 return 1.16526e+04+y*-3.79886e+03+y*y*4.31130e+02;
77 // particle composition
79 Int_t AliGenMUONlib::IpPion(TRandom *ran)
82 if (ran->Rndm() < 0.5) {
89 //____________________________________________________________
93 Double_t AliGenMUONlib::PtScal(Double_t pt, Int_t np)
95 // SCALING EN MASSE PAR RAPPORT A PTPI
96 // MASS PI,K,ETA,RHO,OMEGA,ETA',PHI
97 const Double_t khm[10] = {.13957,.493,.5488,.769,.7826,.958,1.02,0,0,0};
98 // VALUE MESON/PI AT 5 GEV
99 const Double_t kfmax[10]={1.,0.3,0.55,1.0,1.0,1.0,1.0,0,0,0};
101 Double_t f5=TMath::Power(((sqrt(100.018215)+2.)/(sqrt(100.+khm[np]*khm[np])+2.0)),12.3);
102 Double_t fmax2=f5/kfmax[np];
104 Double_t ptpion=100.*PtPion(&pt, (Double_t*) 0);
105 Double_t fmtscal=TMath::Power(((sqrt(pt*pt+0.018215)+2.)/
106 (sqrt(pt*pt+khm[np]*khm[np])+2.0)),12.3)/ fmax2;
107 return fmtscal*ptpion;
113 //____________________________________________________________
114 Double_t AliGenMUONlib::PtKaon( const Double_t *px, const Double_t */*dummy*/)
117 return PtScal(*px,2);
121 //____________________________________________________________
122 Double_t AliGenMUONlib::YKaon( const Double_t *py, const Double_t */*dummy*/)
125 Double_t y=TMath::Abs(*py);
127 const Double_t ka = 1000.;
128 const Double_t kdy = 4.;
130 Double_t ex = y*y/(2*kdy*kdy);
131 return ka*TMath::Exp(-ex);
134 return 1.16526e+04+y*-3.79886e+03+y*y*4.31130e+02;
137 // particle composition
139 Int_t AliGenMUONlib::IpKaon(TRandom *ran)
142 if (ran->Rndm() < 0.5) {
153 //____________________________________________________________
154 Double_t AliGenMUONlib::PtJpsiPP7000( const Double_t *px, const Double_t */*dummy*/)
159 // using ALICE data at 2.5<y<4, see arXiv:1103.2394
161 const Double_t kpt0 = 2.44;
162 const Double_t kxn = 3.9;
165 Double_t pass1 = 1.+0.36*(x/kpt0)*(x/kpt0);
166 return x/TMath::Power(pass1,kxn);
169 Double_t AliGenMUONlib::PtJpsiPP2760( const Double_t *px, const Double_t */*dummy*/)
174 // from the fit of RHIC + LHC data, see arXiv:1103.2394
176 const Double_t kpt0 = 2.31;
177 const Double_t kxn = 3.9;
180 Double_t pass1 = 1.+0.36*(x/kpt0)*(x/kpt0);
181 return x/TMath::Power(pass1,kxn);
184 Double_t AliGenMUONlib::PtJpsiPbPb2760( const Double_t *px, const Double_t *dummy)
188 // PbPb 2.76 TeV, for EKS98 with minimum bias shadowing factor 0.66
190 Double_t c[5] = {6.01022e-01, 4.70988e-02, -2.27917e-03, 3.09885e-05, 1.31955e-06};
195 while (j > 0) y = y * x + c[--j];
197 Double_t d = 1.+c[4]*TMath::Power(x,4);
198 return y/d * AliGenMUONlib::PtJpsiPP2760(px,dummy);
201 Double_t AliGenMUONlib::PtJpsi( const Double_t *px, const Double_t */*dummy*/)
204 const Double_t kpt0 = 4.;
205 const Double_t kxn = 3.6;
208 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
209 return x/TMath::Power(pass1,kxn);
212 Double_t AliGenMUONlib::PtJpsiCDFscaled( const Double_t *px, const Double_t */*dummy*/)
217 // scaled from CDF data at 2 TeV
218 // see S.Grigoryan, PWG3 Meeting, 27th Oct 2008
220 const Double_t kpt0 = 5.100;
221 const Double_t kxn = 4.102;
224 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
225 return x/TMath::Power(pass1,kxn);
228 Double_t AliGenMUONlib::PtJpsiCDFscaledPP( const Double_t *px, const Double_t */*dummy*/)
233 // scaled from CDF data at 2 TeV
235 const Double_t kpt0 = 5.630;
236 const Double_t kxn = 4.071;
239 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
240 return x/TMath::Power(pass1,kxn);
243 Double_t AliGenMUONlib::PtJpsiCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
248 // scaled from CDF data at 2 TeV
250 const Double_t kpt0 = 5.334;
251 const Double_t kxn = 4.071;
254 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
255 return x/TMath::Power(pass1,kxn);
258 Double_t AliGenMUONlib::PtJpsiCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
263 // scaled from CDF data at 2 TeV
265 const Double_t kpt0 = 5.245;
266 const Double_t kxn = 4.071;
269 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
270 return x/TMath::Power(pass1,kxn);
273 Double_t AliGenMUONlib::PtJpsiCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
278 // scaled from CDF data at 2 TeV
280 const Double_t kpt0 = 5.072;
281 const Double_t kxn = 4.071;
284 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
285 return x/TMath::Power(pass1,kxn);
288 Double_t AliGenMUONlib::PtJpsiCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
293 // scaled from CDF data at 2 TeV
295 const Double_t kpt0 = 4.647;
296 const Double_t kxn = 4.071;
299 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
300 return x/TMath::Power(pass1,kxn);
303 Double_t AliGenMUONlib::PtJpsiCDFscaledPP3( const Double_t *px, const Double_t */*dummy*/)
308 // scaled from CDF data at 1.9 TeV
310 const Double_t kpt0 = 4.435;
311 const Double_t kxn = 4.071;
314 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
315 return x/TMath::Power(pass1,kxn);
318 Double_t AliGenMUONlib::PtJpsiCDFscaledPP2( const Double_t *px, const Double_t */*dummy*/)
323 // fit of the CDF data at 1.9 TeV
325 const Double_t kpt0 = 4.233;
326 const Double_t kxn = 4.071;
329 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
330 return x/TMath::Power(pass1,kxn);
333 Double_t AliGenMUONlib::PtJpsiCDFscaledPPb9( const Double_t *px, const Double_t *dummy)
337 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
339 Double_t c[5] = {6.42774e-01, 1.86168e-02, -6.77296e-04, 8.93512e-06, 1.31586e-07};
344 while (j > 0) y = y * x + c[--j];
346 Double_t d = 1.+c[4]*TMath::Power(x,4);
347 return y/d * AliGenMUONlib::PtJpsiCDFscaledPP9(px,dummy);
350 Double_t AliGenMUONlib::PtJpsiCDFscaledPbP9( const Double_t *px, const Double_t *dummy)
354 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
356 Double_t c[5] = {8.58557e-01, 5.39791e-02, -4.75180e-03, 2.49463e-04, 5.52396e-05};
361 while (j > 0) y = y * x + c[--j];
363 Double_t d = 1.+c[4]*TMath::Power(x,4);
364 return y/d * AliGenMUONlib::PtJpsiCDFscaledPP9(px,dummy);
367 Double_t AliGenMUONlib::PtJpsiCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
371 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.66
373 Double_t c[5] = {6.01022e-01, 4.70988e-02, -2.27917e-03, 3.09885e-05, 1.31955e-06};
378 while (j > 0) y = y * x + c[--j];
380 Double_t d = 1.+c[4]*TMath::Power(x,4);
381 return y/d * AliGenMUONlib::PtJpsiCDFscaledPP4(px,dummy);
384 Double_t AliGenMUONlib::PtJpsiFlat( const Double_t */*px*/, const Double_t */*dummy*/ )
389 Double_t AliGenMUONlib::PtJpsiPbPb( const Double_t *px, const Double_t */*dummy*/)
396 // mc = 1.4 GeV, pt-kick 1 GeV
400 -2.13098e+00, 9.46552e+00, -5.06799e+00, 1.27260e+00,
401 -1.83806e-01, 1.55853e-02, -7.23241e-04, 1.42105e-05
408 while (j > 0) y = y * x +c[--j];
409 y = x * TMath::Exp(y);
416 Double_t AliGenMUONlib::PtJpsiBPbPb( const Double_t *px, const Double_t */*dummy*/)
420 Double_t x0 = 4.0384;
424 Double_t y = x / TMath::Power((1. + (x/x0)*(x/x0)), n);
430 Double_t AliGenMUONlib::PtJpsiPP( const Double_t *px, const Double_t */*dummy*/)
437 // mc = 1.4 GeV, pt-kick 1 GeV
440 Float_t c[4] = {8.47471e+00, -1.93567e+00, 1.50271e-01, -5.51212e-03};
446 while (j > 0) y = y * x +c[--j];
447 y = x * TMath::Exp(y);
456 //____________________________________________________________
457 Double_t AliGenMUONlib::YJpsiPP7000( const Double_t *px, const Double_t */*dummy*/)
462 // from the fit of RHIC + LHC data, see arXiv:1103.2394
464 Double_t x = px[0]/7.72;
466 Double_t y = TMath::Exp(-x/0.383/0.383/2);
471 Double_t AliGenMUONlib::YJpsiPP2760( const Double_t *px, const Double_t */*dummy*/)
476 // from the fit of RHIC + LHC data, see arXiv:1103.2394
478 Double_t x = px[0]/6.79;
480 Double_t y = TMath::Exp(-x/0.383/0.383/2);
485 Double_t AliGenMUONlib::YJpsiPbPb2760( const Double_t *px, const Double_t *dummy)
489 // PbPb 2.76 TeV, for EKS98 with minimum bias shadowing factor 0.66
491 Double_t c[4] = {5.95228e-01, 9.45069e-03, 2.44710e-04, -1.32894e-05};
492 Double_t x = px[0]*px[0];
496 while (j > 0) y = y * x + c[--j];
499 return y * AliGenMUONlib::YJpsiPP2760(px,dummy);
502 Double_t AliGenMUONlib::YJpsi(const Double_t *py, const Double_t */*dummy*/)
505 const Double_t ky0 = 4.;
506 const Double_t kb=1.;
508 Double_t y=TMath::Abs(*py);
513 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
517 Double_t AliGenMUONlib::YJpsiFlat( const Double_t */*py*/, const Double_t */*dummy*/ )
523 Double_t AliGenMUONlib::YJpsiPbPb( const Double_t *px, const Double_t */*dummy*/)
533 // mc = 1.4 GeV, pt-kick 1 GeV
535 Double_t c[5] = {-6.03425e+02, 4.98257e+02, -1.38794e+02, 1.62209e+01, -6.85955e-01};
536 Double_t x = TMath::Abs(px[0]);
544 while (j > 0) y = y * x + c[--j];
552 Double_t AliGenMUONlib::YJpsiCDFscaled( const Double_t *px, const Double_t* dummy)
555 return AliGenMUONlib::YJpsiPbPb(px, dummy);
558 Double_t AliGenMUONlib::YJpsiCDFscaledPP( const Double_t *px, const Double_t* dummy)
561 return AliGenMUONlib::YJpsiPP(px, dummy);
564 Double_t AliGenMUONlib::YJpsiCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
569 // scaled from YJpsiPP(14 TeV) using 10 TeV / 14 TeV ratio of y-spectra in LO pQCD.
570 // see S.Grigoryan, PWG3 Meeting, 27th Oct 2008
573 Double_t c[5] = {2.46681e+01, 8.91486e+01, -3.21227e+01, 3.63075e+00, -1.32047e-01};
575 Double_t x = TMath::Abs(px[0]);
579 y = 98.523 - 1.3664 * x * x;
580 } else if (x < 7.5) {
583 while (j > 0) y = y * x + c[--j];
593 Double_t AliGenMUONlib::YJpsiCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
598 // rescaling of YJpsiPP(14 TeV) using 8.8 TeV / 14 TeV ratio of y-spectra in LO QCD
600 Double_t c[5] = {3.33882e+02, -1.30980e+02, 2.59082e+01, -3.08935e+00, 1.56375e-01};
601 Double_t x = TMath::Abs(px[0]);
605 y = 99.236 - 1.5498 * x * x;
606 } else if (x < 7.4) {
609 while (j > 0) y = y * x + c[--j];
619 Double_t AliGenMUONlib::YJpsiCDFscaledPP9dummy(Double_t px)
621 return AliGenMUONlib::YJpsiCDFscaledPP9(&px, (Double_t*) 0);
624 Double_t AliGenMUONlib::YJpsiCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
629 // scaled from YJpsiPP(14 TeV) using 7 TeV / 14 TeV ratio of y-spectra in LO pQCD.
632 Double_t c[5] = {6.71181e+02, -3.69240e+02, 8.89644e+01, -1.04937e+01, 4.80959e-01};
634 Double_t x = TMath::Abs(px[0]);
638 y = 100.78 - 1.8353 * x * x;
639 } else if (x < 7.3) {
642 while (j > 0) y = y * x + c[--j];
652 Double_t AliGenMUONlib::YJpsiCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
657 // rescaling of YJpsiPP(14 TeV) using 3.94 TeV / 14 TeV ratio of y-spectra in LO QCD
659 Double_t c[5] = {4.00785e+02, -1.41159e+01, -3.28599e+01, 5.53048e+00, -2.45151e-01};
660 Double_t x = TMath::Abs(px[0]);
664 y = 107.389 - 2.7454 * x * x;
665 } else if (x < 7.0) {
668 while (j > 0) y = y * x + c[--j];
678 Double_t AliGenMUONlib::YJpsiCDFscaledPP3( const Double_t *px, const Double_t *dummy)
681 return AliGenMUONlib::YJpsiPP2760(px, dummy);
684 Double_t AliGenMUONlib::YJpsiCDFscaledPP2( const Double_t *px, const Double_t */*dummy*/)
689 // from the fit of RHIC + LHC data, see arXiv:1103.2394
691 Double_t x = px[0]/6.42;
693 Double_t y = TMath::Exp(-x/0.383/0.383/2);
698 Double_t AliGenMUONlib::YJpsiPP( const Double_t *px, const Double_t */*dummy*/)
708 // mc = 1.4 GeV, pt-kick 1 GeV
711 Double_t c[5] = {1.38532e+00, 1.00596e+02, -3.46378e+01, 3.94172e+00, -1.48319e-01};
712 Double_t x = TMath::Abs(px[0]);
716 y = 96.455 - 0.8483 * x * x;
717 } else if (x < 7.9) {
720 while (j > 0) y = y * x + c[--j];
728 Double_t AliGenMUONlib::YJpsiCDFscaledPPb9( const Double_t *px, const Double_t */*dummy*/)
732 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
734 Double_t c[7] = {7.52296e-01, 2.49917e-02, 3.36500e-03, 1.91187e-03, 2.92154e-04,
735 -4.16509e-05,-7.62709e-06};
737 Double_t x = px[0] + 0.47; // rapidity shift
740 while (j > 0) y = y * x + c[--j];
743 return y * AliGenMUONlib::YJpsiCDFscaledPP9dummy(x);
746 Double_t AliGenMUONlib::YJpsiCDFscaledPbP9( const Double_t *px, const Double_t */*dummy*/)
750 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
752 Double_t c[7] = {7.52296e-01, 2.49917e-02, 3.36500e-03, 1.91187e-03, 2.92154e-04,
753 -4.16509e-05,-7.62709e-06};
755 Double_t x = -px[0] + 0.47; // rapidity shift
758 while (j > 0) y = y * x + c[--j];
761 return y * AliGenMUONlib::YJpsiCDFscaledPP9dummy(x);
764 Double_t AliGenMUONlib::YJpsiCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
768 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.66
770 Double_t c[4] = {5.95228e-01, 9.45069e-03, 2.44710e-04, -1.32894e-05};
771 Double_t x = px[0]*px[0];
775 while (j > 0) y = y * x + c[--j];
778 return y * AliGenMUONlib::YJpsiCDFscaledPP4(px,dummy);
781 Double_t AliGenMUONlib::YJpsiBPbPb( const Double_t *px, const Double_t */*dummy*/)
785 // J/Psi from B->J/Psi X
790 Double_t c[7] = {7.37025e-02, 0., -2.94487e-03, 0., 6.07953e-06, 0., 5.39219e-07};
792 Double_t x = TMath::Abs(px[0]);
800 while (j > 0) y = y * x + c[--j];
808 // particle composition
810 Int_t AliGenMUONlib::IpJpsi(TRandom *)
815 Int_t AliGenMUONlib::IpPsiP(TRandom *)
817 // Psi prime composition
820 Int_t AliGenMUONlib::IpJpsiFamily(TRandom *)
824 Float_t r = gRandom->Rndm();
839 //____________________________________________________________
840 Double_t AliGenMUONlib::PtUpsilon( const Double_t *px, const Double_t */*dummy*/ )
843 const Double_t kpt0 = 5.3;
844 const Double_t kxn = 2.5;
847 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
848 return x/TMath::Power(pass1,kxn);
851 Double_t AliGenMUONlib::PtUpsilonCDFscaled( const Double_t *px, const Double_t */*dummy*/ )
854 const Double_t kpt0 = 7.753;
855 const Double_t kxn = 3.042;
858 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
859 return x/TMath::Power(pass1,kxn);
862 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP( const Double_t *px, const Double_t */*dummy*/ )
868 // scaled from CDF data at 2 TeV
870 const Double_t kpt0 = 8.610;
871 const Double_t kxn = 3.051;
874 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
875 return x/TMath::Power(pass1,kxn);
878 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
884 // scaled from CDF data at 2 TeV
886 const Double_t kpt0 = 8.235;
887 const Double_t kxn = 3.051;
890 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
891 return x/TMath::Power(pass1,kxn);
894 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
899 // scaled from CDF data at 2 TeV
901 const Double_t kpt0 = 8.048;
902 const Double_t kxn = 3.051;
905 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
906 return x/TMath::Power(pass1,kxn);
909 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
915 // scaled from CDF data at 2 TeV
917 const Double_t kpt0 = 7.817;
918 const Double_t kxn = 3.051;
921 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
922 return x/TMath::Power(pass1,kxn);
925 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
930 // scaled from CDF data at 2 TeV
932 const Double_t kpt0 = 7.189;
933 const Double_t kxn = 3.051;
936 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
937 return x/TMath::Power(pass1,kxn);
940 Double_t AliGenMUONlib::PtUpsilonCDFscaledPPb9( const Double_t *px, const Double_t *dummy)
944 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
946 Double_t c[5] = {7.64952e-01, 1.12501e-04, 4.96038e-04, -3.03198e-05, 3.74035e-06};
951 while (j > 0) y = y * x + c[--j];
953 Double_t d = 1.+c[4]*TMath::Power(x,4);
954 return y/d * AliGenMUONlib::PtUpsilonCDFscaledPP9(px,dummy);
957 Double_t AliGenMUONlib::PtUpsilonCDFscaledPbP9( const Double_t *px, const Double_t *dummy)
961 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
963 Double_t c[5] = {1.09881e+00, 3.08329e-03, -2.00356e-04, 8.28991e-06, 2.52576e-06};
968 while (j > 0) y = y * x + c[--j];
970 Double_t d = 1.+c[4]*TMath::Power(x,4);
971 return y/d * AliGenMUONlib::PtUpsilonCDFscaledPP9(px,dummy);
974 Double_t AliGenMUONlib::PtUpsilonCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
978 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.85
980 Double_t c[5] = {8.65872e-01, 2.05465e-03, 2.56063e-04, -1.65598e-05, 2.29209e-06};
985 while (j > 0) y = y * x + c[--j];
987 Double_t d = 1.+c[4]*TMath::Power(x,4);
988 return y/d * AliGenMUONlib::PtUpsilonCDFscaledPP4(px,dummy);
991 Double_t AliGenMUONlib::PtUpsilonFlat( const Double_t */*px*/, const Double_t */*dummy*/ )
996 Double_t AliGenMUONlib::PtUpsilonPbPb( const Double_t *px, const Double_t */*dummy*/)
1005 // mc = 1.4 GeV, pt-kick 1 GeV
1009 -1.03488e+01, 1.28065e+01, -6.60500e+00, 1.66140e+00,
1010 -2.34293e-01, 1.86925e-02, -7.80708e-04, 1.30610e-05
1016 while (j > 0) y = y * x +c[--j];
1017 y = x * TMath::Exp(y);
1024 Double_t AliGenMUONlib::PtUpsilonPP( const Double_t *px, const Double_t */*dummy*/)
1033 // mc = 1.4 GeV, pt-kick 1 GeV
1036 Double_t c[8] = {-7.93955e+00, 1.06306e+01, -5.21392e+00, 1.19703e+00,
1037 -1.45718e-01, 8.95151e-03, -2.04806e-04, -1.13053e-06};
1043 while (j > 0) y = y * x +c[--j];
1044 y = x * TMath::Exp(y);
1054 //____________________________________________________________
1055 Double_t AliGenMUONlib::YUpsilon(const Double_t *py, const Double_t */*dummy*/)
1058 const Double_t ky0 = 3.;
1059 const Double_t kb=1.;
1061 Double_t y=TMath::Abs(*py);
1066 yu=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
1071 Double_t AliGenMUONlib::YUpsilonPbPb( const Double_t *px, const Double_t */*dummy*/)
1081 // mc = 1.4 GeV, pt-kick 1 GeV
1084 Double_t c[7] = {3.40036e-01, -3.98882e-07, -4.48398e-03, 8.46411e-08, -6.10854e-04,
1085 -2.99753e-09, 1.28895e-05};
1086 Double_t x = TMath::Abs(px[0]);
1087 if (x > 5.55) return 0.;
1089 Double_t y = c[j = 6];
1090 while (j > 0) y = y * x +c[--j];
1094 Double_t AliGenMUONlib::YUpsilonCDFscaled( const Double_t *px, const Double_t *dummy)
1097 return AliGenMUONlib::YUpsilonPbPb(px, dummy);
1101 Double_t AliGenMUONlib::YUpsilonCDFscaledPP( const Double_t *px, const Double_t *dummy)
1104 return AliGenMUONlib::YUpsilonPP(px, dummy);
1108 Double_t AliGenMUONlib::YUpsilonFlat( const Double_t */*px*/, const Double_t */*dummy*/)
1115 Double_t AliGenMUONlib::YUpsilonCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
1120 // scaled from YUpsilonPP(14 TeV) using 10 TeV / 14 TeV ratio of y-spectra in LO pQCD.
1121 // see S.Grigoryan, PWG3 Meeting, 27th Oct 2008
1123 Double_t c[4] = {1., -2.17877e-02, -6.52830e-04, 1.40578e-05};
1124 Double_t x = TMath::Abs(px[0]);
1125 if (x > 6.1) return 0.;
1127 Double_t y = c[j = 3];
1128 while (j > 0) y = y * x*x +c[--j];
1132 Double_t AliGenMUONlib::YUpsilonCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
1137 // rescaling of YUpsilonPP(14 TeV) using 8.8 TeV / 14 TeV ratio of y-spectra in LO QCD
1139 Double_t c[4] = {1., -2.37621e-02, -6.29610e-04, 1.47976e-05};
1140 Double_t x = TMath::Abs(px[0]);
1141 if (x > 6.1) return 0.;
1143 Double_t y = c[j = 3];
1144 while (j > 0) y = y * x*x +c[--j];
1148 Double_t AliGenMUONlib::YUpsilonCDFscaledPP9dummy(Double_t px)
1150 return AliGenMUONlib::YUpsilonCDFscaledPP9(&px, (Double_t*) 0);
1153 Double_t AliGenMUONlib::YUpsilonCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
1158 // scaled from YUpsilonPP(14 TeV) using 7 TeV / 14 TeV ratio of y-spectra in LO pQCD.
1160 Double_t c[4] = {1., -2.61009e-02, -6.83937e-04, 1.78451e-05};
1161 Double_t x = TMath::Abs(px[0]);
1162 if (x > 6.0) return 0.;
1164 Double_t y = c[j = 3];
1165 while (j > 0) y = y * x*x +c[--j];
1169 Double_t AliGenMUONlib::YUpsilonCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
1174 // rescaling of YUpsilonPP(14 TeV) using 3.94 TeV / 14 TeV ratio of y-spectra in LO QCD
1176 Double_t c[4] = {1., -3.91924e-02, -4.26184e-04, 2.10914e-05};
1177 Double_t x = TMath::Abs(px[0]);
1178 if (x > 5.7) return 0.;
1180 Double_t y = c[j = 3];
1181 while (j > 0) y = y * x*x +c[--j];
1186 Double_t AliGenMUONlib::YUpsilonPP( const Double_t *px, const Double_t */*dummy*/)
1196 // mc = 1.4 GeV, pt-kick 1 GeV
1198 Double_t c[7] = {8.91936e-01, -6.46645e-07, -1.52774e-02, 4.28677e-08, -7.01517e-04,
1199 -6.20539e-10, 1.29943e-05};
1200 Double_t x = TMath::Abs(px[0]);
1201 if (x > 6.2) return 0.;
1203 Double_t y = c[j = 6];
1204 while (j > 0) y = y * x +c[--j];
1208 Double_t AliGenMUONlib::YUpsilonCDFscaledPPb9( const Double_t *px, const Double_t */*dummy*/)
1212 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
1214 Double_t c[7] = {8.71829e-01, 4.77467e-02, 8.09671e-03, 6.45294e-04, -2.15730e-04,
1215 -4.67538e-05,-2.11683e-06};
1217 Double_t x = px[0] + 0.47; // rapidity shift
1220 while (j > 0) y = y * x + c[--j];
1223 return y * AliGenMUONlib::YUpsilonCDFscaledPP9dummy(x);
1226 Double_t AliGenMUONlib::YUpsilonCDFscaledPbP9( const Double_t *px, const Double_t */*dummy*/)
1230 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
1232 Double_t c[7] = {8.71829e-01, 4.77467e-02, 8.09671e-03, 6.45294e-04, -2.15730e-04,
1233 -4.67538e-05,-2.11683e-06};
1235 Double_t x = -px[0] + 0.47; // rapidity shift
1238 while (j > 0) y = y * x + c[--j];
1241 return y * AliGenMUONlib::YUpsilonCDFscaledPP9dummy(x);
1244 Double_t AliGenMUONlib::YUpsilonCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
1248 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.85
1250 Double_t c[4] = {8.27837e-01, 1.70115e-02, -1.26046e-03, 1.52091e-05};
1251 Double_t x = px[0]*px[0];
1255 while (j > 0) y = y * x + c[--j];
1258 return y * AliGenMUONlib::YUpsilonCDFscaledPP4(px,dummy);
1262 // particle composition
1264 Int_t AliGenMUONlib::IpUpsilon(TRandom *)
1269 Int_t AliGenMUONlib::IpUpsilonP(TRandom *)
1274 Int_t AliGenMUONlib::IpUpsilonPP(TRandom *)
1279 Int_t AliGenMUONlib::IpUpsilonFamily(TRandom *)
1283 Float_t r = gRandom->Rndm();
1287 } else if (r < 0.896) {
1300 // pt-distribution (by scaling of pion distribution)
1301 //____________________________________________________________
1302 Double_t AliGenMUONlib::PtPhi( const Double_t *px, const Double_t */*dummy*/)
1305 return PtScal(*px,7);
1308 Double_t AliGenMUONlib::YPhi( const Double_t *px, const Double_t */*dummy*/)
1312 return YJpsi(px,dum);
1314 // particle composition
1316 Int_t AliGenMUONlib::IpPhi(TRandom *)
1326 // pt-distribution (by scaling of pion distribution)
1327 //____________________________________________________________
1328 Double_t AliGenMUONlib::PtOmega( const Double_t *px, const Double_t */*dummy*/)
1331 return PtScal(*px,5);
1334 Double_t AliGenMUONlib::YOmega( const Double_t *px, const Double_t */*dummy*/)
1338 return YJpsi(px,dum);
1340 // particle composition
1342 Int_t AliGenMUONlib::IpOmega(TRandom *)
1344 // Omega composition
1353 // pt-distribution (by scaling of pion distribution)
1354 //____________________________________________________________
1355 Double_t AliGenMUONlib::PtEta( const Double_t *px, const Double_t */*dummy*/)
1358 return PtScal(*px,3);
1361 Double_t AliGenMUONlib::YEta( const Double_t *px, const Double_t */*dummy*/)
1365 return YJpsi(px,dum);
1367 // particle composition
1369 Int_t AliGenMUONlib::IpEta(TRandom *)
1380 //____________________________________________________________
1381 Double_t AliGenMUONlib::PtCharm( const Double_t *px, const Double_t */*dummy*/)
1384 const Double_t kpt0 = 2.25;
1385 const Double_t kxn = 3.17;
1388 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1389 return x/TMath::Power(pass1,kxn);
1392 Double_t AliGenMUONlib::PtCharmCentral( const Double_t *px, const Double_t */*dummy*/)
1395 const Double_t kpt0 = 2.12;
1396 const Double_t kxn = 2.78;
1399 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1400 return x/TMath::Power(pass1,kxn);
1402 Double_t AliGenMUONlib::PtCharmF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1404 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1405 // PtCharmFiMjSkPP = PtCharmF0M0S0PP * (dN(i,j,k)/dpt / dN(0,0,0)/dpt)_MNR
1406 // i=0,1,2; j=0,1,2; k=0,1,...,6
1407 // dN(i,j,k)/dpt - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1408 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1409 // calculations for the following inputs:
1410 // Peterson fragmentation function (F) with \epsilon_c = 0.02, 0.002 & 0.11
1411 // for i=0,1 & 2 respectively; quark mass (M) of 1.5, 1.3 & 1.7 GeV
1412 // for j=0,1 & 2 respectively;
1413 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1414 // with a/b = 1/1, 1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2
1415 // for k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1416 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1417 // June 2008, Smbat.Grigoryan@cern.ch
1420 // Pythia6.214 (kCharmppMNRwmi, PDF = CTEQ5L, quark mass = 1.2 GeV, PtHard > 2.76 GeV/c)
1421 // for pp collisions at 14 TeV with one c-cbar pair per event.
1422 // Corresponding NLO total cross section is 5.68 mb
1425 const Double_t kpt0 = 2.2930;
1426 const Double_t kxn = 3.1196;
1427 Double_t c[3]={-5.2180e-01,1.8753e-01,2.8669e-02};
1430 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1431 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1433 Double_t AliGenMUONlib::PtCharmF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1436 // Corresponding NLO total cross section is 6.06 mb
1437 const Double_t kpt0 = 2.8669;
1438 const Double_t kxn = 3.1044;
1439 Double_t c[3]={-4.6714e-01,1.5005e-01,4.5003e-02};
1442 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1443 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1445 Double_t AliGenMUONlib::PtCharmF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1448 // Corresponding NLO total cross section is 6.06 mb
1449 const Double_t kpt0 = 1.8361;
1450 const Double_t kxn = 3.2966;
1451 Double_t c[3]={-6.1550e-01,2.6498e-01,1.0728e-02};
1454 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1455 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1457 Double_t AliGenMUONlib::PtCharmF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1460 // Corresponding NLO total cross section is 7.69 mb
1461 const Double_t kpt0 = 2.1280;
1462 const Double_t kxn = 3.1397;
1463 Double_t c[3]={-5.4021e-01,2.0944e-01,2.5211e-02};
1466 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1467 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1469 Double_t AliGenMUONlib::PtCharmF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1472 // Corresponding NLO total cross section is 4.81 mb
1473 const Double_t kpt0 = 2.4579;
1474 const Double_t kxn = 3.1095;
1475 Double_t c[3]={-5.1497e-01,1.7532e-01,3.2429e-02};
1478 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1479 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1481 Double_t AliGenMUONlib::PtCharmF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1484 // Corresponding NLO total cross section is 14.09 mb
1485 const Double_t kpt0 = 2.1272;
1486 const Double_t kxn = 3.1904;
1487 Double_t c[3]={-4.6088e-01,2.1918e-01,2.3055e-02};
1490 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1491 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1493 Double_t AliGenMUONlib::PtCharmF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
1496 // Corresponding NLO total cross section is 1.52 mb
1497 const Double_t kpt0 = 2.8159;
1498 const Double_t kxn = 3.0857;
1499 Double_t c[3]={-6.4691e-01,2.0289e-01,2.4922e-02};
1502 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1503 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1505 Double_t AliGenMUONlib::PtCharmF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
1508 // Corresponding NLO total cross section is 3.67 mb
1509 const Double_t kpt0 = 2.7297;
1510 const Double_t kxn = 3.3019;
1511 Double_t c[3]={-6.2216e-01,1.9031e-01,1.5341e-02};
1514 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1515 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1517 Double_t AliGenMUONlib::PtCharmF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
1520 // Corresponding NLO total cross section is 3.38 mb
1521 const Double_t kpt0 = 2.3894;
1522 const Double_t kxn = 3.1075;
1523 Double_t c[3]={-4.9742e-01,1.7032e-01,2.5994e-02};
1526 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1527 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1529 Double_t AliGenMUONlib::PtCharmF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
1532 // Corresponding NLO total cross section is 10.37 mb
1533 const Double_t kpt0 = 2.0187;
1534 const Double_t kxn = 3.3011;
1535 Double_t c[3]={-3.9869e-01,2.9248e-01,1.1763e-02};
1538 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1539 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1541 Double_t AliGenMUONlib::PtCharmF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
1544 // Corresponding NLO total cross section is 7.22 mb
1545 const Double_t kpt0 = 2.1089;
1546 const Double_t kxn = 3.1848;
1547 Double_t c[3]={-4.6275e-01,1.8114e-01,2.1363e-02};
1550 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1551 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1555 Double_t AliGenMUONlib::YCharm( const Double_t *px, const Double_t */*dummy*/)
1557 // Charm y :: Carrer & Dainese : ALICE-INT-2003-019 v.3 (hep-ph/0311225)
1558 // Pythia tuned to reproduce the distribution given by the HVQMNR program based on NLO calculations (pQCD)
1559 // shadowing + kt broadening
1562 Double_t c[2]={-2.42985e-03,-2.31001e-04};
1563 Double_t y=1+(c[0]*TMath::Power(x,2))+(c[1]*TMath::Power(x,4));
1566 if (TMath::Abs(x)>8) {
1570 ycharm=TMath::Power(y,3);
1575 Double_t AliGenMUONlib::YCharmF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1577 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1578 // YCharmFiMjSkPP = YCharmF0M0S0PP * (dN(i,j,k)/dy / dN(0,0,0)/dy)_MNR
1579 // i=0,1,2; j=0,1,2; k=0,1,...,6
1580 // dN(i,j,k)/dy - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1581 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1582 // calculations for the following inputs:
1583 // Peterson fragmentation function (F) with \epsilon_c = 0.02, 0.002 & 0.11
1584 // for i=0,1 & 2 respectively; quark mass (M) of 1.5, 1.3 & 1.7 GeV
1585 // for j=0,1 & 2 respectively;
1586 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1587 // with a/b = 1/1,1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2 for
1588 // k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1589 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1590 // June 2008, Smbat.Grigoryan@cern.ch
1593 // Pythia6.214 (kCharmppMNRwmi, PDF = CTEQ5L, quark mass = 1.2 GeV, PtHard > 2.76 GeV/c)
1594 // for pp collisions at 14 TeV with one c-cbar pair per event.
1595 // Corresponding NLO total cross section is 5.68 mb
1598 Double_t c[2]={7.0909e-03,6.1967e-05};
1599 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1602 if (TMath::Abs(x)>9) {
1606 ycharm=TMath::Power(y,3);
1611 Double_t AliGenMUONlib::YCharmF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1614 // Corresponding NLO total cross section is 6.06 mb
1616 Double_t c[2]={6.9707e-03,6.0971e-05};
1617 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1620 if (TMath::Abs(x)>9) {
1624 ycharm=TMath::Power(y,3);
1629 Double_t AliGenMUONlib::YCharmF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1632 // Corresponding NLO total cross section is 6.06 mb
1634 Double_t c[2]={7.1687e-03,6.5303e-05};
1635 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1638 if (TMath::Abs(x)>9) {
1642 ycharm=TMath::Power(y,3);
1647 Double_t AliGenMUONlib::YCharmF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1650 // Corresponding NLO total cross section is 7.69 mb
1652 Double_t c[2]={5.9090e-03,7.1854e-05};
1653 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1656 if (TMath::Abs(x)>9) {
1660 ycharm=TMath::Power(y,3);
1665 Double_t AliGenMUONlib::YCharmF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1668 // Corresponding NLO total cross section is 4.81 mb
1670 Double_t c[2]={8.0882e-03,5.5872e-05};
1671 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1674 if (TMath::Abs(x)>9) {
1678 ycharm=TMath::Power(y,3);
1683 Double_t AliGenMUONlib::YCharmF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1686 // Corresponding NLO total cross section is 14.09 mb
1688 Double_t c[2]={7.2520e-03,6.2691e-05};
1689 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1692 if (TMath::Abs(x)>9) {
1696 ycharm=TMath::Power(y,3);
1701 Double_t AliGenMUONlib::YCharmF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
1704 // Corresponding NLO total cross section is 1.52 mb
1706 Double_t c[2]={1.1040e-04,1.4498e-04};
1707 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1710 if (TMath::Abs(x)>9) {
1714 ycharm=TMath::Power(y,3);
1719 Double_t AliGenMUONlib::YCharmF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
1722 // Corresponding NLO total cross section is 3.67 mb
1724 Double_t c[2]={-3.1328e-03,1.8270e-04};
1725 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1728 if (TMath::Abs(x)>9) {
1732 ycharm=TMath::Power(y,3);
1737 Double_t AliGenMUONlib::YCharmF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
1740 // Corresponding NLO total cross section is 3.38 mb
1742 Double_t c[2]={7.0865e-03,6.2532e-05};
1743 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1746 if (TMath::Abs(x)>9) {
1750 ycharm=TMath::Power(y,3);
1755 Double_t AliGenMUONlib::YCharmF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
1758 // Corresponding NLO total cross section is 10.37 mb
1760 Double_t c[2]={7.7070e-03,5.3533e-05};
1761 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1764 if (TMath::Abs(x)>9) {
1768 ycharm=TMath::Power(y,3);
1773 Double_t AliGenMUONlib::YCharmF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
1776 // Corresponding NLO total cross section is 7.22 mb
1778 Double_t c[2]={7.9195e-03,5.3823e-05};
1779 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1782 if (TMath::Abs(x)>9) {
1786 ycharm=TMath::Power(y,3);
1793 Int_t AliGenMUONlib::IpCharm(TRandom *ran)
1795 // Charm composition
1799 random = ran->Rndm();
1800 // Taux de production Carrer & Dainese : ALICE-INT-2003-019 v.3
1801 // >>>>> cf. tab 4 p 11
1803 if (random < 0.30) {
1805 } else if (random < 0.60) {
1807 } else if (random < 0.70) {
1809 } else if (random < 0.80) {
1811 } else if (random < 0.86) {
1813 } else if (random < 0.92) {
1815 } else if (random < 0.96) {
1829 //____________________________________________________________
1830 Double_t AliGenMUONlib::PtBeauty( const Double_t *px, const Double_t */*dummy*/)
1833 const Double_t kpt0 = 6.53;
1834 const Double_t kxn = 3.59;
1837 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1838 return x/TMath::Power(pass1,kxn);
1841 Double_t AliGenMUONlib::PtBeautyCentral( const Double_t *px, const Double_t */*dummy*/)
1844 const Double_t kpt0 = 6.14;
1845 const Double_t kxn = 2.93;
1848 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1849 return x/TMath::Power(pass1,kxn);
1851 Double_t AliGenMUONlib::PtBeautyF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1853 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1854 // PtBeautyFiMjSkPP = PtBeautyF0M0S0PP * (dN(i,j,k)/dpt / dN(0,0,0)/dpt)_MNR
1855 // i=0,1,2; j=0,1,2; k=0,1,...,6
1856 // dN(i,j,k)/dpt - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1857 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1858 // calculations for the following inputs:
1859 // Peterson fragmentation function (F) with \epsilon_b = 0.001, 0.0002 & 0.004
1860 // for i=0,1 & 2 respectively; quark mass (M) of 4.75, 4.5 & 5.0 GeV
1861 // for j=0,1 & 2 respectively;
1862 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1863 // with a/b = 1/1, 1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2 for
1864 // k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1865 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1866 // June 2008, Smbat.Grigoryan@cern.ch
1869 // Pythia6.214 (kBeautyppMNRwmi, PDF = CTEQ5L, quark mass = 4.75 GeV, PtHard > 2.76 GeV/c)
1870 // for pp collisions at 14 TeV with one b-bbar pair per event.
1871 // Corresponding NLO total cross section is 0.494 mb
1873 const Double_t kpt0 = 8.0575;
1874 const Double_t kxn = 3.1921;
1877 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1878 return x/TMath::Power(pass1,kxn);
1880 Double_t AliGenMUONlib::PtBeautyF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1883 // Corresponding NLO total cross section is 0.445 mb
1884 const Double_t kpt0 = 8.6239;
1885 const Double_t kxn = 3.2911;
1888 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1889 return x/TMath::Power(pass1,kxn);
1891 Double_t AliGenMUONlib::PtBeautyF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1894 // Corresponding NLO total cross section is 0.445 mb
1895 const Double_t kpt0 = 7.3367;
1896 const Double_t kxn = 3.0692;
1899 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1900 return x/TMath::Power(pass1,kxn);
1902 Double_t AliGenMUONlib::PtBeautyF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1905 // Corresponding NLO total cross section is 0.518 mb
1906 const Double_t kpt0 = 7.6409;
1907 const Double_t kxn = 3.1364;
1910 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1911 return x/TMath::Power(pass1,kxn);
1913 Double_t AliGenMUONlib::PtBeautyF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1916 // Corresponding NLO total cross section is 0.384 mb
1917 const Double_t kpt0 = 8.4948;
1918 const Double_t kxn = 3.2546;
1921 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1922 return x/TMath::Power(pass1,kxn);
1924 Double_t AliGenMUONlib::PtBeautyF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1927 // Corresponding NLO total cross section is 0.648 mb
1928 const Double_t kpt0 = 7.6631;
1929 const Double_t kxn = 3.1621;
1932 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1933 return x/TMath::Power(pass1,kxn);
1935 Double_t AliGenMUONlib::PtBeautyF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
1938 // Corresponding NLO total cross section is 0.294 mb
1939 const Double_t kpt0 = 8.7245;
1940 const Double_t kxn = 3.2213;
1943 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1944 return x/TMath::Power(pass1,kxn);
1946 Double_t AliGenMUONlib::PtBeautyF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
1949 // Corresponding NLO total cross section is 0.475 mb
1950 const Double_t kpt0 = 8.5296;
1951 const Double_t kxn = 3.2187;
1954 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1955 return x/TMath::Power(pass1,kxn);
1957 Double_t AliGenMUONlib::PtBeautyF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
1960 // Corresponding NLO total cross section is 0.324 mb
1961 const Double_t kpt0 = 7.9440;
1962 const Double_t kxn = 3.1614;
1965 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1966 return x/TMath::Power(pass1,kxn);
1968 Double_t AliGenMUONlib::PtBeautyF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
1971 // Corresponding NLO total cross section is 0.536 mb
1972 const Double_t kpt0 = 8.2408;
1973 const Double_t kxn = 3.3029;
1976 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1977 return x/TMath::Power(pass1,kxn);
1979 Double_t AliGenMUONlib::PtBeautyF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
1982 // Corresponding NLO total cross section is 0.420 mb
1983 const Double_t kpt0 = 7.8041;
1984 const Double_t kxn = 3.2094;
1987 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1988 return x/TMath::Power(pass1,kxn);
1992 Double_t AliGenMUONlib::YBeauty( const Double_t *px, const Double_t */*dummy*/)
1994 // Beauty y :: Carrer & Dainese : ALICE-INT-2003-019 v.3 (hep-ph/0311225)
1995 // Pythia tuned to reproduce the distribution given by the HVQMNR program based on NLO calculations (pQCD)
1996 // shadowing + kt broadening
1999 Double_t c[2]={-1.27590e-02,-2.42731e-04};
2000 Double_t y=1+c[0]*TMath::Power(x,2)+c[1]*TMath::Power(x,4);
2003 if (TMath::Abs(x)>6) {
2007 ybeauty=TMath::Power(y,3);
2012 Double_t AliGenMUONlib::YBeautyF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
2014 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
2015 // YBeautyFiMjSkPP = YBeautyF0M0S0PP * (dN(i,j,k)/dy / dN(0,0,0)/dy)_MNR
2016 // i=0,1,2; j=0,1,2; k=0,1,...,6
2017 // dN(i,j,k)/dy - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
2018 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
2019 // calculations for the following inputs:
2020 // Peterson fragmentation function (F) with \epsilon_b = 0.001, 0.0002 & 0.004
2021 // for i=0,1 & 2 respectively; quark mass (M) of 4.75, 4.5 & 5.0 GeV
2022 // for j=0,1 & 2 respectively;
2023 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
2024 // with a/b = 1/1, 1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2
2025 // for k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
2026 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
2027 // June 2008, Smbat.Grigoryan@cern.ch
2030 // Pythia6.214 (kBeautyppMNRwmi, PDF = CTEQ5L, quark mass = 4.75 GeV, PtHard > 2.76 GeV/c)
2031 // for pp collisions at 14 TeV with one b-bbar pair per event.
2032 // Corresponding NLO total cross section is 0.494 mb
2036 Double_t c[2]={1.2350e-02,9.2667e-05};
2037 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2040 if (TMath::Abs(x)>7.6) {
2044 ybeauty=TMath::Power(y,3);
2049 Double_t AliGenMUONlib::YBeautyF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
2052 // Corresponding NLO total cross section is 0.445 mb
2054 Double_t c[2]={1.2292e-02,9.1847e-05};
2055 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2058 if (TMath::Abs(x)>7.6) {
2062 ybeauty=TMath::Power(y,3);
2067 Double_t AliGenMUONlib::YBeautyF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
2070 // Corresponding NLO total cross section is 0.445 mb
2072 Double_t c[2]={1.2436e-02,9.3709e-05};
2073 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2076 if (TMath::Abs(x)>7.6) {
2080 ybeauty=TMath::Power(y,3);
2085 Double_t AliGenMUONlib::YBeautyF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
2088 // Corresponding NLO total cross section is 0.518 mb
2090 Double_t c[2]={1.1714e-02,1.0068e-04};
2091 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2094 if (TMath::Abs(x)>7.6) {
2098 ybeauty=TMath::Power(y,3);
2103 Double_t AliGenMUONlib::YBeautyF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
2106 // Corresponding NLO total cross section is 0.384 mb
2108 Double_t c[2]={1.2944e-02,8.5500e-05};
2109 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2112 if (TMath::Abs(x)>7.6) {
2116 ybeauty=TMath::Power(y,3);
2121 Double_t AliGenMUONlib::YBeautyF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
2124 // Corresponding NLO total cross section is 0.648 mb
2126 Double_t c[2]={1.2455e-02,9.2713e-05};
2127 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2130 if (TMath::Abs(x)>7.6) {
2134 ybeauty=TMath::Power(y,3);
2139 Double_t AliGenMUONlib::YBeautyF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
2142 // Corresponding NLO total cross section is 0.294 mb
2144 Double_t c[2]={1.0897e-02,1.1878e-04};
2145 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2148 if (TMath::Abs(x)>7.6) {
2152 ybeauty=TMath::Power(y,3);
2157 Double_t AliGenMUONlib::YBeautyF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
2160 // Corresponding NLO total cross section is 0.475 mb
2162 Double_t c[2]={1.0912e-02,1.1858e-04};
2163 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2166 if (TMath::Abs(x)>7.6) {
2170 ybeauty=TMath::Power(y,3);
2175 Double_t AliGenMUONlib::YBeautyF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
2178 // Corresponding NLO total cross section is 0.324 mb
2180 Double_t c[2]={1.2378e-02,9.2490e-05};
2181 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2184 if (TMath::Abs(x)>7.6) {
2188 ybeauty=TMath::Power(y,3);
2193 Double_t AliGenMUONlib::YBeautyF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
2196 // Corresponding NLO total cross section is 0.536 mb
2198 Double_t c[2]={1.2886e-02,8.2912e-05};
2199 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2202 if (TMath::Abs(x)>7.6) {
2206 ybeauty=TMath::Power(y,3);
2211 Double_t AliGenMUONlib::YBeautyF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
2214 // Corresponding NLO total cross section is 0.420 mb
2216 Double_t c[2]={1.3106e-02,8.0115e-05};
2217 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2220 if (TMath::Abs(x)>7.6) {
2224 ybeauty=TMath::Power(y,3);
2230 Int_t AliGenMUONlib::IpBeauty(TRandom *ran)
2232 // Beauty Composition
2235 random = ran->Rndm();
2237 // Taux de production Carrer & Dainese : ALICE-INT-2003-019 v.3
2238 // >>>>> cf. tab 4 p 11
2240 if (random < 0.20) {
2242 } else if (random < 0.40) {
2244 } else if (random < 0.605) {
2246 } else if (random < 0.81) {
2248 } else if (random < 0.87) {
2250 } else if (random < 0.93) {
2252 } else if (random < 0.965) {
2262 typedef Double_t (*GenFunc) (const Double_t*, const Double_t*);
2263 GenFunc AliGenMUONlib::GetPt(Int_t param, const char* tname) const
2265 // Return pointer to pT parameterisation
2266 TString sname = TString(tname);
2284 if (sname == "Vogt" || sname == "Vogt PbPb") {
2286 } else if (sname == "Vogt pp") {
2288 } else if (sname == "pp 7") {
2290 } else if (sname == "pp 2.76") {
2292 } else if (sname == "PbPb 2.76") {
2293 func=PtJpsiPbPb2760;
2294 } else if (sname == "CDF scaled") {
2295 func=PtJpsiCDFscaled;
2296 } else if (sname == "CDF pp") {
2297 func=PtJpsiCDFscaledPP;
2298 } else if (sname == "CDF pp 10") {
2299 func=PtJpsiCDFscaledPP10;
2300 } else if (sname == "CDF pp 8.8") {
2301 func=PtJpsiCDFscaledPP9;
2302 } else if (sname == "CDF pp 7" || sname == "CDF pp 7 flat y") {
2303 func=PtJpsiCDFscaledPP7;
2304 } else if (sname == "CDF pp 3.94") {
2305 func=PtJpsiCDFscaledPP4;
2306 } else if (sname == "CDF pp 2.76") {
2307 func=PtJpsiCDFscaledPP3;
2308 } else if (sname == "CDF pp 1.9") {
2309 func=PtJpsiCDFscaledPP2;
2310 } else if (sname == "CDF pPb 8.8") {
2311 func=PtJpsiCDFscaledPPb9;
2312 } else if (sname == "CDF Pbp 8.8") {
2313 func=PtJpsiCDFscaledPbP9;
2314 } else if (sname == "CDF PbPb 3.94") {
2315 func=PtJpsiCDFscaledPbPb4;
2316 } else if (sname == "Flat" || sname == "CDF pp 7 flat pt") {
2325 case kUpsilonFamily:
2329 if (sname == "Vogt" || sname == "Vogt PbPb") {
2331 } else if (sname == "Vogt pp") {
2333 } else if (sname == "CDF scaled") {
2334 func=PtUpsilonCDFscaled;
2335 } else if (sname == "CDF pp") {
2336 func=PtUpsilonCDFscaledPP;
2337 } else if (sname == "CDF pp 10") {
2338 func=PtUpsilonCDFscaledPP10;
2339 } else if (sname == "CDF pp 8.8") {
2340 func=PtUpsilonCDFscaledPP9;
2341 } else if (sname == "CDF pp 7") {
2342 func=PtUpsilonCDFscaledPP7;
2343 } else if (sname == "CDF pp 3.94") {
2344 func=PtUpsilonCDFscaledPP4;
2345 } else if (sname == "CDF pPb 8.8") {
2346 func=PtUpsilonCDFscaledPPb9;
2347 } else if (sname == "CDF Pbp 8.8") {
2348 func=PtUpsilonCDFscaledPbP9;
2349 } else if (sname == "CDF PbPb 3.94") {
2350 func=PtUpsilonCDFscaledPbPb4;
2351 } else if (sname == "Flat") {
2358 if (sname == "F0M0S0 pp") {
2359 func=PtCharmF0M0S0PP;
2360 } else if (sname == "F1M0S0 pp") {
2361 func=PtCharmF1M0S0PP;
2362 } else if (sname == "F2M0S0 pp") {
2363 func=PtCharmF2M0S0PP;
2364 } else if (sname == "F0M1S0 pp") {
2365 func=PtCharmF0M1S0PP;
2366 } else if (sname == "F0M2S0 pp") {
2367 func=PtCharmF0M2S0PP;
2368 } else if (sname == "F0M0S1 pp") {
2369 func=PtCharmF0M0S1PP;
2370 } else if (sname == "F0M0S2 pp") {
2371 func=PtCharmF0M0S2PP;
2372 } else if (sname == "F0M0S3 pp") {
2373 func=PtCharmF0M0S3PP;
2374 } else if (sname == "F0M0S4 pp") {
2375 func=PtCharmF0M0S4PP;
2376 } else if (sname == "F0M0S5 pp") {
2377 func=PtCharmF0M0S5PP;
2378 } else if (sname == "F0M0S6 pp") {
2379 func=PtCharmF0M0S6PP;
2380 } else if (sname == "central") {
2381 func=PtCharmCentral;
2387 if (sname == "F0M0S0 pp") {
2388 func=PtBeautyF0M0S0PP;
2389 } else if (sname == "F1M0S0 pp") {
2390 func=PtBeautyF1M0S0PP;
2391 } else if (sname == "F2M0S0 pp") {
2392 func=PtBeautyF2M0S0PP;
2393 } else if (sname == "F0M1S0 pp") {
2394 func=PtBeautyF0M1S0PP;
2395 } else if (sname == "F0M2S0 pp") {
2396 func=PtBeautyF0M2S0PP;
2397 } else if (sname == "F0M0S1 pp") {
2398 func=PtBeautyF0M0S1PP;
2399 } else if (sname == "F0M0S2 pp") {
2400 func=PtBeautyF0M0S2PP;
2401 } else if (sname == "F0M0S3 pp") {
2402 func=PtBeautyF0M0S3PP;
2403 } else if (sname == "F0M0S4 pp") {
2404 func=PtBeautyF0M0S4PP;
2405 } else if (sname == "F0M0S5 pp") {
2406 func=PtBeautyF0M0S5PP;
2407 } else if (sname == "F0M0S6 pp") {
2408 func=PtBeautyF0M0S6PP;
2409 } else if (sname == "central") {
2410 func=PtBeautyCentral;
2429 printf("<AliGenMUONlib::GetPt> unknown parametrisation\n");
2434 GenFunc AliGenMUONlib::GetY(Int_t param, const char* tname) const
2437 // Return pointer to y- parameterisation
2439 TString sname = TString(tname);
2457 if (sname == "Vogt" || sname == "Vogt PbPb") {
2459 } else if (sname == "Vogt pp"){
2461 } else if (sname == "pp 7") {
2463 } else if (sname == "pp 2.76") {
2465 } else if (sname == "PbPb 2.76") {
2467 } else if (sname == "CDF scaled") {
2468 func=YJpsiCDFscaled;
2469 } else if (sname == "CDF pp") {
2470 func=YJpsiCDFscaledPP;
2471 } else if (sname == "CDF pp 10") {
2472 func=YJpsiCDFscaledPP10;
2473 } else if (sname == "CDF pp 8.8") {
2474 func=YJpsiCDFscaledPP9;
2475 } else if (sname == "CDF pp 7" || sname == "CDF pp 7 flat pt") {
2476 func=YJpsiCDFscaledPP7;
2477 } else if (sname == "CDF pp 3.94") {
2478 func=YJpsiCDFscaledPP4;
2479 } else if (sname == "CDF pp 2.76") {
2480 func=YJpsiCDFscaledPP3;
2481 } else if (sname == "CDF pp 1.9") {
2482 func=YJpsiCDFscaledPP2;
2483 } else if (sname == "CDF pPb 8.8") {
2484 func=YJpsiCDFscaledPPb9;
2485 } else if (sname == "CDF Pbp 8.8") {
2486 func=YJpsiCDFscaledPbP9;
2487 } else if (sname == "CDF PbPb 3.94") {
2488 func=YJpsiCDFscaledPbPb4;
2489 } else if (sname == "Flat" || sname == "CDF pp 7 flat y") {
2498 case kUpsilonFamily:
2502 if (sname == "Vogt" || sname == "Vogt PbPb") {
2504 } else if (sname == "Vogt pp") {
2506 } else if (sname == "CDF scaled") {
2507 func=YUpsilonCDFscaled;
2508 } else if (sname == "CDF pp") {
2509 func=YUpsilonCDFscaledPP;
2510 } else if (sname == "CDF pp 10") {
2511 func=YUpsilonCDFscaledPP10;
2512 } else if (sname == "CDF pp 8.8") {
2513 func=YUpsilonCDFscaledPP9;
2514 } else if (sname == "CDF pp 7") {
2515 func=YUpsilonCDFscaledPP7;
2516 } else if (sname == "CDF pp 3.94") {
2517 func=YUpsilonCDFscaledPP4;
2518 } else if (sname == "CDF pPb 8.8") {
2519 func=YUpsilonCDFscaledPPb9;
2520 } else if (sname == "CDF Pbp 8.8") {
2521 func=YUpsilonCDFscaledPbP9;
2522 } else if (sname == "CDF PbPb 3.94") {
2523 func=YUpsilonCDFscaledPbPb4;
2524 } else if (sname == "Flat") {
2531 if (sname == "F0M0S0 pp") {
2532 func=YCharmF0M0S0PP;
2533 } else if (sname == "F1M0S0 pp") {
2534 func=YCharmF1M0S0PP;
2535 } else if (sname == "F2M0S0 pp") {
2536 func=YCharmF2M0S0PP;
2537 } else if (sname == "F0M1S0 pp") {
2538 func=YCharmF0M1S0PP;
2539 } else if (sname == "F0M2S0 pp") {
2540 func=YCharmF0M2S0PP;
2541 } else if (sname == "F0M0S1 pp") {
2542 func=YCharmF0M0S1PP;
2543 } else if (sname == "F0M0S2 pp") {
2544 func=YCharmF0M0S2PP;
2545 } else if (sname == "F0M0S3 pp") {
2546 func=YCharmF0M0S3PP;
2547 } else if (sname == "F0M0S4 pp") {
2548 func=YCharmF0M0S4PP;
2549 } else if (sname == "F0M0S5 pp") {
2550 func=YCharmF0M0S5PP;
2551 } else if (sname == "F0M0S6 pp") {
2552 func=YCharmF0M0S6PP;
2558 if (sname == "F0M0S0 pp") {
2559 func=YBeautyF0M0S0PP;
2560 } else if (sname == "F1M0S0 pp") {
2561 func=YBeautyF1M0S0PP;
2562 } else if (sname == "F2M0S0 pp") {
2563 func=YBeautyF2M0S0PP;
2564 } else if (sname == "F0M1S0 pp") {
2565 func=YBeautyF0M1S0PP;
2566 } else if (sname == "F0M2S0 pp") {
2567 func=YBeautyF0M2S0PP;
2568 } else if (sname == "F0M0S1 pp") {
2569 func=YBeautyF0M0S1PP;
2570 } else if (sname == "F0M0S2 pp") {
2571 func=YBeautyF0M0S2PP;
2572 } else if (sname == "F0M0S3 pp") {
2573 func=YBeautyF0M0S3PP;
2574 } else if (sname == "F0M0S4 pp") {
2575 func=YBeautyF0M0S4PP;
2576 } else if (sname == "F0M0S5 pp") {
2577 func=YBeautyF0M0S5PP;
2578 } else if (sname == "F0M0S6 pp") {
2579 func=YBeautyF0M0S6PP;
2598 printf("<AliGenMUONlib::GetY> unknown parametrisation\n");
2608 //____________________________________________________________
2609 Double_t AliGenMUONlib::PtChic0( const Double_t *px, const Double_t */*dummy*/)
2612 const Double_t kpt0 = 4.;
2613 const Double_t kxn = 3.6;
2616 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2617 return x/TMath::Power(pass1,kxn);
2619 Double_t AliGenMUONlib::PtChic1( const Double_t *px, const Double_t */*dummy*/)
2622 const Double_t kpt0 = 4.;
2623 const Double_t kxn = 3.6;
2626 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2627 return x/TMath::Power(pass1,kxn);
2629 Double_t AliGenMUONlib::PtChic2( const Double_t *px, const Double_t */*dummy*/)
2632 const Double_t kpt0 = 4.;
2633 const Double_t kxn = 3.6;
2636 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2637 return x/TMath::Power(pass1,kxn);
2639 Double_t AliGenMUONlib::PtChic( const Double_t *px, const Double_t */*dummy*/)
2642 const Double_t kpt0 = 4.;
2643 const Double_t kxn = 3.6;
2646 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2647 return x/TMath::Power(pass1,kxn);
2652 //____________________________________________________________
2653 Double_t AliGenMUONlib::YChic0(const Double_t *py, const Double_t */*dummy*/)
2656 const Double_t ky0 = 4.;
2657 const Double_t kb=1.;
2659 Double_t y=TMath::Abs(*py);
2664 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2668 Double_t AliGenMUONlib::YChic1(const Double_t *py, const Double_t */*dummy*/)
2671 const Double_t ky0 = 4.;
2672 const Double_t kb=1.;
2674 Double_t y=TMath::Abs(*py);
2679 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2683 Double_t AliGenMUONlib::YChic2(const Double_t *py, const Double_t */*dummy*/)
2686 const Double_t ky0 = 4.;
2687 const Double_t kb=1.;
2689 Double_t y=TMath::Abs(*py);
2694 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2698 Double_t AliGenMUONlib::YChic(const Double_t *py, const Double_t */*dummy*/)
2701 const Double_t ky0 = 4.;
2702 const Double_t kb=1.;
2704 Double_t y=TMath::Abs(*py);
2709 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2713 // particle composition
2715 Int_t AliGenMUONlib::IpChic0(TRandom *)
2721 Int_t AliGenMUONlib::IpChic1(TRandom *)
2726 Int_t AliGenMUONlib::IpChic2(TRandom *)
2728 // Chi_c2 prime composition
2731 Int_t AliGenMUONlib::IpChic(TRandom *)
2735 Float_t r = gRandom->Rndm();
2738 } else if( r < 0.377 ) {
2747 //_____________________________________________________________
2749 typedef Int_t (*GenFuncIp) (TRandom *);
2750 GenFuncIp AliGenMUONlib::GetIp(Int_t param, const char* /*tname*/) const
2752 // Return pointer to particle type parameterisation
2778 case kUpsilonFamily:
2779 func=IpUpsilonFamily;
2813 printf("<AliGenMUONlib::GetIp> unknown parametrisation\n");
2820 Float_t AliGenMUONlib::Interpolate(Float_t x, Float_t* y, Float_t x0,
2825 // Neville's alorithm for interpolation
2831 // n: number of data points
2832 // no: order of polynom
2834 Float_t* c = new Float_t[n];
2835 Float_t* d = new Float_t[n];
2837 for (i = 0; i < n; i++) {
2842 Int_t ns = int((x - x0)/dx);
2846 for (m = 0; m < no; m++) {
2847 for (i = 0; i < n-m; i++) {
2848 Float_t ho = x0 + Float_t(i) * dx - x;
2849 Float_t hp = x0 + Float_t(i+m+1) * dx - x;
2850 Float_t w = c[i+1] - d[i];
2851 Float_t den = ho-hp;
2858 if (2*ns < (n-m-1)) {