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 **************************************************************************/
17 //======================================================================
18 // AliGenSTRANGElib class contains parameterizations of the
19 // kaon, phi and hyperon (Lambda, Anti-Lambda, Xi, anti-Xi, Omega,
20 // anti-Omega) for the PPR study of the strange particle production.
21 // These parameterizations are used by the
23 // AliGenParam(npar, param, AliGenSTRANGElib::GetPt(param),
24 // AliGenSTRANGElib::GetY(param),
25 // AliGenSTRANGElib::GetIp(param) )
26 // param represents the particle to be simulated.
28 // Pt distributions are calculated from the transverse mass scaling
29 // with Pions, using the PtScal function taken from AliGenMUONlib
30 // version aliroot 3.01
32 // Rocco CALIANDRO. Rosa Anna FINI, Tiziano VIRGILI
33 // Rocco.Caliandro@cern.ch Rosanna.Fini@ba.infn.it,
34 // Tiziano.Virgili@roma1.infn.it
35 //======================================================================
42 #include "AliGenSTRANGElib.h"
44 ClassImp(AliGenSTRANGElib)
46 //=============================================================
48 Double_t AliGenSTRANGElib::PtScal(Double_t pt, Int_t np)
51 // Function for the calculation of the Pt distribution for a
52 // given particle np, from the pion Pt distribution using the
53 // mt scaling. This function was taken from AliGenMUONlib
54 // aliroot version 3.01, and was extended for hyperons.
55 // np = 1=>Pions 2=>Kaons 3=>Etas 4=>Omegas 5=>ETA' 6=>PHI
56 // 7=>BARYONS-BARYONBARS
57 // 8=>Lambda-antiLambda
59 // 10=>Omega-antiOmega
61 // MASS SCALING RESPECT TO PIONS
62 // MASS 0=>PI, 1=>K, 2=>ETA,3=>OMEGA,4=>ETA',5=>PHI
63 const Double_t khm[11] = {0.1396, 0.494,0.547, 0.782, 0.957, 1.02,
64 // MASS 6=>BARYON-BARYONBAR
66 // MASS 7=>Lambda-antiLambda
70 // MASS 9=>Omega-antiOmega
72 // MASS 10=>Lambda(1520)
74 // VALUE MESON/PI AT 5 GEV
75 const Double_t kfmax[11]={1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.};
76 Double_t f5=TMath::Power(((sqrt(100.018215)+2.)/(sqrt(100.+khm[np]*khm[np])+2.0)),12.3);
77 Double_t kfmax2=f5/kfmax[np];
79 Double_t ptpion=100.*PtPion(&pt, (Double_t*) 0);
80 Double_t fmtscal=TMath::Power(((sqrt(pt*pt+0.018215)+2.)/
81 (sqrt(pt*pt+khm[np]*khm[np])+2.0)),12.3)/ kfmax2;
82 return fmtscal*ptpion;
84 //=============================================================
86 Double_t AliGenSTRANGElib::PtPion(const Double_t *px, const Double_t *)
88 // Pion transverse momentum distribtuion taken
89 // from AliGenMUONlib class, version 3.01 of aliroot
90 // PT-PARAMETERIZATION CDF, PRL 61(88) 1819
91 // POWER LAW FOR PT > 500 MEV
92 // MT SCALING BELOW (T=160 MEV)
94 const Double_t kp0 = 1.3;
95 const Double_t kxn = 8.28;
96 const Double_t kxlim=0.5;
97 const Double_t kt=0.160;
98 const Double_t kxmpi=0.139;
100 Double_t y, y1, kxmpi2, ynorm, a;
103 y1=TMath::Power(kp0/(kp0+kxlim),kxn);
105 ynorm=kb*(TMath::Exp(-sqrt(kxlim*kxlim+kxmpi2)/kt));
108 y=a*TMath::Power(kp0/(kp0+x),kxn);
110 y=kb*TMath::Exp(-sqrt(x*x+kxmpi2)/kt);
114 //============================================================================
116 Double_t AliGenSTRANGElib::PtKaon( const Double_t *px, const Double_t *)
120 //____________________________________________________________
122 return PtScal(*px,1); // 1==> Kaon in the PtScal function
125 Double_t AliGenSTRANGElib::YKaon( const Double_t *py, const Double_t *)
128 //____________________________________________________________
130 const Double_t ka = 1000.;
131 const Double_t kdy = 4.*4;
134 Double_t y=TMath::Abs(*py);
136 Double_t ex = y*y/(2*kdy*kdy);
137 return ka*TMath::Exp(-ex);
140 Int_t AliGenSTRANGElib::IpKaon(TRandom *ran)
142 // particle composition
145 Float_t random = ran->Rndm();
146 Float_t random2 = ran->Rndm();
158 return 130; // K^0 short
160 return 310; // K^0 long
165 //============================================================================
166 //============================================================================
168 Double_t AliGenSTRANGElib::PtPhi( const Double_t *px, const Double_t *)
172 //____________________________________________________________
174 return PtScal(*px,5); // 5==> Phi in the PtScal function
177 Double_t AliGenSTRANGElib::YPhi( const Double_t *py, const Double_t *)
180 //____________________________________________________________
182 const Double_t ka = 1000.;
183 const Double_t kdy = 4.*4;
186 Double_t y=TMath::Abs(*py);
188 Double_t ex = y*y/(2*kdy*kdy);
189 return ka*TMath::Exp(-ex);
192 Int_t AliGenSTRANGElib::IpPhi(TRandom *)
194 // particle composition
200 //===================================================================
201 //============================================================================
203 Double_t AliGenSTRANGElib::PtLambda( const Double_t *px, const Double_t *)
207 //____________________________________________________________
209 return PtScal(*px,7); // 7==> Lambda-antiLambda in the PtScal function
212 Double_t AliGenSTRANGElib::YLambda( const Double_t *py, const Double_t *)
215 //____________________________________________________________
217 const Double_t ka = 1000.;
218 const Double_t kdy = 4.*4;
221 Double_t y=TMath::Abs(*py);
223 Double_t ex = y*y/(2*kdy*kdy);
224 return ka*TMath::Exp(-ex);
227 Int_t AliGenSTRANGElib::IpLambda(TRandom *ran)
229 // particle composition
230 // generation of fixed type of particle
232 Float_t random = ran->Rndm();
234 return 3122; // Lambda
236 return -3122; // Anti-Lambda
240 //============================================================================
242 Double_t AliGenSTRANGElib::PtXiMinus( const Double_t *px, const Double_t *)
246 //____________________________________________________________
248 return PtScal(*px,8); // 8==> Xi-antiXi in the PtScal function
251 Double_t AliGenSTRANGElib::YXiMinus( const Double_t *py, const Double_t *)
254 //____________________________________________________________
256 const Double_t ka = 1000.;
257 const Double_t kdy = 4.*4;
260 Double_t y=TMath::Abs(*py);
262 Double_t ex = y*y/(2*kdy*kdy);
263 return ka*TMath::Exp(-ex);
266 Int_t AliGenSTRANGElib::IpXiMinus(TRandom *ran)
268 // particle composition
269 // generation of fixed type of particle
271 Float_t random = ran->Rndm();
279 //============================================================================
281 Double_t AliGenSTRANGElib::PtOmegaMinus( const Double_t *px, const Double_t *)
285 //____________________________________________________________
287 return PtScal(*px,9); // 9==> Omega-antiOmega in the PtScal function
290 Double_t AliGenSTRANGElib::YOmegaMinus( const Double_t *py, const Double_t *)
293 //____________________________________________________________
295 const Double_t ka = 1000.;
296 const Double_t kdy = 4.*4;
299 Double_t y=TMath::Abs(*py);
301 Double_t ex = y*y/(2*kdy*kdy);
302 return ka*TMath::Exp(-ex);
305 Int_t AliGenSTRANGElib::IpOmegaMinus(TRandom * ran)
307 // particle composition
308 // generation of fixed type of particle
311 Float_t random = ran->Rndm();
313 return 3334; // Omega-
315 return -3334; // Omega+
319 //============================================================================
321 Double_t AliGenSTRANGElib::PtLambda1520( const Double_t *px, const Double_t *)
325 //____________________________________________________________
327 return PtScal(*px,10); // 10=> Lambda(1520) in the PtScal function
330 Double_t AliGenSTRANGElib::YLambda1520( const Double_t *py, const Double_t *)
333 //____________________________________________________________
335 const Double_t ka = 1000.;
336 const Double_t kdy = 4.;
339 Double_t y=TMath::Abs(*py);
341 Double_t ex = y*y/(2*kdy*kdy);
342 return ka*TMath::Exp(-ex);
345 Int_t AliGenSTRANGElib::IpLambda1520(TRandom * ran)
347 // particle composition
348 // generation of fixed type of particle
351 Float_t random = ran->Rndm();
353 return 3124; // Lambda(1520)
355 return -3124; // antiLambda(1520)
359 //============================================================================
361 typedef Double_t (*GenFunc) (const Double_t*, const Double_t*);
362 GenFunc AliGenSTRANGElib::GetPt(Int_t param, const char* /*tname*/) const
364 // Return pinter to pT parameterisation
389 printf("<AliGenSTRANGElib::GetPt> unknown parametrisationn");
394 GenFunc AliGenSTRANGElib::GetY(Int_t param, const char* /*tname*/) const
396 // Return pointer to Y parameterisation
420 printf("<AliGenSTRANGElib::GetY> unknown parametrisationn");
424 typedef Int_t (*GenFuncIp) (TRandom *);
425 GenFuncIp AliGenSTRANGElib::GetIp(Int_t param, const char* /*tname*/) const
427 // Return pointer to particle composition
451 printf("<AliGenSTRANGElib::GetIp> unknown parametrisationn");