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::PtJpsi( const Double_t *px, const Double_t */*dummy*/)
157 const Double_t kpt0 = 4.;
158 const Double_t kxn = 3.6;
161 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
162 return x/TMath::Power(pass1,kxn);
165 Double_t AliGenMUONlib::PtJpsiCDFscaled( const Double_t *px, const Double_t */*dummy*/)
170 // scaled from CDF data at 2 TeV
171 // see S.Grigoryan, PWG3 Meeting, 27th Oct 2008
173 const Double_t kpt0 = 5.100;
174 const Double_t kxn = 4.102;
177 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
178 return x/TMath::Power(pass1,kxn);
181 Double_t AliGenMUONlib::PtJpsiCDFscaledPP( const Double_t *px, const Double_t */*dummy*/)
186 // scaled from CDF data at 2 TeV
188 const Double_t kpt0 = 5.630;
189 const Double_t kxn = 4.071;
192 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
193 return x/TMath::Power(pass1,kxn);
196 Double_t AliGenMUONlib::PtJpsiCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
201 // scaled from CDF data at 2 TeV
203 const Double_t kpt0 = 5.334;
204 const Double_t kxn = 4.071;
207 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
208 return x/TMath::Power(pass1,kxn);
211 Double_t AliGenMUONlib::PtJpsiCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
216 // scaled from CDF data at 2 TeV
218 const Double_t kpt0 = 5.245;
219 const Double_t kxn = 4.071;
222 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
223 return x/TMath::Power(pass1,kxn);
226 Double_t AliGenMUONlib::PtJpsiCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
231 // scaled from CDF data at 2 TeV
233 const Double_t kpt0 = 5.072;
234 const Double_t kxn = 4.071;
237 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
238 return x/TMath::Power(pass1,kxn);
241 Double_t AliGenMUONlib::PtJpsiCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
246 // scaled from CDF data at 2 TeV
248 const Double_t kpt0 = 4.647;
249 const Double_t kxn = 4.071;
252 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
253 return x/TMath::Power(pass1,kxn);
256 Double_t AliGenMUONlib::PtJpsiCDFscaledPPb9( const Double_t *px, const Double_t *dummy)
260 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
262 Double_t c[5] = {6.42774e-01, 1.86168e-02, -6.77296e-04, 8.93512e-06, 1.31586e-07};
267 while (j > 0) y = y * x + c[--j];
269 Double_t d = 1.+c[4]*TMath::Power(x,4);
270 return y/d * AliGenMUONlib::PtJpsiCDFscaledPP9(px,dummy);
273 Double_t AliGenMUONlib::PtJpsiCDFscaledPbP9( const Double_t *px, const Double_t *dummy)
277 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
279 Double_t c[5] = {8.58557e-01, 5.39791e-02, -4.75180e-03, 2.49463e-04, 5.52396e-05};
284 while (j > 0) y = y * x + c[--j];
286 Double_t d = 1.+c[4]*TMath::Power(x,4);
287 return y/d * AliGenMUONlib::PtJpsiCDFscaledPP9(px,dummy);
290 Double_t AliGenMUONlib::PtJpsiCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
294 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.66
296 Double_t c[5] = {6.01022e-01, 4.70988e-02, -2.27917e-03, 3.09885e-05, 1.31955e-06};
301 while (j > 0) y = y * x + c[--j];
303 Double_t d = 1.+c[4]*TMath::Power(x,4);
304 return y/d * AliGenMUONlib::PtJpsiCDFscaledPP4(px,dummy);
307 Double_t AliGenMUONlib::PtJpsiFlat( const Double_t */*px*/, const Double_t */*dummy*/ )
312 Double_t AliGenMUONlib::PtJpsiPbPb( const Double_t *px, const Double_t */*dummy*/)
319 // mc = 1.4 GeV, pt-kick 1 GeV
323 -2.13098e+00, 9.46552e+00, -5.06799e+00, 1.27260e+00,
324 -1.83806e-01, 1.55853e-02, -7.23241e-04, 1.42105e-05
331 while (j > 0) y = y * x +c[--j];
332 y = x * TMath::Exp(y);
339 Double_t AliGenMUONlib::PtJpsiBPbPb( const Double_t *px, const Double_t */*dummy*/)
343 Double_t x0 = 4.0384;
347 Double_t y = x / TMath::Power((1. + (x/x0)*(x/x0)), n);
353 Double_t AliGenMUONlib::PtJpsiPP( const Double_t *px, const Double_t */*dummy*/)
360 // mc = 1.4 GeV, pt-kick 1 GeV
363 Float_t c[4] = {8.47471e+00, -1.93567e+00, 1.50271e-01, -5.51212e-03};
369 while (j > 0) y = y * x +c[--j];
370 y = x * TMath::Exp(y);
379 //____________________________________________________________
380 Double_t AliGenMUONlib::YJpsi(const Double_t *py, const Double_t */*dummy*/)
383 const Double_t ky0 = 4.;
384 const Double_t kb=1.;
386 Double_t y=TMath::Abs(*py);
391 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
395 Double_t AliGenMUONlib::YJpsiFlat( const Double_t */*py*/, const Double_t */*dummy*/ )
401 Double_t AliGenMUONlib::YJpsiPbPb( const Double_t *px, const Double_t */*dummy*/)
411 // mc = 1.4 GeV, pt-kick 1 GeV
413 Double_t c[5] = {-6.03425e+02, 4.98257e+02, -1.38794e+02, 1.62209e+01, -6.85955e-01};
414 Double_t x = TMath::Abs(px[0]);
422 while (j > 0) y = y * x + c[--j];
430 Double_t AliGenMUONlib::YJpsiCDFscaled( const Double_t *px, const Double_t* dummy)
433 return AliGenMUONlib::YJpsiPbPb(px, dummy);
436 Double_t AliGenMUONlib::YJpsiCDFscaledPP( const Double_t *px, const Double_t* dummy)
439 return AliGenMUONlib::YJpsiPP(px, dummy);
442 Double_t AliGenMUONlib::YJpsiCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
447 // scaled from YJpsiPP(14 TeV) using 10 TeV / 14 TeV ratio of y-spectra in LO pQCD.
448 // see S.Grigoryan, PWG3 Meeting, 27th Oct 2008
451 Double_t c[5] = {2.46681e+01, 8.91486e+01, -3.21227e+01, 3.63075e+00, -1.32047e-01};
453 Double_t x = TMath::Abs(px[0]);
457 y = 98.523 - 1.3664 * x * x;
458 } else if (x < 7.5) {
461 while (j > 0) y = y * x + c[--j];
471 Double_t AliGenMUONlib::YJpsiCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
476 // rescaling of YJpsiPP(14 TeV) using 8.8 TeV / 14 TeV ratio of y-spectra in LO QCD
478 Double_t c[5] = {3.33882e+02, -1.30980e+02, 2.59082e+01, -3.08935e+00, 1.56375e-01};
479 Double_t x = TMath::Abs(px[0]);
483 y = 99.236 - 1.5498 * x * x;
484 } else if (x < 7.4) {
487 while (j > 0) y = y * x + c[--j];
497 Double_t AliGenMUONlib::YJpsiCDFscaledPP9dummy(Double_t px)
499 return AliGenMUONlib::YJpsiCDFscaledPP9(&px, (Double_t*) 0);
502 Double_t AliGenMUONlib::YJpsiCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
507 // scaled from YJpsiPP(14 TeV) using 7 TeV / 14 TeV ratio of y-spectra in LO pQCD.
510 Double_t c[5] = {6.71181e+02, -3.69240e+02, 8.89644e+01, -1.04937e+01, 4.80959e-01};
512 Double_t x = TMath::Abs(px[0]);
516 y = 100.78 - 1.8353 * x * x;
517 } else if (x < 7.3) {
520 while (j > 0) y = y * x + c[--j];
530 Double_t AliGenMUONlib::YJpsiCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
535 // rescaling of YJpsiPP(14 TeV) using 3.94 TeV / 14 TeV ratio of y-spectra in LO QCD
537 Double_t c[5] = {4.00785e+02, -1.41159e+01, -3.28599e+01, 5.53048e+00, -2.45151e-01};
538 Double_t x = TMath::Abs(px[0]);
542 y = 107.389 - 2.7454 * x * x;
543 } else if (x < 7.0) {
546 while (j > 0) y = y * x + c[--j];
556 Double_t AliGenMUONlib::YJpsiPP( const Double_t *px, const Double_t */*dummy*/)
566 // mc = 1.4 GeV, pt-kick 1 GeV
569 Double_t c[5] = {1.38532e+00, 1.00596e+02, -3.46378e+01, 3.94172e+00, -1.48319e-01};
570 Double_t x = TMath::Abs(px[0]);
574 y = 96.455 - 0.8483 * x * x;
575 } else if (x < 7.9) {
578 while (j > 0) y = y * x + c[--j];
586 Double_t AliGenMUONlib::YJpsiCDFscaledPPb9( const Double_t *px, const Double_t */*dummy*/)
590 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
592 Double_t c[7] = {7.52296e-01, 2.49917e-02, 3.36500e-03, 1.91187e-03, 2.92154e-04,
593 -4.16509e-05,-7.62709e-06};
595 Double_t x = px[0] + 0.47; // rapidity shift
598 while (j > 0) y = y * x + c[--j];
601 return y * AliGenMUONlib::YJpsiCDFscaledPP9dummy(x);
604 Double_t AliGenMUONlib::YJpsiCDFscaledPbP9( const Double_t *px, const Double_t */*dummy*/)
608 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
610 Double_t c[7] = {7.52296e-01, 2.49917e-02, 3.36500e-03, 1.91187e-03, 2.92154e-04,
611 -4.16509e-05,-7.62709e-06};
613 Double_t x = -px[0] + 0.47; // rapidity shift
616 while (j > 0) y = y * x + c[--j];
619 return y * AliGenMUONlib::YJpsiCDFscaledPP9dummy(x);
622 Double_t AliGenMUONlib::YJpsiCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
626 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.66
628 Double_t c[4] = {5.95228e-01, 9.45069e-03, 2.44710e-04, -1.32894e-05};
629 Double_t x = px[0]*px[0];
633 while (j > 0) y = y * x + c[--j];
636 return y * AliGenMUONlib::YJpsiCDFscaledPP4(px,dummy);
639 Double_t AliGenMUONlib::YJpsiBPbPb( const Double_t *px, const Double_t */*dummy*/)
643 // J/Psi from B->J/Psi X
648 Double_t c[7] = {7.37025e-02, 0., -2.94487e-03, 0., 6.07953e-06, 0., 5.39219e-07};
650 Double_t x = TMath::Abs(px[0]);
658 while (j > 0) y = y * x + c[--j];
666 // particle composition
668 Int_t AliGenMUONlib::IpJpsi(TRandom *)
673 Int_t AliGenMUONlib::IpPsiP(TRandom *)
675 // Psi prime composition
678 Int_t AliGenMUONlib::IpJpsiFamily(TRandom *)
682 Float_t r = gRandom->Rndm();
697 //____________________________________________________________
698 Double_t AliGenMUONlib::PtUpsilon( const Double_t *px, const Double_t */*dummy*/ )
701 const Double_t kpt0 = 5.3;
702 const Double_t kxn = 2.5;
705 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
706 return x/TMath::Power(pass1,kxn);
709 Double_t AliGenMUONlib::PtUpsilonCDFscaled( const Double_t *px, const Double_t */*dummy*/ )
712 const Double_t kpt0 = 7.753;
713 const Double_t kxn = 3.042;
716 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
717 return x/TMath::Power(pass1,kxn);
720 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP( const Double_t *px, const Double_t */*dummy*/ )
726 // scaled from CDF data at 2 TeV
728 const Double_t kpt0 = 8.610;
729 const Double_t kxn = 3.051;
732 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
733 return x/TMath::Power(pass1,kxn);
736 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
742 // scaled from CDF data at 2 TeV
744 const Double_t kpt0 = 8.235;
745 const Double_t kxn = 3.051;
748 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
749 return x/TMath::Power(pass1,kxn);
752 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
757 // scaled from CDF data at 2 TeV
759 const Double_t kpt0 = 8.048;
760 const Double_t kxn = 3.051;
763 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
764 return x/TMath::Power(pass1,kxn);
767 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
773 // scaled from CDF data at 2 TeV
775 const Double_t kpt0 = 7.817;
776 const Double_t kxn = 3.051;
779 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
780 return x/TMath::Power(pass1,kxn);
783 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
788 // scaled from CDF data at 2 TeV
790 const Double_t kpt0 = 7.189;
791 const Double_t kxn = 3.051;
794 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
795 return x/TMath::Power(pass1,kxn);
798 Double_t AliGenMUONlib::PtUpsilonCDFscaledPPb9( const Double_t *px, const Double_t *dummy)
802 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
804 Double_t c[5] = {7.64952e-01, 1.12501e-04, 4.96038e-04, -3.03198e-05, 3.74035e-06};
809 while (j > 0) y = y * x + c[--j];
811 Double_t d = 1.+c[4]*TMath::Power(x,4);
812 return y/d * AliGenMUONlib::PtUpsilonCDFscaledPP9(px,dummy);
815 Double_t AliGenMUONlib::PtUpsilonCDFscaledPbP9( const Double_t *px, const Double_t *dummy)
819 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
821 Double_t c[5] = {1.09881e+00, 3.08329e-03, -2.00356e-04, 8.28991e-06, 2.52576e-06};
826 while (j > 0) y = y * x + c[--j];
828 Double_t d = 1.+c[4]*TMath::Power(x,4);
829 return y/d * AliGenMUONlib::PtUpsilonCDFscaledPP9(px,dummy);
832 Double_t AliGenMUONlib::PtUpsilonCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
836 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.85
838 Double_t c[5] = {8.65872e-01, 2.05465e-03, 2.56063e-04, -1.65598e-05, 2.29209e-06};
843 while (j > 0) y = y * x + c[--j];
845 Double_t d = 1.+c[4]*TMath::Power(x,4);
846 return y/d * AliGenMUONlib::PtUpsilonCDFscaledPP4(px,dummy);
849 Double_t AliGenMUONlib::PtUpsilonFlat( const Double_t */*px*/, const Double_t */*dummy*/ )
854 Double_t AliGenMUONlib::PtUpsilonPbPb( const Double_t *px, const Double_t */*dummy*/)
863 // mc = 1.4 GeV, pt-kick 1 GeV
867 -1.03488e+01, 1.28065e+01, -6.60500e+00, 1.66140e+00,
868 -2.34293e-01, 1.86925e-02, -7.80708e-04, 1.30610e-05
874 while (j > 0) y = y * x +c[--j];
875 y = x * TMath::Exp(y);
882 Double_t AliGenMUONlib::PtUpsilonPP( const Double_t *px, const Double_t */*dummy*/)
891 // mc = 1.4 GeV, pt-kick 1 GeV
894 Double_t c[8] = {-7.93955e+00, 1.06306e+01, -5.21392e+00, 1.19703e+00,
895 -1.45718e-01, 8.95151e-03, -2.04806e-04, -1.13053e-06};
901 while (j > 0) y = y * x +c[--j];
902 y = x * TMath::Exp(y);
912 //____________________________________________________________
913 Double_t AliGenMUONlib::YUpsilon(const Double_t *py, const Double_t */*dummy*/)
916 const Double_t ky0 = 3.;
917 const Double_t kb=1.;
919 Double_t y=TMath::Abs(*py);
924 yu=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
929 Double_t AliGenMUONlib::YUpsilonPbPb( const Double_t *px, const Double_t */*dummy*/)
939 // mc = 1.4 GeV, pt-kick 1 GeV
942 Double_t c[7] = {3.40036e-01, -3.98882e-07, -4.48398e-03, 8.46411e-08, -6.10854e-04,
943 -2.99753e-09, 1.28895e-05};
944 Double_t x = TMath::Abs(px[0]);
945 if (x > 5.55) return 0.;
947 Double_t y = c[j = 6];
948 while (j > 0) y = y * x +c[--j];
952 Double_t AliGenMUONlib::YUpsilonCDFscaled( const Double_t *px, const Double_t *dummy)
955 return AliGenMUONlib::YUpsilonPbPb(px, dummy);
959 Double_t AliGenMUONlib::YUpsilonCDFscaledPP( const Double_t *px, const Double_t *dummy)
962 return AliGenMUONlib::YUpsilonPP(px, dummy);
966 Double_t AliGenMUONlib::YUpsilonFlat( const Double_t */*px*/, const Double_t */*dummy*/)
973 Double_t AliGenMUONlib::YUpsilonCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
978 // scaled from YUpsilonPP(14 TeV) using 10 TeV / 14 TeV ratio of y-spectra in LO pQCD.
979 // see S.Grigoryan, PWG3 Meeting, 27th Oct 2008
981 Double_t c[4] = {1., -2.17877e-02, -6.52830e-04, 1.40578e-05};
982 Double_t x = TMath::Abs(px[0]);
983 if (x > 6.1) return 0.;
985 Double_t y = c[j = 3];
986 while (j > 0) y = y * x*x +c[--j];
990 Double_t AliGenMUONlib::YUpsilonCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
995 // rescaling of YUpsilonPP(14 TeV) using 8.8 TeV / 14 TeV ratio of y-spectra in LO QCD
997 Double_t c[4] = {1., -2.37621e-02, -6.29610e-04, 1.47976e-05};
998 Double_t x = TMath::Abs(px[0]);
999 if (x > 6.1) return 0.;
1001 Double_t y = c[j = 3];
1002 while (j > 0) y = y * x*x +c[--j];
1006 Double_t AliGenMUONlib::YUpsilonCDFscaledPP9dummy(Double_t px)
1008 return AliGenMUONlib::YUpsilonCDFscaledPP9(&px, (Double_t*) 0);
1011 Double_t AliGenMUONlib::YUpsilonCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
1016 // scaled from YUpsilonPP(14 TeV) using 7 TeV / 14 TeV ratio of y-spectra in LO pQCD.
1018 Double_t c[4] = {1., -2.61009e-02, -6.83937e-04, 1.78451e-05};
1019 Double_t x = TMath::Abs(px[0]);
1020 if (x > 6.0) return 0.;
1022 Double_t y = c[j = 3];
1023 while (j > 0) y = y * x*x +c[--j];
1027 Double_t AliGenMUONlib::YUpsilonCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
1032 // rescaling of YUpsilonPP(14 TeV) using 3.94 TeV / 14 TeV ratio of y-spectra in LO QCD
1034 Double_t c[4] = {1., -3.91924e-02, -4.26184e-04, 2.10914e-05};
1035 Double_t x = TMath::Abs(px[0]);
1036 if (x > 5.7) return 0.;
1038 Double_t y = c[j = 3];
1039 while (j > 0) y = y * x*x +c[--j];
1044 Double_t AliGenMUONlib::YUpsilonPP( const Double_t *px, const Double_t */*dummy*/)
1054 // mc = 1.4 GeV, pt-kick 1 GeV
1056 Double_t c[7] = {8.91936e-01, -6.46645e-07, -1.52774e-02, 4.28677e-08, -7.01517e-04,
1057 -6.20539e-10, 1.29943e-05};
1058 Double_t x = TMath::Abs(px[0]);
1059 if (x > 6.2) return 0.;
1061 Double_t y = c[j = 6];
1062 while (j > 0) y = y * x +c[--j];
1066 Double_t AliGenMUONlib::YUpsilonCDFscaledPPb9( const Double_t *px, const Double_t */*dummy*/)
1070 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
1072 Double_t c[7] = {8.71829e-01, 4.77467e-02, 8.09671e-03, 6.45294e-04, -2.15730e-04,
1073 -4.67538e-05,-2.11683e-06};
1075 Double_t x = px[0] + 0.47; // rapidity shift
1078 while (j > 0) y = y * x + c[--j];
1081 return y * AliGenMUONlib::YUpsilonCDFscaledPP9dummy(x);
1084 Double_t AliGenMUONlib::YUpsilonCDFscaledPbP9( const Double_t *px, const Double_t */*dummy*/)
1088 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
1090 Double_t c[7] = {8.71829e-01, 4.77467e-02, 8.09671e-03, 6.45294e-04, -2.15730e-04,
1091 -4.67538e-05,-2.11683e-06};
1093 Double_t x = -px[0] + 0.47; // rapidity shift
1096 while (j > 0) y = y * x + c[--j];
1099 return y * AliGenMUONlib::YUpsilonCDFscaledPP9dummy(x);
1102 Double_t AliGenMUONlib::YUpsilonCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
1106 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.85
1108 Double_t c[4] = {8.27837e-01, 1.70115e-02, -1.26046e-03, 1.52091e-05};
1109 Double_t x = px[0]*px[0];
1113 while (j > 0) y = y * x + c[--j];
1116 return y * AliGenMUONlib::YUpsilonCDFscaledPP4(px,dummy);
1120 // particle composition
1122 Int_t AliGenMUONlib::IpUpsilon(TRandom *)
1127 Int_t AliGenMUONlib::IpUpsilonP(TRandom *)
1132 Int_t AliGenMUONlib::IpUpsilonPP(TRandom *)
1137 Int_t AliGenMUONlib::IpUpsilonFamily(TRandom *)
1141 Float_t r = gRandom->Rndm();
1145 } else if (r < 0.896) {
1158 // pt-distribution (by scaling of pion distribution)
1159 //____________________________________________________________
1160 Double_t AliGenMUONlib::PtPhi( const Double_t *px, const Double_t */*dummy*/)
1163 return PtScal(*px,7);
1166 Double_t AliGenMUONlib::YPhi( const Double_t *px, const Double_t */*dummy*/)
1170 return YJpsi(px,dum);
1172 // particle composition
1174 Int_t AliGenMUONlib::IpPhi(TRandom *)
1184 // pt-distribution (by scaling of pion distribution)
1185 //____________________________________________________________
1186 Double_t AliGenMUONlib::PtOmega( const Double_t *px, const Double_t */*dummy*/)
1189 return PtScal(*px,5);
1192 Double_t AliGenMUONlib::YOmega( const Double_t *px, const Double_t */*dummy*/)
1196 return YJpsi(px,dum);
1198 // particle composition
1200 Int_t AliGenMUONlib::IpOmega(TRandom *)
1202 // Omega composition
1211 // pt-distribution (by scaling of pion distribution)
1212 //____________________________________________________________
1213 Double_t AliGenMUONlib::PtEta( const Double_t *px, const Double_t */*dummy*/)
1216 return PtScal(*px,3);
1219 Double_t AliGenMUONlib::YEta( const Double_t *px, const Double_t */*dummy*/)
1223 return YJpsi(px,dum);
1225 // particle composition
1227 Int_t AliGenMUONlib::IpEta(TRandom *)
1238 //____________________________________________________________
1239 Double_t AliGenMUONlib::PtCharm( const Double_t *px, const Double_t */*dummy*/)
1242 const Double_t kpt0 = 2.25;
1243 const Double_t kxn = 3.17;
1246 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1247 return x/TMath::Power(pass1,kxn);
1250 Double_t AliGenMUONlib::PtCharmCentral( const Double_t *px, const Double_t */*dummy*/)
1253 const Double_t kpt0 = 2.12;
1254 const Double_t kxn = 2.78;
1257 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1258 return x/TMath::Power(pass1,kxn);
1260 Double_t AliGenMUONlib::PtCharmF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1262 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1263 // PtCharmFiMjSkPP = PtCharmF0M0S0PP * (dN(i,j,k)/dpt / dN(0,0,0)/dpt)_MNR
1264 // i=0,1,2; j=0,1,2; k=0,1,...,6
1265 // dN(i,j,k)/dpt - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1266 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1267 // calculations for the following inputs:
1268 // Peterson fragmentation function (F) with \epsilon_c = 0.02, 0.002 & 0.11
1269 // for i=0,1 & 2 respectively; quark mass (M) of 1.5, 1.3 & 1.7 GeV
1270 // for j=0,1 & 2 respectively;
1271 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1272 // with a/b = 1/1, 1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2
1273 // for k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1274 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1275 // June 2008, Smbat.Grigoryan@cern.ch
1278 // Pythia6.214 (kCharmppMNRwmi, PDF = CTEQ5L, quark mass = 1.2 GeV, PtHard > 2.76 GeV/c)
1279 // for pp collisions at 14 TeV with one c-cbar pair per event.
1280 // Corresponding NLO total cross section is 5.68 mb
1283 const Double_t kpt0 = 2.2930;
1284 const Double_t kxn = 3.1196;
1285 Double_t c[3]={-5.2180e-01,1.8753e-01,2.8669e-02};
1288 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1289 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1291 Double_t AliGenMUONlib::PtCharmF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1294 // Corresponding NLO total cross section is 6.06 mb
1295 const Double_t kpt0 = 2.8669;
1296 const Double_t kxn = 3.1044;
1297 Double_t c[3]={-4.6714e-01,1.5005e-01,4.5003e-02};
1300 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1301 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1303 Double_t AliGenMUONlib::PtCharmF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1306 // Corresponding NLO total cross section is 6.06 mb
1307 const Double_t kpt0 = 1.8361;
1308 const Double_t kxn = 3.2966;
1309 Double_t c[3]={-6.1550e-01,2.6498e-01,1.0728e-02};
1312 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1313 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1315 Double_t AliGenMUONlib::PtCharmF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1318 // Corresponding NLO total cross section is 7.69 mb
1319 const Double_t kpt0 = 2.1280;
1320 const Double_t kxn = 3.1397;
1321 Double_t c[3]={-5.4021e-01,2.0944e-01,2.5211e-02};
1324 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1325 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1327 Double_t AliGenMUONlib::PtCharmF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1330 // Corresponding NLO total cross section is 4.81 mb
1331 const Double_t kpt0 = 2.4579;
1332 const Double_t kxn = 3.1095;
1333 Double_t c[3]={-5.1497e-01,1.7532e-01,3.2429e-02};
1336 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1337 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1339 Double_t AliGenMUONlib::PtCharmF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1342 // Corresponding NLO total cross section is 14.09 mb
1343 const Double_t kpt0 = 2.1272;
1344 const Double_t kxn = 3.1904;
1345 Double_t c[3]={-4.6088e-01,2.1918e-01,2.3055e-02};
1348 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1349 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1351 Double_t AliGenMUONlib::PtCharmF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
1354 // Corresponding NLO total cross section is 1.52 mb
1355 const Double_t kpt0 = 2.8159;
1356 const Double_t kxn = 3.0857;
1357 Double_t c[3]={-6.4691e-01,2.0289e-01,2.4922e-02};
1360 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1361 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1363 Double_t AliGenMUONlib::PtCharmF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
1366 // Corresponding NLO total cross section is 3.67 mb
1367 const Double_t kpt0 = 2.7297;
1368 const Double_t kxn = 3.3019;
1369 Double_t c[3]={-6.2216e-01,1.9031e-01,1.5341e-02};
1372 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1373 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1375 Double_t AliGenMUONlib::PtCharmF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
1378 // Corresponding NLO total cross section is 3.38 mb
1379 const Double_t kpt0 = 2.3894;
1380 const Double_t kxn = 3.1075;
1381 Double_t c[3]={-4.9742e-01,1.7032e-01,2.5994e-02};
1384 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1385 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1387 Double_t AliGenMUONlib::PtCharmF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
1390 // Corresponding NLO total cross section is 10.37 mb
1391 const Double_t kpt0 = 2.0187;
1392 const Double_t kxn = 3.3011;
1393 Double_t c[3]={-3.9869e-01,2.9248e-01,1.1763e-02};
1396 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1397 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1399 Double_t AliGenMUONlib::PtCharmF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
1402 // Corresponding NLO total cross section is 7.22 mb
1403 const Double_t kpt0 = 2.1089;
1404 const Double_t kxn = 3.1848;
1405 Double_t c[3]={-4.6275e-01,1.8114e-01,2.1363e-02};
1408 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1409 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1413 Double_t AliGenMUONlib::YCharm( const Double_t *px, const Double_t */*dummy*/)
1415 // Charm y :: Carrer & Dainese : ALICE-INT-2003-019 v.3 (hep-ph/0311225)
1416 // Pythia tuned to reproduce the distribution given by the HVQMNR program based on NLO calculations (pQCD)
1417 // shadowing + kt broadening
1420 Double_t c[2]={-2.42985e-03,-2.31001e-04};
1421 Double_t y=1+(c[0]*TMath::Power(x,2))+(c[1]*TMath::Power(x,4));
1424 if (TMath::Abs(x)>8) {
1428 ycharm=TMath::Power(y,3);
1433 Double_t AliGenMUONlib::YCharmF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1435 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1436 // YCharmFiMjSkPP = YCharmF0M0S0PP * (dN(i,j,k)/dy / dN(0,0,0)/dy)_MNR
1437 // i=0,1,2; j=0,1,2; k=0,1,...,6
1438 // dN(i,j,k)/dy - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1439 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1440 // calculations for the following inputs:
1441 // Peterson fragmentation function (F) with \epsilon_c = 0.02, 0.002 & 0.11
1442 // for i=0,1 & 2 respectively; quark mass (M) of 1.5, 1.3 & 1.7 GeV
1443 // for j=0,1 & 2 respectively;
1444 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1445 // with a/b = 1/1,1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2 for
1446 // k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1447 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1448 // June 2008, Smbat.Grigoryan@cern.ch
1451 // Pythia6.214 (kCharmppMNRwmi, PDF = CTEQ5L, quark mass = 1.2 GeV, PtHard > 2.76 GeV/c)
1452 // for pp collisions at 14 TeV with one c-cbar pair per event.
1453 // Corresponding NLO total cross section is 5.68 mb
1456 Double_t c[2]={7.0909e-03,6.1967e-05};
1457 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1460 if (TMath::Abs(x)>9) {
1464 ycharm=TMath::Power(y,3);
1469 Double_t AliGenMUONlib::YCharmF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1472 // Corresponding NLO total cross section is 6.06 mb
1474 Double_t c[2]={6.9707e-03,6.0971e-05};
1475 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1478 if (TMath::Abs(x)>9) {
1482 ycharm=TMath::Power(y,3);
1487 Double_t AliGenMUONlib::YCharmF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1490 // Corresponding NLO total cross section is 6.06 mb
1492 Double_t c[2]={7.1687e-03,6.5303e-05};
1493 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1496 if (TMath::Abs(x)>9) {
1500 ycharm=TMath::Power(y,3);
1505 Double_t AliGenMUONlib::YCharmF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1508 // Corresponding NLO total cross section is 7.69 mb
1510 Double_t c[2]={5.9090e-03,7.1854e-05};
1511 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1514 if (TMath::Abs(x)>9) {
1518 ycharm=TMath::Power(y,3);
1523 Double_t AliGenMUONlib::YCharmF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1526 // Corresponding NLO total cross section is 4.81 mb
1528 Double_t c[2]={8.0882e-03,5.5872e-05};
1529 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1532 if (TMath::Abs(x)>9) {
1536 ycharm=TMath::Power(y,3);
1541 Double_t AliGenMUONlib::YCharmF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1544 // Corresponding NLO total cross section is 14.09 mb
1546 Double_t c[2]={7.2520e-03,6.2691e-05};
1547 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1550 if (TMath::Abs(x)>9) {
1554 ycharm=TMath::Power(y,3);
1559 Double_t AliGenMUONlib::YCharmF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
1562 // Corresponding NLO total cross section is 1.52 mb
1564 Double_t c[2]={1.1040e-04,1.4498e-04};
1565 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1568 if (TMath::Abs(x)>9) {
1572 ycharm=TMath::Power(y,3);
1577 Double_t AliGenMUONlib::YCharmF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
1580 // Corresponding NLO total cross section is 3.67 mb
1582 Double_t c[2]={-3.1328e-03,1.8270e-04};
1583 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1586 if (TMath::Abs(x)>9) {
1590 ycharm=TMath::Power(y,3);
1595 Double_t AliGenMUONlib::YCharmF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
1598 // Corresponding NLO total cross section is 3.38 mb
1600 Double_t c[2]={7.0865e-03,6.2532e-05};
1601 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1604 if (TMath::Abs(x)>9) {
1608 ycharm=TMath::Power(y,3);
1613 Double_t AliGenMUONlib::YCharmF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
1616 // Corresponding NLO total cross section is 10.37 mb
1618 Double_t c[2]={7.7070e-03,5.3533e-05};
1619 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1622 if (TMath::Abs(x)>9) {
1626 ycharm=TMath::Power(y,3);
1631 Double_t AliGenMUONlib::YCharmF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
1634 // Corresponding NLO total cross section is 7.22 mb
1636 Double_t c[2]={7.9195e-03,5.3823e-05};
1637 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1640 if (TMath::Abs(x)>9) {
1644 ycharm=TMath::Power(y,3);
1651 Int_t AliGenMUONlib::IpCharm(TRandom *ran)
1653 // Charm composition
1657 random = ran->Rndm();
1658 // Taux de production Carrer & Dainese : ALICE-INT-2003-019 v.3
1659 // >>>>> cf. tab 4 p 11
1661 if (random < 0.30) {
1663 } else if (random < 0.60) {
1665 } else if (random < 0.70) {
1667 } else if (random < 0.80) {
1669 } else if (random < 0.86) {
1671 } else if (random < 0.92) {
1673 } else if (random < 0.96) {
1687 //____________________________________________________________
1688 Double_t AliGenMUONlib::PtBeauty( const Double_t *px, const Double_t */*dummy*/)
1691 const Double_t kpt0 = 6.53;
1692 const Double_t kxn = 3.59;
1695 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1696 return x/TMath::Power(pass1,kxn);
1699 Double_t AliGenMUONlib::PtBeautyCentral( const Double_t *px, const Double_t */*dummy*/)
1702 const Double_t kpt0 = 6.14;
1703 const Double_t kxn = 2.93;
1706 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1707 return x/TMath::Power(pass1,kxn);
1709 Double_t AliGenMUONlib::PtBeautyF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1711 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1712 // PtBeautyFiMjSkPP = PtBeautyF0M0S0PP * (dN(i,j,k)/dpt / dN(0,0,0)/dpt)_MNR
1713 // i=0,1,2; j=0,1,2; k=0,1,...,6
1714 // dN(i,j,k)/dpt - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1715 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1716 // calculations for the following inputs:
1717 // Peterson fragmentation function (F) with \epsilon_b = 0.001, 0.0002 & 0.004
1718 // for i=0,1 & 2 respectively; quark mass (M) of 4.75, 4.5 & 5.0 GeV
1719 // for j=0,1 & 2 respectively;
1720 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1721 // with a/b = 1/1, 1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2 for
1722 // k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1723 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1724 // June 2008, Smbat.Grigoryan@cern.ch
1727 // Pythia6.214 (kBeautyppMNRwmi, PDF = CTEQ5L, quark mass = 4.75 GeV, PtHard > 2.76 GeV/c)
1728 // for pp collisions at 14 TeV with one b-bbar pair per event.
1729 // Corresponding NLO total cross section is 0.494 mb
1731 const Double_t kpt0 = 8.0575;
1732 const Double_t kxn = 3.1921;
1735 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1736 return x/TMath::Power(pass1,kxn);
1738 Double_t AliGenMUONlib::PtBeautyF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1741 // Corresponding NLO total cross section is 0.445 mb
1742 const Double_t kpt0 = 8.6239;
1743 const Double_t kxn = 3.2911;
1746 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1747 return x/TMath::Power(pass1,kxn);
1749 Double_t AliGenMUONlib::PtBeautyF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1752 // Corresponding NLO total cross section is 0.445 mb
1753 const Double_t kpt0 = 7.3367;
1754 const Double_t kxn = 3.0692;
1757 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1758 return x/TMath::Power(pass1,kxn);
1760 Double_t AliGenMUONlib::PtBeautyF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1763 // Corresponding NLO total cross section is 0.518 mb
1764 const Double_t kpt0 = 7.6409;
1765 const Double_t kxn = 3.1364;
1768 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1769 return x/TMath::Power(pass1,kxn);
1771 Double_t AliGenMUONlib::PtBeautyF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1774 // Corresponding NLO total cross section is 0.384 mb
1775 const Double_t kpt0 = 8.4948;
1776 const Double_t kxn = 3.2546;
1779 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1780 return x/TMath::Power(pass1,kxn);
1782 Double_t AliGenMUONlib::PtBeautyF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1785 // Corresponding NLO total cross section is 0.648 mb
1786 const Double_t kpt0 = 7.6631;
1787 const Double_t kxn = 3.1621;
1790 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1791 return x/TMath::Power(pass1,kxn);
1793 Double_t AliGenMUONlib::PtBeautyF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
1796 // Corresponding NLO total cross section is 0.294 mb
1797 const Double_t kpt0 = 8.7245;
1798 const Double_t kxn = 3.2213;
1801 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1802 return x/TMath::Power(pass1,kxn);
1804 Double_t AliGenMUONlib::PtBeautyF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
1807 // Corresponding NLO total cross section is 0.475 mb
1808 const Double_t kpt0 = 8.5296;
1809 const Double_t kxn = 3.2187;
1812 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1813 return x/TMath::Power(pass1,kxn);
1815 Double_t AliGenMUONlib::PtBeautyF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
1818 // Corresponding NLO total cross section is 0.324 mb
1819 const Double_t kpt0 = 7.9440;
1820 const Double_t kxn = 3.1614;
1823 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1824 return x/TMath::Power(pass1,kxn);
1826 Double_t AliGenMUONlib::PtBeautyF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
1829 // Corresponding NLO total cross section is 0.536 mb
1830 const Double_t kpt0 = 8.2408;
1831 const Double_t kxn = 3.3029;
1834 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1835 return x/TMath::Power(pass1,kxn);
1837 Double_t AliGenMUONlib::PtBeautyF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
1840 // Corresponding NLO total cross section is 0.420 mb
1841 const Double_t kpt0 = 7.8041;
1842 const Double_t kxn = 3.2094;
1845 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1846 return x/TMath::Power(pass1,kxn);
1850 Double_t AliGenMUONlib::YBeauty( const Double_t *px, const Double_t */*dummy*/)
1852 // Beauty y :: Carrer & Dainese : ALICE-INT-2003-019 v.3 (hep-ph/0311225)
1853 // Pythia tuned to reproduce the distribution given by the HVQMNR program based on NLO calculations (pQCD)
1854 // shadowing + kt broadening
1857 Double_t c[2]={-1.27590e-02,-2.42731e-04};
1858 Double_t y=1+c[0]*TMath::Power(x,2)+c[1]*TMath::Power(x,4);
1861 if (TMath::Abs(x)>6) {
1865 ybeauty=TMath::Power(y,3);
1870 Double_t AliGenMUONlib::YBeautyF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1872 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1873 // YBeautyFiMjSkPP = YBeautyF0M0S0PP * (dN(i,j,k)/dy / dN(0,0,0)/dy)_MNR
1874 // i=0,1,2; j=0,1,2; k=0,1,...,6
1875 // dN(i,j,k)/dy - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1876 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1877 // calculations for the following inputs:
1878 // Peterson fragmentation function (F) with \epsilon_b = 0.001, 0.0002 & 0.004
1879 // for i=0,1 & 2 respectively; quark mass (M) of 4.75, 4.5 & 5.0 GeV
1880 // for j=0,1 & 2 respectively;
1881 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1882 // with a/b = 1/1, 1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2
1883 // for k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1884 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1885 // June 2008, Smbat.Grigoryan@cern.ch
1888 // Pythia6.214 (kBeautyppMNRwmi, PDF = CTEQ5L, quark mass = 4.75 GeV, PtHard > 2.76 GeV/c)
1889 // for pp collisions at 14 TeV with one b-bbar pair per event.
1890 // Corresponding NLO total cross section is 0.494 mb
1894 Double_t c[2]={1.2350e-02,9.2667e-05};
1895 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
1898 if (TMath::Abs(x)>7.6) {
1902 ybeauty=TMath::Power(y,3);
1907 Double_t AliGenMUONlib::YBeautyF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1910 // Corresponding NLO total cross section is 0.445 mb
1912 Double_t c[2]={1.2292e-02,9.1847e-05};
1913 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
1916 if (TMath::Abs(x)>7.6) {
1920 ybeauty=TMath::Power(y,3);
1925 Double_t AliGenMUONlib::YBeautyF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1928 // Corresponding NLO total cross section is 0.445 mb
1930 Double_t c[2]={1.2436e-02,9.3709e-05};
1931 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
1934 if (TMath::Abs(x)>7.6) {
1938 ybeauty=TMath::Power(y,3);
1943 Double_t AliGenMUONlib::YBeautyF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1946 // Corresponding NLO total cross section is 0.518 mb
1948 Double_t c[2]={1.1714e-02,1.0068e-04};
1949 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
1952 if (TMath::Abs(x)>7.6) {
1956 ybeauty=TMath::Power(y,3);
1961 Double_t AliGenMUONlib::YBeautyF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1964 // Corresponding NLO total cross section is 0.384 mb
1966 Double_t c[2]={1.2944e-02,8.5500e-05};
1967 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
1970 if (TMath::Abs(x)>7.6) {
1974 ybeauty=TMath::Power(y,3);
1979 Double_t AliGenMUONlib::YBeautyF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1982 // Corresponding NLO total cross section is 0.648 mb
1984 Double_t c[2]={1.2455e-02,9.2713e-05};
1985 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
1988 if (TMath::Abs(x)>7.6) {
1992 ybeauty=TMath::Power(y,3);
1997 Double_t AliGenMUONlib::YBeautyF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
2000 // Corresponding NLO total cross section is 0.294 mb
2002 Double_t c[2]={1.0897e-02,1.1878e-04};
2003 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2006 if (TMath::Abs(x)>7.6) {
2010 ybeauty=TMath::Power(y,3);
2015 Double_t AliGenMUONlib::YBeautyF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
2018 // Corresponding NLO total cross section is 0.475 mb
2020 Double_t c[2]={1.0912e-02,1.1858e-04};
2021 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2024 if (TMath::Abs(x)>7.6) {
2028 ybeauty=TMath::Power(y,3);
2033 Double_t AliGenMUONlib::YBeautyF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
2036 // Corresponding NLO total cross section is 0.324 mb
2038 Double_t c[2]={1.2378e-02,9.2490e-05};
2039 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2042 if (TMath::Abs(x)>7.6) {
2046 ybeauty=TMath::Power(y,3);
2051 Double_t AliGenMUONlib::YBeautyF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
2054 // Corresponding NLO total cross section is 0.536 mb
2056 Double_t c[2]={1.2886e-02,8.2912e-05};
2057 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2060 if (TMath::Abs(x)>7.6) {
2064 ybeauty=TMath::Power(y,3);
2069 Double_t AliGenMUONlib::YBeautyF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
2072 // Corresponding NLO total cross section is 0.420 mb
2074 Double_t c[2]={1.3106e-02,8.0115e-05};
2075 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2078 if (TMath::Abs(x)>7.6) {
2082 ybeauty=TMath::Power(y,3);
2088 Int_t AliGenMUONlib::IpBeauty(TRandom *ran)
2090 // Beauty Composition
2093 random = ran->Rndm();
2095 // Taux de production Carrer & Dainese : ALICE-INT-2003-019 v.3
2096 // >>>>> cf. tab 4 p 11
2098 if (random < 0.20) {
2100 } else if (random < 0.40) {
2102 } else if (random < 0.605) {
2104 } else if (random < 0.81) {
2106 } else if (random < 0.87) {
2108 } else if (random < 0.93) {
2110 } else if (random < 0.965) {
2120 typedef Double_t (*GenFunc) (const Double_t*, const Double_t*);
2121 GenFunc AliGenMUONlib::GetPt(Int_t param, const char* tname) const
2123 // Return pointer to pT parameterisation
2124 TString sname = TString(tname);
2142 if (sname == "Vogt" || sname == "Vogt PbPb") {
2144 } else if (sname == "Vogt pp") {
2146 } else if (sname == "CDF scaled") {
2147 func=PtJpsiCDFscaled;
2148 } else if (sname == "CDF pp") {
2149 func=PtJpsiCDFscaledPP;
2150 } else if (sname == "CDF pp 10") {
2151 func=PtJpsiCDFscaledPP10;
2152 } else if (sname == "CDF pp 8.8") {
2153 func=PtJpsiCDFscaledPP9;
2154 } else if (sname == "CDF pp 7" || sname == "CDF pp 7 flat y") {
2155 func=PtJpsiCDFscaledPP7;
2156 } else if (sname == "CDF pp 3.94") {
2157 func=PtJpsiCDFscaledPP4;
2158 } else if (sname == "CDF pPb 8.8") {
2159 func=PtJpsiCDFscaledPPb9;
2160 } else if (sname == "CDF Pbp 8.8") {
2161 func=PtJpsiCDFscaledPbP9;
2162 } else if (sname == "CDF PbPb 3.94") {
2163 func=PtJpsiCDFscaledPbPb4;
2164 } else if (sname == "Flat" || sname == "CDF pp 7 flat pt") {
2173 case kUpsilonFamily:
2177 if (sname == "Vogt" || sname == "Vogt PbPb") {
2179 } else if (sname == "Vogt pp") {
2181 } else if (sname == "CDF scaled") {
2182 func=PtUpsilonCDFscaled;
2183 } else if (sname == "CDF pp") {
2184 func=PtUpsilonCDFscaledPP;
2185 } else if (sname == "CDF pp 10") {
2186 func=PtUpsilonCDFscaledPP10;
2187 } else if (sname == "CDF pp 8.8") {
2188 func=PtUpsilonCDFscaledPP9;
2189 } else if (sname == "CDF pp 7") {
2190 func=PtUpsilonCDFscaledPP7;
2191 } else if (sname == "CDF pp 3.94") {
2192 func=PtUpsilonCDFscaledPP4;
2193 } else if (sname == "CDF pPb 8.8") {
2194 func=PtUpsilonCDFscaledPPb9;
2195 } else if (sname == "CDF Pbp 8.8") {
2196 func=PtUpsilonCDFscaledPbP9;
2197 } else if (sname == "CDF PbPb 3.94") {
2198 func=PtUpsilonCDFscaledPbPb4;
2199 } else if (sname == "Flat") {
2206 if (sname == "F0M0S0 pp") {
2207 func=PtCharmF0M0S0PP;
2208 } else if (sname == "F1M0S0 pp") {
2209 func=PtCharmF1M0S0PP;
2210 } else if (sname == "F2M0S0 pp") {
2211 func=PtCharmF2M0S0PP;
2212 } else if (sname == "F0M1S0 pp") {
2213 func=PtCharmF0M1S0PP;
2214 } else if (sname == "F0M2S0 pp") {
2215 func=PtCharmF0M2S0PP;
2216 } else if (sname == "F0M0S1 pp") {
2217 func=PtCharmF0M0S1PP;
2218 } else if (sname == "F0M0S2 pp") {
2219 func=PtCharmF0M0S2PP;
2220 } else if (sname == "F0M0S3 pp") {
2221 func=PtCharmF0M0S3PP;
2222 } else if (sname == "F0M0S4 pp") {
2223 func=PtCharmF0M0S4PP;
2224 } else if (sname == "F0M0S5 pp") {
2225 func=PtCharmF0M0S5PP;
2226 } else if (sname == "F0M0S6 pp") {
2227 func=PtCharmF0M0S6PP;
2228 } else if (sname == "central") {
2229 func=PtCharmCentral;
2235 if (sname == "F0M0S0 pp") {
2236 func=PtBeautyF0M0S0PP;
2237 } else if (sname == "F1M0S0 pp") {
2238 func=PtBeautyF1M0S0PP;
2239 } else if (sname == "F2M0S0 pp") {
2240 func=PtBeautyF2M0S0PP;
2241 } else if (sname == "F0M1S0 pp") {
2242 func=PtBeautyF0M1S0PP;
2243 } else if (sname == "F0M2S0 pp") {
2244 func=PtBeautyF0M2S0PP;
2245 } else if (sname == "F0M0S1 pp") {
2246 func=PtBeautyF0M0S1PP;
2247 } else if (sname == "F0M0S2 pp") {
2248 func=PtBeautyF0M0S2PP;
2249 } else if (sname == "F0M0S3 pp") {
2250 func=PtBeautyF0M0S3PP;
2251 } else if (sname == "F0M0S4 pp") {
2252 func=PtBeautyF0M0S4PP;
2253 } else if (sname == "F0M0S5 pp") {
2254 func=PtBeautyF0M0S5PP;
2255 } else if (sname == "F0M0S6 pp") {
2256 func=PtBeautyF0M0S6PP;
2257 } else if (sname == "central") {
2258 func=PtBeautyCentral;
2277 printf("<AliGenMUONlib::GetPt> unknown parametrisation\n");
2282 GenFunc AliGenMUONlib::GetY(Int_t param, const char* tname) const
2285 // Return pointer to y- parameterisation
2287 TString sname = TString(tname);
2305 if (sname == "Vogt" || sname == "Vogt PbPb") {
2307 } else if (sname == "Vogt pp"){
2309 } else if (sname == "CDF scaled") {
2310 func=YJpsiCDFscaled;
2311 } else if (sname == "CDF pp") {
2312 func=YJpsiCDFscaledPP;
2313 } else if (sname == "CDF pp 10") {
2314 func=YJpsiCDFscaledPP10;
2315 } else if (sname == "CDF pp 8.8") {
2316 func=YJpsiCDFscaledPP9;
2317 } else if (sname == "CDF pp 7" || sname == "CDF pp 7 flat pt") {
2318 func=YJpsiCDFscaledPP7;
2319 } else if (sname == "CDF pp 3.94") {
2320 func=YJpsiCDFscaledPP4;
2321 } else if (sname == "CDF pPb 8.8") {
2322 func=YJpsiCDFscaledPPb9;
2323 } else if (sname == "CDF Pbp 8.8") {
2324 func=YJpsiCDFscaledPbP9;
2325 } else if (sname == "CDF PbPb 3.94") {
2326 func=YJpsiCDFscaledPbPb4;
2327 } else if (sname == "Flat" || sname == "CDF pp 7 flat y") {
2336 case kUpsilonFamily:
2340 if (sname == "Vogt" || sname == "Vogt PbPb") {
2342 } else if (sname == "Vogt pp") {
2344 } else if (sname == "CDF scaled") {
2345 func=YUpsilonCDFscaled;
2346 } else if (sname == "CDF pp") {
2347 func=YUpsilonCDFscaledPP;
2348 } else if (sname == "CDF pp 10") {
2349 func=YUpsilonCDFscaledPP10;
2350 } else if (sname == "CDF pp 8.8") {
2351 func=YUpsilonCDFscaledPP9;
2352 } else if (sname == "CDF pp 7") {
2353 func=YUpsilonCDFscaledPP7;
2354 } else if (sname == "CDF pp 3.94") {
2355 func=YUpsilonCDFscaledPP4;
2356 } else if (sname == "CDF pPb 8.8") {
2357 func=YUpsilonCDFscaledPPb9;
2358 } else if (sname == "CDF Pbp 8.8") {
2359 func=YUpsilonCDFscaledPbP9;
2360 } else if (sname == "CDF PbPb 3.94") {
2361 func=YUpsilonCDFscaledPbPb4;
2362 } else if (sname == "Flat") {
2369 if (sname == "F0M0S0 pp") {
2370 func=YCharmF0M0S0PP;
2371 } else if (sname == "F1M0S0 pp") {
2372 func=YCharmF1M0S0PP;
2373 } else if (sname == "F2M0S0 pp") {
2374 func=YCharmF2M0S0PP;
2375 } else if (sname == "F0M1S0 pp") {
2376 func=YCharmF0M1S0PP;
2377 } else if (sname == "F0M2S0 pp") {
2378 func=YCharmF0M2S0PP;
2379 } else if (sname == "F0M0S1 pp") {
2380 func=YCharmF0M0S1PP;
2381 } else if (sname == "F0M0S2 pp") {
2382 func=YCharmF0M0S2PP;
2383 } else if (sname == "F0M0S3 pp") {
2384 func=YCharmF0M0S3PP;
2385 } else if (sname == "F0M0S4 pp") {
2386 func=YCharmF0M0S4PP;
2387 } else if (sname == "F0M0S5 pp") {
2388 func=YCharmF0M0S5PP;
2389 } else if (sname == "F0M0S6 pp") {
2390 func=YCharmF0M0S6PP;
2396 if (sname == "F0M0S0 pp") {
2397 func=YBeautyF0M0S0PP;
2398 } else if (sname == "F1M0S0 pp") {
2399 func=YBeautyF1M0S0PP;
2400 } else if (sname == "F2M0S0 pp") {
2401 func=YBeautyF2M0S0PP;
2402 } else if (sname == "F0M1S0 pp") {
2403 func=YBeautyF0M1S0PP;
2404 } else if (sname == "F0M2S0 pp") {
2405 func=YBeautyF0M2S0PP;
2406 } else if (sname == "F0M0S1 pp") {
2407 func=YBeautyF0M0S1PP;
2408 } else if (sname == "F0M0S2 pp") {
2409 func=YBeautyF0M0S2PP;
2410 } else if (sname == "F0M0S3 pp") {
2411 func=YBeautyF0M0S3PP;
2412 } else if (sname == "F0M0S4 pp") {
2413 func=YBeautyF0M0S4PP;
2414 } else if (sname == "F0M0S5 pp") {
2415 func=YBeautyF0M0S5PP;
2416 } else if (sname == "F0M0S6 pp") {
2417 func=YBeautyF0M0S6PP;
2436 printf("<AliGenMUONlib::GetY> unknown parametrisation\n");
2446 //____________________________________________________________
2447 Double_t AliGenMUONlib::PtChic0( const Double_t *px, const Double_t */*dummy*/)
2450 const Double_t kpt0 = 4.;
2451 const Double_t kxn = 3.6;
2454 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2455 return x/TMath::Power(pass1,kxn);
2457 Double_t AliGenMUONlib::PtChic1( const Double_t *px, const Double_t */*dummy*/)
2460 const Double_t kpt0 = 4.;
2461 const Double_t kxn = 3.6;
2464 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2465 return x/TMath::Power(pass1,kxn);
2467 Double_t AliGenMUONlib::PtChic2( const Double_t *px, const Double_t */*dummy*/)
2470 const Double_t kpt0 = 4.;
2471 const Double_t kxn = 3.6;
2474 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2475 return x/TMath::Power(pass1,kxn);
2477 Double_t AliGenMUONlib::PtChic( const Double_t *px, const Double_t */*dummy*/)
2480 const Double_t kpt0 = 4.;
2481 const Double_t kxn = 3.6;
2484 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2485 return x/TMath::Power(pass1,kxn);
2490 //____________________________________________________________
2491 Double_t AliGenMUONlib::YChic0(const Double_t *py, const Double_t */*dummy*/)
2494 const Double_t ky0 = 4.;
2495 const Double_t kb=1.;
2497 Double_t y=TMath::Abs(*py);
2502 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2506 Double_t AliGenMUONlib::YChic1(const Double_t *py, const Double_t */*dummy*/)
2509 const Double_t ky0 = 4.;
2510 const Double_t kb=1.;
2512 Double_t y=TMath::Abs(*py);
2517 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2521 Double_t AliGenMUONlib::YChic2(const Double_t *py, const Double_t */*dummy*/)
2524 const Double_t ky0 = 4.;
2525 const Double_t kb=1.;
2527 Double_t y=TMath::Abs(*py);
2532 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2536 Double_t AliGenMUONlib::YChic(const Double_t *py, const Double_t */*dummy*/)
2539 const Double_t ky0 = 4.;
2540 const Double_t kb=1.;
2542 Double_t y=TMath::Abs(*py);
2547 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2551 // particle composition
2553 Int_t AliGenMUONlib::IpChic0(TRandom *)
2559 Int_t AliGenMUONlib::IpChic1(TRandom *)
2564 Int_t AliGenMUONlib::IpChic2(TRandom *)
2566 // Chi_c2 prime composition
2569 Int_t AliGenMUONlib::IpChic(TRandom *)
2573 Float_t r = gRandom->Rndm();
2576 } else if( r < 0.377 ) {
2585 //_____________________________________________________________
2587 typedef Int_t (*GenFuncIp) (TRandom *);
2588 GenFuncIp AliGenMUONlib::GetIp(Int_t param, const char* /*tname*/) const
2590 // Return pointer to particle type parameterisation
2616 case kUpsilonFamily:
2617 func=IpUpsilonFamily;
2651 printf("<AliGenMUONlib::GetIp> unknown parametrisation\n");
2658 Float_t AliGenMUONlib::Interpolate(Float_t x, Float_t* y, Float_t x0,
2663 // Neville's alorithm for interpolation
2669 // n: number of data points
2670 // no: order of polynom
2672 Float_t* c = new Float_t[n];
2673 Float_t* d = new Float_t[n];
2675 for (i = 0; i < n; i++) {
2680 Int_t ns = int((x - x0)/dx);
2684 for (m = 0; m < no; m++) {
2685 for (i = 0; i < n-m; i++) {
2686 Float_t ho = x0 + Float_t(i) * dx - x;
2687 Float_t hp = x0 + Float_t(i+m+1) * dx - x;
2688 Float_t w = c[i+1] - d[i];
2689 Float_t den = ho-hp;
2696 if (2*ns < (n-m-1)) {