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};
100 Double_t f5=TMath::Power(((sqrt(100.018215)+2.)/(sqrt(100.+khm[np]*khm[np])+2.0)),12.3);
101 Double_t fmax2=f5/kfmax[np];
103 Double_t ptpion=100.*PtPion(&pt, (Double_t*) 0);
104 Double_t fmtscal=TMath::Power(((sqrt(pt*pt+0.018215)+2.)/
105 (sqrt(pt*pt+khm[np]*khm[np])+2.0)),12.3)/ fmax2;
106 return fmtscal*ptpion;
112 //____________________________________________________________
113 Double_t AliGenMUONlib::PtKaon( const Double_t *px, const Double_t */*dummy*/)
116 return PtScal(*px,1);
120 //____________________________________________________________
121 Double_t AliGenMUONlib::YKaon( const Double_t *py, const Double_t */*dummy*/)
124 Double_t y=TMath::Abs(*py);
126 const Double_t ka = 1000.;
127 const Double_t kdy = 4.;
129 Double_t ex = y*y/(2*kdy*kdy);
130 return ka*TMath::Exp(-ex);
133 return 1.16526e+04+y*-3.79886e+03+y*y*4.31130e+02;
136 // particle composition
138 Int_t AliGenMUONlib::IpKaon(TRandom *ran)
141 if (ran->Rndm() < 0.5) {
152 //____________________________________________________________
153 Double_t AliGenMUONlib::PtJpsi( const Double_t *px, const Double_t */*dummy*/)
156 const Double_t kpt0 = 4.;
157 const Double_t kxn = 3.6;
160 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
161 return x/TMath::Power(pass1,kxn);
164 Double_t AliGenMUONlib::PtJpsiCDFscaled( const Double_t *px, const Double_t */*dummy*/)
169 // scaled from CDF data at 2 TeV
170 // see S.Grigoryan, PWG3 Meeting, 27th Oct 2008
172 const Double_t kpt0 = 5.100;
173 const Double_t kxn = 4.102;
176 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
177 return x/TMath::Power(pass1,kxn);
180 Double_t AliGenMUONlib::PtJpsiCDFscaledPP( const Double_t *px, const Double_t */*dummy*/)
185 // scaled from CDF data at 2 TeV
187 const Double_t kpt0 = 5.630;
188 const Double_t kxn = 4.071;
191 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
192 return x/TMath::Power(pass1,kxn);
195 Double_t AliGenMUONlib::PtJpsiCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
200 // scaled from CDF data at 2 TeV
202 const Double_t kpt0 = 5.334;
203 const Double_t kxn = 4.071;
206 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
207 return x/TMath::Power(pass1,kxn);
210 Double_t AliGenMUONlib::PtJpsiCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
215 // scaled from CDF data at 2 TeV
217 const Double_t kpt0 = 5.245;
218 const Double_t kxn = 4.071;
221 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
222 return x/TMath::Power(pass1,kxn);
225 Double_t AliGenMUONlib::PtJpsiCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
230 // scaled from CDF data at 2 TeV
232 const Double_t kpt0 = 5.072;
233 const Double_t kxn = 4.071;
236 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
237 return x/TMath::Power(pass1,kxn);
240 Double_t AliGenMUONlib::PtJpsiCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
245 // scaled from CDF data at 2 TeV
247 const Double_t kpt0 = 4.647;
248 const Double_t kxn = 4.071;
251 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
252 return x/TMath::Power(pass1,kxn);
255 Double_t AliGenMUONlib::PtJpsiCDFscaledPPb9( const Double_t *px, const Double_t *dummy)
259 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
261 Double_t c[5] = {6.42774e-01, 1.86168e-02, -6.77296e-04, 8.93512e-06, 1.31586e-07};
266 while (j > 0) y = y * x + c[--j];
268 Double_t d = 1.+c[4]*TMath::Power(x,4);
269 return y/d * AliGenMUONlib::PtJpsiCDFscaledPP9(px,dummy);
272 Double_t AliGenMUONlib::PtJpsiCDFscaledPbP9( const Double_t *px, const Double_t *dummy)
276 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
278 Double_t c[5] = {8.58557e-01, 5.39791e-02, -4.75180e-03, 2.49463e-04, 5.52396e-05};
283 while (j > 0) y = y * x + c[--j];
285 Double_t d = 1.+c[4]*TMath::Power(x,4);
286 return y/d * AliGenMUONlib::PtJpsiCDFscaledPP9(px,dummy);
289 Double_t AliGenMUONlib::PtJpsiCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
293 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.66
295 Double_t c[5] = {6.01022e-01, 4.70988e-02, -2.27917e-03, 3.09885e-05, 1.31955e-06};
300 while (j > 0) y = y * x + c[--j];
302 Double_t d = 1.+c[4]*TMath::Power(x,4);
303 return y/d * AliGenMUONlib::PtJpsiCDFscaledPP4(px,dummy);
306 Double_t AliGenMUONlib::PtJpsiFlat( const Double_t */*px*/, const Double_t */*dummy*/ )
311 Double_t AliGenMUONlib::PtJpsiPbPb( const Double_t *px, const Double_t */*dummy*/)
318 // mc = 1.4 GeV, pt-kick 1 GeV
322 -2.13098e+00, 9.46552e+00, -5.06799e+00, 1.27260e+00,
323 -1.83806e-01, 1.55853e-02, -7.23241e-04, 1.42105e-05
330 while (j > 0) y = y * x +c[--j];
331 y = x * TMath::Exp(y);
338 Double_t AliGenMUONlib::PtJpsiBPbPb( const Double_t *px, const Double_t */*dummy*/)
342 Double_t x0 = 4.0384;
346 Double_t y = x / TMath::Power((1. + (x/x0)*(x/x0)), n);
352 Double_t AliGenMUONlib::PtJpsiPP( const Double_t *px, const Double_t */*dummy*/)
359 // mc = 1.4 GeV, pt-kick 1 GeV
362 Float_t c[4] = {8.47471e+00, -1.93567e+00, 1.50271e-01, -5.51212e-03};
368 while (j > 0) y = y * x +c[--j];
369 y = x * TMath::Exp(y);
378 //____________________________________________________________
379 Double_t AliGenMUONlib::YJpsi(const Double_t *py, const Double_t */*dummy*/)
382 const Double_t ky0 = 4.;
383 const Double_t kb=1.;
385 Double_t y=TMath::Abs(*py);
390 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
394 Double_t AliGenMUONlib::YJpsiFlat( const Double_t */*py*/, const Double_t */*dummy*/ )
400 Double_t AliGenMUONlib::YJpsiPbPb( const Double_t *px, const Double_t */*dummy*/)
410 // mc = 1.4 GeV, pt-kick 1 GeV
412 Double_t c[5] = {-6.03425e+02, 4.98257e+02, -1.38794e+02, 1.62209e+01, -6.85955e-01};
413 Double_t x = TMath::Abs(px[0]);
421 while (j > 0) y = y * x + c[--j];
429 Double_t AliGenMUONlib::YJpsiCDFscaled( const Double_t *px, const Double_t* dummy)
432 return AliGenMUONlib::YJpsiPbPb(px, dummy);
435 Double_t AliGenMUONlib::YJpsiCDFscaledPP( const Double_t *px, const Double_t* dummy)
438 return AliGenMUONlib::YJpsiPP(px, dummy);
441 Double_t AliGenMUONlib::YJpsiCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
446 // scaled from YJpsiPP(14 TeV) using 10 TeV / 14 TeV ratio of y-spectra in LO pQCD.
447 // see S.Grigoryan, PWG3 Meeting, 27th Oct 2008
450 Double_t c[5] = {2.46681e+01, 8.91486e+01, -3.21227e+01, 3.63075e+00, -1.32047e-01};
452 Double_t x = TMath::Abs(px[0]);
456 y = 98.523 - 1.3664 * x * x;
457 } else if (x < 7.5) {
460 while (j > 0) y = y * x + c[--j];
470 Double_t AliGenMUONlib::YJpsiCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
475 // rescaling of YJpsiPP(14 TeV) using 8.8 TeV / 14 TeV ratio of y-spectra in LO QCD
477 Double_t c[5] = {3.33882e+02, -1.30980e+02, 2.59082e+01, -3.08935e+00, 1.56375e-01};
478 Double_t x = TMath::Abs(px[0]);
482 y = 99.236 - 1.5498 * x * x;
483 } else if (x < 7.4) {
486 while (j > 0) y = y * x + c[--j];
496 Double_t AliGenMUONlib::YJpsiCDFscaledPP9dummy(Double_t px)
498 return AliGenMUONlib::YJpsiCDFscaledPP9(&px, (Double_t*) 0);
501 Double_t AliGenMUONlib::YJpsiCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
506 // scaled from YJpsiPP(14 TeV) using 7 TeV / 14 TeV ratio of y-spectra in LO pQCD.
509 Double_t c[5] = {6.71181e+02, -3.69240e+02, 8.89644e+01, -1.04937e+01, 4.80959e-01};
511 Double_t x = TMath::Abs(px[0]);
515 y = 100.78 - 1.8353 * x * x;
516 } else if (x < 7.3) {
519 while (j > 0) y = y * x + c[--j];
529 Double_t AliGenMUONlib::YJpsiCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
534 // rescaling of YJpsiPP(14 TeV) using 3.94 TeV / 14 TeV ratio of y-spectra in LO QCD
536 Double_t c[5] = {4.00785e+02, -1.41159e+01, -3.28599e+01, 5.53048e+00, -2.45151e-01};
537 Double_t x = TMath::Abs(px[0]);
541 y = 107.389 - 2.7454 * x * x;
542 } else if (x < 7.0) {
545 while (j > 0) y = y * x + c[--j];
555 Double_t AliGenMUONlib::YJpsiPP( const Double_t *px, const Double_t */*dummy*/)
565 // mc = 1.4 GeV, pt-kick 1 GeV
568 Double_t c[5] = {1.38532e+00, 1.00596e+02, -3.46378e+01, 3.94172e+00, -1.48319e-01};
569 Double_t x = TMath::Abs(px[0]);
573 y = 96.455 - 0.8483 * x * x;
574 } else if (x < 7.9) {
577 while (j > 0) y = y * x + c[--j];
585 Double_t AliGenMUONlib::YJpsiCDFscaledPPb9( const Double_t *px, const Double_t */*dummy*/)
589 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
591 Double_t c[7] = {7.52296e-01, 2.49917e-02, 3.36500e-03, 1.91187e-03, 2.92154e-04,
592 -4.16509e-05,-7.62709e-06};
594 Double_t x = px[0] + 0.47; // rapidity shift
597 while (j > 0) y = y * x + c[--j];
600 return y * AliGenMUONlib::YJpsiCDFscaledPP9dummy(x);
603 Double_t AliGenMUONlib::YJpsiCDFscaledPbP9( const Double_t *px, const Double_t */*dummy*/)
607 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.80
609 Double_t c[7] = {7.52296e-01, 2.49917e-02, 3.36500e-03, 1.91187e-03, 2.92154e-04,
610 -4.16509e-05,-7.62709e-06};
612 Double_t x = -px[0] + 0.47; // rapidity shift
615 while (j > 0) y = y * x + c[--j];
618 return y * AliGenMUONlib::YJpsiCDFscaledPP9dummy(x);
621 Double_t AliGenMUONlib::YJpsiCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
625 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.66
627 Double_t c[4] = {5.95228e-01, 9.45069e-03, 2.44710e-04, -1.32894e-05};
628 Double_t x = px[0]*px[0];
632 while (j > 0) y = y * x + c[--j];
635 return y * AliGenMUONlib::YJpsiCDFscaledPP4(px,dummy);
638 Double_t AliGenMUONlib::YJpsiBPbPb( const Double_t *px, const Double_t */*dummy*/)
642 // J/Psi from B->J/Psi X
647 Double_t c[7] = {7.37025e-02, 0., -2.94487e-03, 0., 6.07953e-06, 0., 5.39219e-07};
649 Double_t x = TMath::Abs(px[0]);
657 while (j > 0) y = y * x + c[--j];
665 // particle composition
667 Int_t AliGenMUONlib::IpJpsi(TRandom *)
672 Int_t AliGenMUONlib::IpPsiP(TRandom *)
674 // Psi prime composition
677 Int_t AliGenMUONlib::IpJpsiFamily(TRandom *)
681 Float_t r = gRandom->Rndm();
696 //____________________________________________________________
697 Double_t AliGenMUONlib::PtUpsilon( const Double_t *px, const Double_t */*dummy*/ )
700 const Double_t kpt0 = 5.3;
701 const Double_t kxn = 2.5;
704 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
705 return x/TMath::Power(pass1,kxn);
708 Double_t AliGenMUONlib::PtUpsilonCDFscaled( const Double_t *px, const Double_t */*dummy*/ )
711 const Double_t kpt0 = 7.753;
712 const Double_t kxn = 3.042;
715 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
716 return x/TMath::Power(pass1,kxn);
719 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP( const Double_t *px, const Double_t */*dummy*/ )
725 // scaled from CDF data at 2 TeV
727 const Double_t kpt0 = 8.610;
728 const Double_t kxn = 3.051;
731 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
732 return x/TMath::Power(pass1,kxn);
735 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
741 // scaled from CDF data at 2 TeV
743 const Double_t kpt0 = 8.235;
744 const Double_t kxn = 3.051;
747 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
748 return x/TMath::Power(pass1,kxn);
751 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
756 // scaled from CDF data at 2 TeV
758 const Double_t kpt0 = 8.048;
759 const Double_t kxn = 3.051;
762 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
763 return x/TMath::Power(pass1,kxn);
766 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
772 // scaled from CDF data at 2 TeV
774 const Double_t kpt0 = 7.817;
775 const Double_t kxn = 3.051;
778 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
779 return x/TMath::Power(pass1,kxn);
782 Double_t AliGenMUONlib::PtUpsilonCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
787 // scaled from CDF data at 2 TeV
789 const Double_t kpt0 = 7.189;
790 const Double_t kxn = 3.051;
793 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
794 return x/TMath::Power(pass1,kxn);
797 Double_t AliGenMUONlib::PtUpsilonCDFscaledPPb9( const Double_t *px, const Double_t *dummy)
801 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
803 Double_t c[5] = {7.64952e-01, 1.12501e-04, 4.96038e-04, -3.03198e-05, 3.74035e-06};
808 while (j > 0) y = y * x + c[--j];
810 Double_t d = 1.+c[4]*TMath::Power(x,4);
811 return y/d * AliGenMUONlib::PtUpsilonCDFscaledPP9(px,dummy);
814 Double_t AliGenMUONlib::PtUpsilonCDFscaledPbP9( const Double_t *px, const Double_t *dummy)
818 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
820 Double_t c[5] = {1.09881e+00, 3.08329e-03, -2.00356e-04, 8.28991e-06, 2.52576e-06};
825 while (j > 0) y = y * x + c[--j];
827 Double_t d = 1.+c[4]*TMath::Power(x,4);
828 return y/d * AliGenMUONlib::PtUpsilonCDFscaledPP9(px,dummy);
831 Double_t AliGenMUONlib::PtUpsilonCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
835 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.85
837 Double_t c[5] = {8.65872e-01, 2.05465e-03, 2.56063e-04, -1.65598e-05, 2.29209e-06};
842 while (j > 0) y = y * x + c[--j];
844 Double_t d = 1.+c[4]*TMath::Power(x,4);
845 return y/d * AliGenMUONlib::PtUpsilonCDFscaledPP4(px,dummy);
848 Double_t AliGenMUONlib::PtUpsilonFlat( const Double_t */*px*/, const Double_t */*dummy*/ )
853 Double_t AliGenMUONlib::PtUpsilonPbPb( const Double_t *px, const Double_t */*dummy*/)
862 // mc = 1.4 GeV, pt-kick 1 GeV
866 -1.03488e+01, 1.28065e+01, -6.60500e+00, 1.66140e+00,
867 -2.34293e-01, 1.86925e-02, -7.80708e-04, 1.30610e-05
873 while (j > 0) y = y * x +c[--j];
874 y = x * TMath::Exp(y);
881 Double_t AliGenMUONlib::PtUpsilonPP( const Double_t *px, const Double_t */*dummy*/)
890 // mc = 1.4 GeV, pt-kick 1 GeV
893 Double_t c[8] = {-7.93955e+00, 1.06306e+01, -5.21392e+00, 1.19703e+00,
894 -1.45718e-01, 8.95151e-03, -2.04806e-04, -1.13053e-06};
900 while (j > 0) y = y * x +c[--j];
901 y = x * TMath::Exp(y);
911 //____________________________________________________________
912 Double_t AliGenMUONlib::YUpsilon(const Double_t *py, const Double_t */*dummy*/)
915 const Double_t ky0 = 3.;
916 const Double_t kb=1.;
918 Double_t y=TMath::Abs(*py);
923 yu=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
928 Double_t AliGenMUONlib::YUpsilonPbPb( const Double_t *px, const Double_t */*dummy*/)
938 // mc = 1.4 GeV, pt-kick 1 GeV
941 Double_t c[7] = {3.40036e-01, -3.98882e-07, -4.48398e-03, 8.46411e-08, -6.10854e-04,
942 -2.99753e-09, 1.28895e-05};
943 Double_t x = TMath::Abs(px[0]);
944 if (x > 5.55) return 0.;
946 Double_t y = c[j = 6];
947 while (j > 0) y = y * x +c[--j];
951 Double_t AliGenMUONlib::YUpsilonCDFscaled( const Double_t *px, const Double_t *dummy)
954 return AliGenMUONlib::YUpsilonPbPb(px, dummy);
958 Double_t AliGenMUONlib::YUpsilonCDFscaledPP( const Double_t *px, const Double_t *dummy)
961 return AliGenMUONlib::YUpsilonPP(px, dummy);
965 Double_t AliGenMUONlib::YUpsilonFlat( const Double_t */*px*/, const Double_t */*dummy*/)
972 Double_t AliGenMUONlib::YUpsilonCDFscaledPP10( const Double_t *px, const Double_t */*dummy*/)
977 // scaled from YUpsilonPP(14 TeV) using 10 TeV / 14 TeV ratio of y-spectra in LO pQCD.
978 // see S.Grigoryan, PWG3 Meeting, 27th Oct 2008
980 Double_t c[4] = {1., -2.17877e-02, -6.52830e-04, 1.40578e-05};
981 Double_t x = TMath::Abs(px[0]);
982 if (x > 6.1) return 0.;
984 Double_t y = c[j = 3];
985 while (j > 0) y = y * x*x +c[--j];
989 Double_t AliGenMUONlib::YUpsilonCDFscaledPP9( const Double_t *px, const Double_t */*dummy*/)
994 // rescaling of YUpsilonPP(14 TeV) using 8.8 TeV / 14 TeV ratio of y-spectra in LO QCD
996 Double_t c[4] = {1., -2.37621e-02, -6.29610e-04, 1.47976e-05};
997 Double_t x = TMath::Abs(px[0]);
998 if (x > 6.1) return 0.;
1000 Double_t y = c[j = 3];
1001 while (j > 0) y = y * x*x +c[--j];
1005 Double_t AliGenMUONlib::YUpsilonCDFscaledPP9dummy(Double_t px)
1007 return AliGenMUONlib::YUpsilonCDFscaledPP9(&px, (Double_t*) 0);
1010 Double_t AliGenMUONlib::YUpsilonCDFscaledPP7( const Double_t *px, const Double_t */*dummy*/)
1015 // scaled from YUpsilonPP(14 TeV) using 7 TeV / 14 TeV ratio of y-spectra in LO pQCD.
1017 Double_t c[4] = {1., -2.61009e-02, -6.83937e-04, 1.78451e-05};
1018 Double_t x = TMath::Abs(px[0]);
1019 if (x > 6.0) return 0.;
1021 Double_t y = c[j = 3];
1022 while (j > 0) y = y * x*x +c[--j];
1026 Double_t AliGenMUONlib::YUpsilonCDFscaledPP4( const Double_t *px, const Double_t */*dummy*/)
1031 // rescaling of YUpsilonPP(14 TeV) using 3.94 TeV / 14 TeV ratio of y-spectra in LO QCD
1033 Double_t c[4] = {1., -3.91924e-02, -4.26184e-04, 2.10914e-05};
1034 Double_t x = TMath::Abs(px[0]);
1035 if (x > 5.7) return 0.;
1037 Double_t y = c[j = 3];
1038 while (j > 0) y = y * x*x +c[--j];
1043 Double_t AliGenMUONlib::YUpsilonPP( const Double_t *px, const Double_t */*dummy*/)
1053 // mc = 1.4 GeV, pt-kick 1 GeV
1055 Double_t c[7] = {8.91936e-01, -6.46645e-07, -1.52774e-02, 4.28677e-08, -7.01517e-04,
1056 -6.20539e-10, 1.29943e-05};
1057 Double_t x = TMath::Abs(px[0]);
1058 if (x > 6.2) return 0.;
1060 Double_t y = c[j = 6];
1061 while (j > 0) y = y * x +c[--j];
1065 Double_t AliGenMUONlib::YUpsilonCDFscaledPPb9( const Double_t *px, const Double_t */*dummy*/)
1069 // pPb 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
1071 Double_t c[7] = {8.71829e-01, 4.77467e-02, 8.09671e-03, 6.45294e-04, -2.15730e-04,
1072 -4.67538e-05,-2.11683e-06};
1074 Double_t x = px[0] + 0.47; // rapidity shift
1077 while (j > 0) y = y * x + c[--j];
1080 return y * AliGenMUONlib::YUpsilonCDFscaledPP9dummy(x);
1083 Double_t AliGenMUONlib::YUpsilonCDFscaledPbP9( const Double_t *px, const Double_t */*dummy*/)
1087 // Pbp 8.8 TeV, for EKS98 with minimum bias shadowing factor 0.90
1089 Double_t c[7] = {8.71829e-01, 4.77467e-02, 8.09671e-03, 6.45294e-04, -2.15730e-04,
1090 -4.67538e-05,-2.11683e-06};
1092 Double_t x = -px[0] + 0.47; // rapidity shift
1095 while (j > 0) y = y * x + c[--j];
1098 return y * AliGenMUONlib::YUpsilonCDFscaledPP9dummy(x);
1101 Double_t AliGenMUONlib::YUpsilonCDFscaledPbPb4( const Double_t *px, const Double_t *dummy)
1105 // PbPb 3.94 TeV, for EKS98 with minimum bias shadowing factor 0.85
1107 Double_t c[4] = {8.27837e-01, 1.70115e-02, -1.26046e-03, 1.52091e-05};
1108 Double_t x = px[0]*px[0];
1112 while (j > 0) y = y * x + c[--j];
1115 return y * AliGenMUONlib::YUpsilonCDFscaledPP4(px,dummy);
1119 // particle composition
1121 Int_t AliGenMUONlib::IpUpsilon(TRandom *)
1126 Int_t AliGenMUONlib::IpUpsilonP(TRandom *)
1131 Int_t AliGenMUONlib::IpUpsilonPP(TRandom *)
1136 Int_t AliGenMUONlib::IpUpsilonFamily(TRandom *)
1140 Float_t r = gRandom->Rndm();
1144 } else if (r < 0.896) {
1157 // pt-distribution (by scaling of pion distribution)
1158 //____________________________________________________________
1159 Double_t AliGenMUONlib::PtPhi( const Double_t *px, const Double_t */*dummy*/)
1162 return PtScal(*px,6);
1165 Double_t AliGenMUONlib::YPhi( const Double_t *px, const Double_t */*dummy*/)
1169 return YJpsi(px,dum);
1171 // particle composition
1173 Int_t AliGenMUONlib::IpPhi(TRandom *)
1183 // pt-distribution (by scaling of pion distribution)
1184 //____________________________________________________________
1185 Double_t AliGenMUONlib::PtOmega( const Double_t *px, const Double_t */*dummy*/)
1188 return PtScal(*px,4);
1191 Double_t AliGenMUONlib::YOmega( const Double_t *px, const Double_t */*dummy*/)
1195 return YJpsi(px,dum);
1197 // particle composition
1199 Int_t AliGenMUONlib::IpOmega(TRandom *)
1201 // Omega composition
1210 // pt-distribution (by scaling of pion distribution)
1211 //____________________________________________________________
1212 Double_t AliGenMUONlib::PtEta( const Double_t *px, const Double_t */*dummy*/)
1215 return PtScal(*px,2);
1218 Double_t AliGenMUONlib::YEta( const Double_t *px, const Double_t */*dummy*/)
1222 return YJpsi(px,dum);
1224 // particle composition
1226 Int_t AliGenMUONlib::IpEta(TRandom *)
1237 //____________________________________________________________
1238 Double_t AliGenMUONlib::PtCharm( const Double_t *px, const Double_t */*dummy*/)
1241 const Double_t kpt0 = 2.25;
1242 const Double_t kxn = 3.17;
1245 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1246 return x/TMath::Power(pass1,kxn);
1249 Double_t AliGenMUONlib::PtCharmCentral( const Double_t *px, const Double_t */*dummy*/)
1252 const Double_t kpt0 = 2.12;
1253 const Double_t kxn = 2.78;
1256 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1257 return x/TMath::Power(pass1,kxn);
1259 Double_t AliGenMUONlib::PtCharmF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1261 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1262 // PtCharmFiMjSkPP = PtCharmF0M0S0PP * (dN(i,j,k)/dpt / dN(0,0,0)/dpt)_MNR
1263 // i=0,1,2; j=0,1,2; k=0,1,...,6
1264 // dN(i,j,k)/dpt - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1265 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1266 // calculations for the following inputs:
1267 // Peterson fragmentation function (F) with \epsilon_c = 0.02, 0.002 & 0.11
1268 // for i=0,1 & 2 respectively; quark mass (M) of 1.5, 1.3 & 1.7 GeV
1269 // for j=0,1 & 2 respectively;
1270 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1271 // with a/b = 1/1, 1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2
1272 // for k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1273 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1274 // June 2008, Smbat.Grigoryan@cern.ch
1277 // Pythia6.214 (kCharmppMNRwmi, PDF = CTEQ5L, quark mass = 1.2 GeV, PtHard > 2.76 GeV/c)
1278 // for pp collisions at 14 TeV with one c-cbar pair per event.
1279 // Corresponding NLO total cross section is 5.68 mb
1282 const Double_t kpt0 = 2.2930;
1283 const Double_t kxn = 3.1196;
1284 Double_t c[3]={-5.2180e-01,1.8753e-01,2.8669e-02};
1287 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1288 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1290 Double_t AliGenMUONlib::PtCharmF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1293 // Corresponding NLO total cross section is 6.06 mb
1294 const Double_t kpt0 = 2.8669;
1295 const Double_t kxn = 3.1044;
1296 Double_t c[3]={-4.6714e-01,1.5005e-01,4.5003e-02};
1299 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1300 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1302 Double_t AliGenMUONlib::PtCharmF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1305 // Corresponding NLO total cross section is 6.06 mb
1306 const Double_t kpt0 = 1.8361;
1307 const Double_t kxn = 3.2966;
1308 Double_t c[3]={-6.1550e-01,2.6498e-01,1.0728e-02};
1311 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1312 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1314 Double_t AliGenMUONlib::PtCharmF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1317 // Corresponding NLO total cross section is 7.69 mb
1318 const Double_t kpt0 = 2.1280;
1319 const Double_t kxn = 3.1397;
1320 Double_t c[3]={-5.4021e-01,2.0944e-01,2.5211e-02};
1323 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1324 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1326 Double_t AliGenMUONlib::PtCharmF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1329 // Corresponding NLO total cross section is 4.81 mb
1330 const Double_t kpt0 = 2.4579;
1331 const Double_t kxn = 3.1095;
1332 Double_t c[3]={-5.1497e-01,1.7532e-01,3.2429e-02};
1335 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1336 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1338 Double_t AliGenMUONlib::PtCharmF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1341 // Corresponding NLO total cross section is 14.09 mb
1342 const Double_t kpt0 = 2.1272;
1343 const Double_t kxn = 3.1904;
1344 Double_t c[3]={-4.6088e-01,2.1918e-01,2.3055e-02};
1347 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1348 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1350 Double_t AliGenMUONlib::PtCharmF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
1353 // Corresponding NLO total cross section is 1.52 mb
1354 const Double_t kpt0 = 2.8159;
1355 const Double_t kxn = 3.0857;
1356 Double_t c[3]={-6.4691e-01,2.0289e-01,2.4922e-02};
1359 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1360 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1362 Double_t AliGenMUONlib::PtCharmF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
1365 // Corresponding NLO total cross section is 3.67 mb
1366 const Double_t kpt0 = 2.7297;
1367 const Double_t kxn = 3.3019;
1368 Double_t c[3]={-6.2216e-01,1.9031e-01,1.5341e-02};
1371 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1372 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1374 Double_t AliGenMUONlib::PtCharmF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
1377 // Corresponding NLO total cross section is 3.38 mb
1378 const Double_t kpt0 = 2.3894;
1379 const Double_t kxn = 3.1075;
1380 Double_t c[3]={-4.9742e-01,1.7032e-01,2.5994e-02};
1383 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1384 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1386 Double_t AliGenMUONlib::PtCharmF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
1389 // Corresponding NLO total cross section is 10.37 mb
1390 const Double_t kpt0 = 2.0187;
1391 const Double_t kxn = 3.3011;
1392 Double_t c[3]={-3.9869e-01,2.9248e-01,1.1763e-02};
1395 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1396 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1398 Double_t AliGenMUONlib::PtCharmF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
1401 // Corresponding NLO total cross section is 7.22 mb
1402 const Double_t kpt0 = 2.1089;
1403 const Double_t kxn = 3.1848;
1404 Double_t c[3]={-4.6275e-01,1.8114e-01,2.1363e-02};
1407 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1408 return x/TMath::Power(pass1,kxn)*(1.+c[0]*x+c[1]*x*x)/(1.+c[2]*x*x);
1412 Double_t AliGenMUONlib::YCharm( const Double_t *px, const Double_t */*dummy*/)
1414 // Charm y :: Carrer & Dainese : ALICE-INT-2003-019 v.3 (hep-ph/0311225)
1415 // Pythia tuned to reproduce the distribution given by the HVQMNR program based on NLO calculations (pQCD)
1416 // shadowing + kt broadening
1419 Double_t c[2]={-2.42985e-03,-2.31001e-04};
1420 Double_t y=1+(c[0]*TMath::Power(x,2))+(c[1]*TMath::Power(x,4));
1423 if (TMath::Abs(x)>8) {
1427 ycharm=TMath::Power(y,3);
1432 Double_t AliGenMUONlib::YCharmF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1434 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1435 // YCharmFiMjSkPP = YCharmF0M0S0PP * (dN(i,j,k)/dy / dN(0,0,0)/dy)_MNR
1436 // i=0,1,2; j=0,1,2; k=0,1,...,6
1437 // dN(i,j,k)/dy - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1438 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1439 // calculations for the following inputs:
1440 // Peterson fragmentation function (F) with \epsilon_c = 0.02, 0.002 & 0.11
1441 // for i=0,1 & 2 respectively; quark mass (M) of 1.5, 1.3 & 1.7 GeV
1442 // for j=0,1 & 2 respectively;
1443 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1444 // with a/b = 1/1,1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2 for
1445 // k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1446 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1447 // June 2008, Smbat.Grigoryan@cern.ch
1450 // Pythia6.214 (kCharmppMNRwmi, PDF = CTEQ5L, quark mass = 1.2 GeV, PtHard > 2.76 GeV/c)
1451 // for pp collisions at 14 TeV with one c-cbar pair per event.
1452 // Corresponding NLO total cross section is 5.68 mb
1455 Double_t c[2]={7.0909e-03,6.1967e-05};
1456 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1459 if (TMath::Abs(x)>9) {
1463 ycharm=TMath::Power(y,3);
1468 Double_t AliGenMUONlib::YCharmF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1471 // Corresponding NLO total cross section is 6.06 mb
1473 Double_t c[2]={6.9707e-03,6.0971e-05};
1474 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1477 if (TMath::Abs(x)>9) {
1481 ycharm=TMath::Power(y,3);
1486 Double_t AliGenMUONlib::YCharmF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1489 // Corresponding NLO total cross section is 6.06 mb
1491 Double_t c[2]={7.1687e-03,6.5303e-05};
1492 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1495 if (TMath::Abs(x)>9) {
1499 ycharm=TMath::Power(y,3);
1504 Double_t AliGenMUONlib::YCharmF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1507 // Corresponding NLO total cross section is 7.69 mb
1509 Double_t c[2]={5.9090e-03,7.1854e-05};
1510 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1513 if (TMath::Abs(x)>9) {
1517 ycharm=TMath::Power(y,3);
1522 Double_t AliGenMUONlib::YCharmF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1525 // Corresponding NLO total cross section is 4.81 mb
1527 Double_t c[2]={8.0882e-03,5.5872e-05};
1528 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1531 if (TMath::Abs(x)>9) {
1535 ycharm=TMath::Power(y,3);
1540 Double_t AliGenMUONlib::YCharmF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1543 // Corresponding NLO total cross section is 14.09 mb
1545 Double_t c[2]={7.2520e-03,6.2691e-05};
1546 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1549 if (TMath::Abs(x)>9) {
1553 ycharm=TMath::Power(y,3);
1558 Double_t AliGenMUONlib::YCharmF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
1561 // Corresponding NLO total cross section is 1.52 mb
1563 Double_t c[2]={1.1040e-04,1.4498e-04};
1564 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1567 if (TMath::Abs(x)>9) {
1571 ycharm=TMath::Power(y,3);
1576 Double_t AliGenMUONlib::YCharmF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
1579 // Corresponding NLO total cross section is 3.67 mb
1581 Double_t c[2]={-3.1328e-03,1.8270e-04};
1582 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1585 if (TMath::Abs(x)>9) {
1589 ycharm=TMath::Power(y,3);
1594 Double_t AliGenMUONlib::YCharmF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
1597 // Corresponding NLO total cross section is 3.38 mb
1599 Double_t c[2]={7.0865e-03,6.2532e-05};
1600 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1603 if (TMath::Abs(x)>9) {
1607 ycharm=TMath::Power(y,3);
1612 Double_t AliGenMUONlib::YCharmF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
1615 // Corresponding NLO total cross section is 10.37 mb
1617 Double_t c[2]={7.7070e-03,5.3533e-05};
1618 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1621 if (TMath::Abs(x)>9) {
1625 ycharm=TMath::Power(y,3);
1630 Double_t AliGenMUONlib::YCharmF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
1633 // Corresponding NLO total cross section is 7.22 mb
1635 Double_t c[2]={7.9195e-03,5.3823e-05};
1636 Double_t y=1-(c[0]*TMath::Power(x,2))-(c[1]*TMath::Power(x,4));
1639 if (TMath::Abs(x)>9) {
1643 ycharm=TMath::Power(y,3);
1650 Int_t AliGenMUONlib::IpCharm(TRandom *ran)
1652 // Charm composition
1656 random = ran->Rndm();
1657 // Taux de production Carrer & Dainese : ALICE-INT-2003-019 v.3
1658 // >>>>> cf. tab 4 p 11
1660 if (random < 0.30) {
1662 } else if (random < 0.60) {
1664 } else if (random < 0.70) {
1666 } else if (random < 0.80) {
1668 } else if (random < 0.86) {
1670 } else if (random < 0.92) {
1672 } else if (random < 0.96) {
1686 //____________________________________________________________
1687 Double_t AliGenMUONlib::PtBeauty( const Double_t *px, const Double_t */*dummy*/)
1690 const Double_t kpt0 = 6.53;
1691 const Double_t kxn = 3.59;
1694 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1695 return x/TMath::Power(pass1,kxn);
1698 Double_t AliGenMUONlib::PtBeautyCentral( const Double_t *px, const Double_t */*dummy*/)
1701 const Double_t kpt0 = 6.14;
1702 const Double_t kxn = 2.93;
1705 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1706 return x/TMath::Power(pass1,kxn);
1708 Double_t AliGenMUONlib::PtBeautyF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1710 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1711 // PtBeautyFiMjSkPP = PtBeautyF0M0S0PP * (dN(i,j,k)/dpt / dN(0,0,0)/dpt)_MNR
1712 // i=0,1,2; j=0,1,2; k=0,1,...,6
1713 // dN(i,j,k)/dpt - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1714 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1715 // calculations for the following inputs:
1716 // Peterson fragmentation function (F) with \epsilon_b = 0.001, 0.0002 & 0.004
1717 // for i=0,1 & 2 respectively; quark mass (M) of 4.75, 4.5 & 5.0 GeV
1718 // for j=0,1 & 2 respectively;
1719 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1720 // with a/b = 1/1, 1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2 for
1721 // k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1722 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1723 // June 2008, Smbat.Grigoryan@cern.ch
1726 // Pythia6.214 (kBeautyppMNRwmi, PDF = CTEQ5L, quark mass = 4.75 GeV, PtHard > 2.76 GeV/c)
1727 // for pp collisions at 14 TeV with one b-bbar pair per event.
1728 // Corresponding NLO total cross section is 0.494 mb
1730 const Double_t kpt0 = 8.0575;
1731 const Double_t kxn = 3.1921;
1734 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1735 return x/TMath::Power(pass1,kxn);
1737 Double_t AliGenMUONlib::PtBeautyF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1740 // Corresponding NLO total cross section is 0.445 mb
1741 const Double_t kpt0 = 8.6239;
1742 const Double_t kxn = 3.2911;
1745 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1746 return x/TMath::Power(pass1,kxn);
1748 Double_t AliGenMUONlib::PtBeautyF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1751 // Corresponding NLO total cross section is 0.445 mb
1752 const Double_t kpt0 = 7.3367;
1753 const Double_t kxn = 3.0692;
1756 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1757 return x/TMath::Power(pass1,kxn);
1759 Double_t AliGenMUONlib::PtBeautyF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1762 // Corresponding NLO total cross section is 0.518 mb
1763 const Double_t kpt0 = 7.6409;
1764 const Double_t kxn = 3.1364;
1767 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1768 return x/TMath::Power(pass1,kxn);
1770 Double_t AliGenMUONlib::PtBeautyF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1773 // Corresponding NLO total cross section is 0.384 mb
1774 const Double_t kpt0 = 8.4948;
1775 const Double_t kxn = 3.2546;
1778 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1779 return x/TMath::Power(pass1,kxn);
1781 Double_t AliGenMUONlib::PtBeautyF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1784 // Corresponding NLO total cross section is 0.648 mb
1785 const Double_t kpt0 = 7.6631;
1786 const Double_t kxn = 3.1621;
1789 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1790 return x/TMath::Power(pass1,kxn);
1792 Double_t AliGenMUONlib::PtBeautyF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
1795 // Corresponding NLO total cross section is 0.294 mb
1796 const Double_t kpt0 = 8.7245;
1797 const Double_t kxn = 3.2213;
1800 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1801 return x/TMath::Power(pass1,kxn);
1803 Double_t AliGenMUONlib::PtBeautyF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
1806 // Corresponding NLO total cross section is 0.475 mb
1807 const Double_t kpt0 = 8.5296;
1808 const Double_t kxn = 3.2187;
1811 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1812 return x/TMath::Power(pass1,kxn);
1814 Double_t AliGenMUONlib::PtBeautyF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
1817 // Corresponding NLO total cross section is 0.324 mb
1818 const Double_t kpt0 = 7.9440;
1819 const Double_t kxn = 3.1614;
1822 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1823 return x/TMath::Power(pass1,kxn);
1825 Double_t AliGenMUONlib::PtBeautyF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
1828 // Corresponding NLO total cross section is 0.536 mb
1829 const Double_t kpt0 = 8.2408;
1830 const Double_t kxn = 3.3029;
1833 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1834 return x/TMath::Power(pass1,kxn);
1836 Double_t AliGenMUONlib::PtBeautyF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
1839 // Corresponding NLO total cross section is 0.420 mb
1840 const Double_t kpt0 = 7.8041;
1841 const Double_t kxn = 3.2094;
1844 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
1845 return x/TMath::Power(pass1,kxn);
1849 Double_t AliGenMUONlib::YBeauty( const Double_t *px, const Double_t */*dummy*/)
1851 // Beauty y :: Carrer & Dainese : ALICE-INT-2003-019 v.3 (hep-ph/0311225)
1852 // Pythia tuned to reproduce the distribution given by the HVQMNR program based on NLO calculations (pQCD)
1853 // shadowing + kt broadening
1856 Double_t c[2]={-1.27590e-02,-2.42731e-04};
1857 Double_t y=1+c[0]*TMath::Power(x,2)+c[1]*TMath::Power(x,4);
1860 if (TMath::Abs(x)>6) {
1864 ybeauty=TMath::Power(y,3);
1869 Double_t AliGenMUONlib::YBeautyF0M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1871 // FiMjSkPP define theoretical uncertainties around F0M0S0PP as follows:
1872 // YBeautyFiMjSkPP = YBeautyF0M0S0PP * (dN(i,j,k)/dy / dN(0,0,0)/dy)_MNR
1873 // i=0,1,2; j=0,1,2; k=0,1,...,6
1874 // dN(i,j,k)/dy - spectra obtained by A.Dainese (hep-ph/0601164, p.88;
1875 // http://www-zeus.desy.de/~corradi/benchmarks) from NLO pQCD (MNR)
1876 // calculations for the following inputs:
1877 // Peterson fragmentation function (F) with \epsilon_b = 0.001, 0.0002 & 0.004
1878 // for i=0,1 & 2 respectively; quark mass (M) of 4.75, 4.5 & 5.0 GeV
1879 // for j=0,1 & 2 respectively;
1880 // factorisation \mu_F = a*mt and renormalisation \mu_R = b*mt scales (S)
1881 // with a/b = 1/1, 1/0.5, 0.5/1, 0.5/0.5, 1/2, 2/1 & 2/2
1882 // for k = 0, 1, 2, 3, 4, 5 & 6 respectively; CTEQ6.1 PDF set
1883 // (PDF uncertainty not considered since is small, see hep-ph/0601164, p.89).
1884 // June 2008, Smbat.Grigoryan@cern.ch
1887 // Pythia6.214 (kBeautyppMNRwmi, PDF = CTEQ5L, quark mass = 4.75 GeV, PtHard > 2.76 GeV/c)
1888 // for pp collisions at 14 TeV with one b-bbar pair per event.
1889 // Corresponding NLO total cross section is 0.494 mb
1893 Double_t c[2]={1.2350e-02,9.2667e-05};
1894 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
1897 if (TMath::Abs(x)>7.6) {
1901 ybeauty=TMath::Power(y,3);
1906 Double_t AliGenMUONlib::YBeautyF1M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1909 // Corresponding NLO total cross section is 0.445 mb
1911 Double_t c[2]={1.2292e-02,9.1847e-05};
1912 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
1915 if (TMath::Abs(x)>7.6) {
1919 ybeauty=TMath::Power(y,3);
1924 Double_t AliGenMUONlib::YBeautyF2M0S0PP( const Double_t *px, const Double_t */*dummy*/)
1927 // Corresponding NLO total cross section is 0.445 mb
1929 Double_t c[2]={1.2436e-02,9.3709e-05};
1930 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
1933 if (TMath::Abs(x)>7.6) {
1937 ybeauty=TMath::Power(y,3);
1942 Double_t AliGenMUONlib::YBeautyF0M1S0PP( const Double_t *px, const Double_t */*dummy*/)
1945 // Corresponding NLO total cross section is 0.518 mb
1947 Double_t c[2]={1.1714e-02,1.0068e-04};
1948 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
1951 if (TMath::Abs(x)>7.6) {
1955 ybeauty=TMath::Power(y,3);
1960 Double_t AliGenMUONlib::YBeautyF0M2S0PP( const Double_t *px, const Double_t */*dummy*/)
1963 // Corresponding NLO total cross section is 0.384 mb
1965 Double_t c[2]={1.2944e-02,8.5500e-05};
1966 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
1969 if (TMath::Abs(x)>7.6) {
1973 ybeauty=TMath::Power(y,3);
1978 Double_t AliGenMUONlib::YBeautyF0M0S1PP( const Double_t *px, const Double_t */*dummy*/)
1981 // Corresponding NLO total cross section is 0.648 mb
1983 Double_t c[2]={1.2455e-02,9.2713e-05};
1984 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
1987 if (TMath::Abs(x)>7.6) {
1991 ybeauty=TMath::Power(y,3);
1996 Double_t AliGenMUONlib::YBeautyF0M0S2PP( const Double_t *px, const Double_t */*dummy*/)
1999 // Corresponding NLO total cross section is 0.294 mb
2001 Double_t c[2]={1.0897e-02,1.1878e-04};
2002 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2005 if (TMath::Abs(x)>7.6) {
2009 ybeauty=TMath::Power(y,3);
2014 Double_t AliGenMUONlib::YBeautyF0M0S3PP( const Double_t *px, const Double_t */*dummy*/)
2017 // Corresponding NLO total cross section is 0.475 mb
2019 Double_t c[2]={1.0912e-02,1.1858e-04};
2020 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2023 if (TMath::Abs(x)>7.6) {
2027 ybeauty=TMath::Power(y,3);
2032 Double_t AliGenMUONlib::YBeautyF0M0S4PP( const Double_t *px, const Double_t */*dummy*/)
2035 // Corresponding NLO total cross section is 0.324 mb
2037 Double_t c[2]={1.2378e-02,9.2490e-05};
2038 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2041 if (TMath::Abs(x)>7.6) {
2045 ybeauty=TMath::Power(y,3);
2050 Double_t AliGenMUONlib::YBeautyF0M0S5PP( const Double_t *px, const Double_t */*dummy*/)
2053 // Corresponding NLO total cross section is 0.536 mb
2055 Double_t c[2]={1.2886e-02,8.2912e-05};
2056 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2059 if (TMath::Abs(x)>7.6) {
2063 ybeauty=TMath::Power(y,3);
2068 Double_t AliGenMUONlib::YBeautyF0M0S6PP( const Double_t *px, const Double_t */*dummy*/)
2071 // Corresponding NLO total cross section is 0.420 mb
2073 Double_t c[2]={1.3106e-02,8.0115e-05};
2074 Double_t y=1-c[0]*TMath::Power(x,2)-c[1]*TMath::Power(x,4);
2077 if (TMath::Abs(x)>7.6) {
2081 ybeauty=TMath::Power(y,3);
2087 Int_t AliGenMUONlib::IpBeauty(TRandom *ran)
2089 // Beauty Composition
2092 random = ran->Rndm();
2094 // Taux de production Carrer & Dainese : ALICE-INT-2003-019 v.3
2095 // >>>>> cf. tab 4 p 11
2097 if (random < 0.20) {
2099 } else if (random < 0.40) {
2101 } else if (random < 0.605) {
2103 } else if (random < 0.81) {
2105 } else if (random < 0.87) {
2107 } else if (random < 0.93) {
2109 } else if (random < 0.965) {
2119 typedef Double_t (*GenFunc) (const Double_t*, const Double_t*);
2120 GenFunc AliGenMUONlib::GetPt(Int_t param, const char* tname) const
2122 // Return pointer to pT parameterisation
2123 TString sname = TString(tname);
2141 if (sname == "Vogt" || sname == "Vogt PbPb") {
2143 } else if (sname == "Vogt pp") {
2145 } else if (sname == "CDF scaled") {
2146 func=PtJpsiCDFscaled;
2147 } else if (sname == "CDF pp") {
2148 func=PtJpsiCDFscaledPP;
2149 } else if (sname == "CDF pp 10") {
2150 func=PtJpsiCDFscaledPP10;
2151 } else if (sname == "CDF pp 8.8") {
2152 func=PtJpsiCDFscaledPP9;
2153 } else if (sname == "CDF pp 7" || sname == "CDF pp 7 flat y") {
2154 func=PtJpsiCDFscaledPP7;
2155 } else if (sname == "CDF pp 3.94") {
2156 func=PtJpsiCDFscaledPP4;
2157 } else if (sname == "CDF pPb 8.8") {
2158 func=PtJpsiCDFscaledPPb9;
2159 } else if (sname == "CDF Pbp 8.8") {
2160 func=PtJpsiCDFscaledPbP9;
2161 } else if (sname == "CDF PbPb 3.94") {
2162 func=PtJpsiCDFscaledPbPb4;
2163 } else if (sname == "Flat" || sname == "CDF pp 7 flat pt") {
2172 case kUpsilonFamily:
2176 if (sname == "Vogt" || sname == "Vogt PbPb") {
2178 } else if (sname == "Vogt pp") {
2180 } else if (sname == "CDF scaled") {
2181 func=PtUpsilonCDFscaled;
2182 } else if (sname == "CDF pp") {
2183 func=PtUpsilonCDFscaledPP;
2184 } else if (sname == "CDF pp 10") {
2185 func=PtUpsilonCDFscaledPP10;
2186 } else if (sname == "CDF pp 8.8") {
2187 func=PtUpsilonCDFscaledPP9;
2188 } else if (sname == "CDF pp 7") {
2189 func=PtUpsilonCDFscaledPP7;
2190 } else if (sname == "CDF pp 3.94") {
2191 func=PtUpsilonCDFscaledPP4;
2192 } else if (sname == "CDF pPb 8.8") {
2193 func=PtUpsilonCDFscaledPPb9;
2194 } else if (sname == "CDF Pbp 8.8") {
2195 func=PtUpsilonCDFscaledPbP9;
2196 } else if (sname == "CDF PbPb 3.94") {
2197 func=PtUpsilonCDFscaledPbPb4;
2198 } else if (sname == "Flat") {
2205 if (sname == "F0M0S0 pp") {
2206 func=PtCharmF0M0S0PP;
2207 } else if (sname == "F1M0S0 pp") {
2208 func=PtCharmF1M0S0PP;
2209 } else if (sname == "F2M0S0 pp") {
2210 func=PtCharmF2M0S0PP;
2211 } else if (sname == "F0M1S0 pp") {
2212 func=PtCharmF0M1S0PP;
2213 } else if (sname == "F0M2S0 pp") {
2214 func=PtCharmF0M2S0PP;
2215 } else if (sname == "F0M0S1 pp") {
2216 func=PtCharmF0M0S1PP;
2217 } else if (sname == "F0M0S2 pp") {
2218 func=PtCharmF0M0S2PP;
2219 } else if (sname == "F0M0S3 pp") {
2220 func=PtCharmF0M0S3PP;
2221 } else if (sname == "F0M0S4 pp") {
2222 func=PtCharmF0M0S4PP;
2223 } else if (sname == "F0M0S5 pp") {
2224 func=PtCharmF0M0S5PP;
2225 } else if (sname == "F0M0S6 pp") {
2226 func=PtCharmF0M0S6PP;
2227 } else if (sname == "central") {
2228 func=PtCharmCentral;
2234 if (sname == "F0M0S0 pp") {
2235 func=PtBeautyF0M0S0PP;
2236 } else if (sname == "F1M0S0 pp") {
2237 func=PtBeautyF1M0S0PP;
2238 } else if (sname == "F2M0S0 pp") {
2239 func=PtBeautyF2M0S0PP;
2240 } else if (sname == "F0M1S0 pp") {
2241 func=PtBeautyF0M1S0PP;
2242 } else if (sname == "F0M2S0 pp") {
2243 func=PtBeautyF0M2S0PP;
2244 } else if (sname == "F0M0S1 pp") {
2245 func=PtBeautyF0M0S1PP;
2246 } else if (sname == "F0M0S2 pp") {
2247 func=PtBeautyF0M0S2PP;
2248 } else if (sname == "F0M0S3 pp") {
2249 func=PtBeautyF0M0S3PP;
2250 } else if (sname == "F0M0S4 pp") {
2251 func=PtBeautyF0M0S4PP;
2252 } else if (sname == "F0M0S5 pp") {
2253 func=PtBeautyF0M0S5PP;
2254 } else if (sname == "F0M0S6 pp") {
2255 func=PtBeautyF0M0S6PP;
2256 } else if (sname == "central") {
2257 func=PtBeautyCentral;
2276 printf("<AliGenMUONlib::GetPt> unknown parametrisation\n");
2281 GenFunc AliGenMUONlib::GetY(Int_t param, const char* tname) const
2284 // Return pointer to y- parameterisation
2286 TString sname = TString(tname);
2304 if (sname == "Vogt" || sname == "Vogt PbPb") {
2306 } else if (sname == "Vogt pp"){
2308 } else if (sname == "CDF scaled") {
2309 func=YJpsiCDFscaled;
2310 } else if (sname == "CDF pp") {
2311 func=YJpsiCDFscaledPP;
2312 } else if (sname == "CDF pp 10") {
2313 func=YJpsiCDFscaledPP10;
2314 } else if (sname == "CDF pp 8.8") {
2315 func=YJpsiCDFscaledPP9;
2316 } else if (sname == "CDF pp 7" || sname == "CDF pp 7 flat pt") {
2317 func=YJpsiCDFscaledPP7;
2318 } else if (sname == "CDF pp 3.94") {
2319 func=YJpsiCDFscaledPP4;
2320 } else if (sname == "CDF pPb 8.8") {
2321 func=YJpsiCDFscaledPPb9;
2322 } else if (sname == "CDF Pbp 8.8") {
2323 func=YJpsiCDFscaledPbP9;
2324 } else if (sname == "CDF PbPb 3.94") {
2325 func=YJpsiCDFscaledPbPb4;
2326 } else if (sname == "Flat" || sname == "CDF pp 7 flat y") {
2335 case kUpsilonFamily:
2339 if (sname == "Vogt" || sname == "Vogt PbPb") {
2341 } else if (sname == "Vogt pp") {
2343 } else if (sname == "CDF scaled") {
2344 func=YUpsilonCDFscaled;
2345 } else if (sname == "CDF pp") {
2346 func=YUpsilonCDFscaledPP;
2347 } else if (sname == "CDF pp 10") {
2348 func=YUpsilonCDFscaledPP10;
2349 } else if (sname == "CDF pp 8.8") {
2350 func=YUpsilonCDFscaledPP9;
2351 } else if (sname == "CDF pp 7") {
2352 func=YUpsilonCDFscaledPP7;
2353 } else if (sname == "CDF pp 3.94") {
2354 func=YUpsilonCDFscaledPP4;
2355 } else if (sname == "CDF pPb 8.8") {
2356 func=YUpsilonCDFscaledPPb9;
2357 } else if (sname == "CDF Pbp 8.8") {
2358 func=YUpsilonCDFscaledPbP9;
2359 } else if (sname == "CDF PbPb 3.94") {
2360 func=YUpsilonCDFscaledPbPb4;
2361 } else if (sname == "Flat") {
2368 if (sname == "F0M0S0 pp") {
2369 func=YCharmF0M0S0PP;
2370 } else if (sname == "F1M0S0 pp") {
2371 func=YCharmF1M0S0PP;
2372 } else if (sname == "F2M0S0 pp") {
2373 func=YCharmF2M0S0PP;
2374 } else if (sname == "F0M1S0 pp") {
2375 func=YCharmF0M1S0PP;
2376 } else if (sname == "F0M2S0 pp") {
2377 func=YCharmF0M2S0PP;
2378 } else if (sname == "F0M0S1 pp") {
2379 func=YCharmF0M0S1PP;
2380 } else if (sname == "F0M0S2 pp") {
2381 func=YCharmF0M0S2PP;
2382 } else if (sname == "F0M0S3 pp") {
2383 func=YCharmF0M0S3PP;
2384 } else if (sname == "F0M0S4 pp") {
2385 func=YCharmF0M0S4PP;
2386 } else if (sname == "F0M0S5 pp") {
2387 func=YCharmF0M0S5PP;
2388 } else if (sname == "F0M0S6 pp") {
2389 func=YCharmF0M0S6PP;
2395 if (sname == "F0M0S0 pp") {
2396 func=YBeautyF0M0S0PP;
2397 } else if (sname == "F1M0S0 pp") {
2398 func=YBeautyF1M0S0PP;
2399 } else if (sname == "F2M0S0 pp") {
2400 func=YBeautyF2M0S0PP;
2401 } else if (sname == "F0M1S0 pp") {
2402 func=YBeautyF0M1S0PP;
2403 } else if (sname == "F0M2S0 pp") {
2404 func=YBeautyF0M2S0PP;
2405 } else if (sname == "F0M0S1 pp") {
2406 func=YBeautyF0M0S1PP;
2407 } else if (sname == "F0M0S2 pp") {
2408 func=YBeautyF0M0S2PP;
2409 } else if (sname == "F0M0S3 pp") {
2410 func=YBeautyF0M0S3PP;
2411 } else if (sname == "F0M0S4 pp") {
2412 func=YBeautyF0M0S4PP;
2413 } else if (sname == "F0M0S5 pp") {
2414 func=YBeautyF0M0S5PP;
2415 } else if (sname == "F0M0S6 pp") {
2416 func=YBeautyF0M0S6PP;
2435 printf("<AliGenMUONlib::GetY> unknown parametrisation\n");
2445 //____________________________________________________________
2446 Double_t AliGenMUONlib::PtChic0( const Double_t *px, const Double_t */*dummy*/)
2449 const Double_t kpt0 = 4.;
2450 const Double_t kxn = 3.6;
2453 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2454 return x/TMath::Power(pass1,kxn);
2456 Double_t AliGenMUONlib::PtChic1( const Double_t *px, const Double_t */*dummy*/)
2459 const Double_t kpt0 = 4.;
2460 const Double_t kxn = 3.6;
2463 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2464 return x/TMath::Power(pass1,kxn);
2466 Double_t AliGenMUONlib::PtChic2( const Double_t *px, const Double_t */*dummy*/)
2469 const Double_t kpt0 = 4.;
2470 const Double_t kxn = 3.6;
2473 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2474 return x/TMath::Power(pass1,kxn);
2476 Double_t AliGenMUONlib::PtChic( const Double_t *px, const Double_t */*dummy*/)
2479 const Double_t kpt0 = 4.;
2480 const Double_t kxn = 3.6;
2483 Double_t pass1 = 1.+(x/kpt0)*(x/kpt0);
2484 return x/TMath::Power(pass1,kxn);
2489 //____________________________________________________________
2490 Double_t AliGenMUONlib::YChic0(const Double_t *py, const Double_t */*dummy*/)
2493 const Double_t ky0 = 4.;
2494 const Double_t kb=1.;
2496 Double_t y=TMath::Abs(*py);
2501 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2505 Double_t AliGenMUONlib::YChic1(const Double_t *py, const Double_t */*dummy*/)
2508 const Double_t ky0 = 4.;
2509 const Double_t kb=1.;
2511 Double_t y=TMath::Abs(*py);
2516 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2520 Double_t AliGenMUONlib::YChic2(const Double_t *py, const Double_t */*dummy*/)
2523 const Double_t ky0 = 4.;
2524 const Double_t kb=1.;
2526 Double_t y=TMath::Abs(*py);
2531 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2535 Double_t AliGenMUONlib::YChic(const Double_t *py, const Double_t */*dummy*/)
2538 const Double_t ky0 = 4.;
2539 const Double_t kb=1.;
2541 Double_t y=TMath::Abs(*py);
2546 yj=kb*TMath::Exp(-(y-ky0)*(y-ky0)/2);
2550 // particle composition
2552 Int_t AliGenMUONlib::IpChic0(TRandom *)
2558 Int_t AliGenMUONlib::IpChic1(TRandom *)
2563 Int_t AliGenMUONlib::IpChic2(TRandom *)
2565 // Chi_c2 prime composition
2568 Int_t AliGenMUONlib::IpChic(TRandom *)
2572 Float_t r = gRandom->Rndm();
2575 } else if( r < 0.377 ) {
2584 //_____________________________________________________________
2586 typedef Int_t (*GenFuncIp) (TRandom *);
2587 GenFuncIp AliGenMUONlib::GetIp(Int_t param, const char* /*tname*/) const
2589 // Return pointer to particle type parameterisation
2615 case kUpsilonFamily:
2616 func=IpUpsilonFamily;
2650 printf("<AliGenMUONlib::GetIp> unknown parametrisation\n");
2657 Float_t AliGenMUONlib::Interpolate(Float_t x, Float_t* y, Float_t x0,
2662 // Neville's alorithm for interpolation
2668 // n: number of data points
2669 // no: order of polynom
2671 Float_t* c = new Float_t[n];
2672 Float_t* d = new Float_t[n];
2674 for (i = 0; i < n; i++) {
2679 Int_t ns = int((x - x0)/dx);
2683 for (m = 0; m < no; m++) {
2684 for (i = 0; i < n-m; i++) {
2685 Float_t ho = x0 + Float_t(i) * dx - x;
2686 Float_t hp = x0 + Float_t(i+m+1) * dx - x;
2687 Float_t w = c[i+1] - d[i];
2688 Float_t den = ho-hp;
2695 if (2*ns < (n-m-1)) {