3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 /////////////////////////////////////////////////////////////////////////////
10 // Implementation of AliGenLib for GSI simulations. //
11 // It is an extension of AliMUONLib providing the option for different //
12 // parametrisations of pt, y for every particle type //
14 // Responsible: Andres.Sandoval@cern.ch //
16 /////////////////////////////////////////////////////////////////////////////
18 #include "AliGenLib.h"
21 class AliGenGSIlib :public AliGenLib {
23 GenFunc GetPt(Int_t param, const char * tname=0) const;
24 GenFunc GetY(Int_t param, const char * tname=0) const;
25 GenFuncIp GetIp(Int_t param, const char * tname=0) const;
27 enum constants{kUpsilon, kJPsi, kCharm, kBeauty, kEta, kEtaprime, kOmega, kRho, kKaon, kPion, kPhi, kLambda, kBaryons};
31 static Double_t PtScal(Double_t pt, Int_t np);
34 static Int_t IpUpsilon(TRandom *ran);
36 static Double_t PtUpsilonRitman( const Double_t *px, const Double_t *dummy );
37 static Double_t YUpsilonRitman(const Double_t *py, const Double_t *dummy);
39 static Double_t PtUpsilonFlat( const Double_t *px, const Double_t *dummy );
40 static Double_t YUpsilonFlat(const Double_t *py, const Double_t *dummy);
42 static Double_t PtUpsilonKarel( const Double_t *px, const Double_t *dummy );
43 static Double_t YUpsilonKarel(const Double_t *py, const Double_t *dummy);
45 static Double_t PtUpsilonMUON( const Double_t *px, const Double_t *dummy );
46 static Double_t YUpsilonMUON(const Double_t *py, const Double_t *dummy);
50 static Int_t IpJpsi(TRandom *ran);
52 static Double_t PtJpsiFlat( const Double_t *px, const Double_t *dummy );
53 static Double_t YJpsiFlat(const Double_t *py, const Double_t *dummy);
55 static Double_t PtJpsiMUON( const Double_t *px, const Double_t *dummy );
56 static Double_t YJpsiMUON(const Double_t *py, const Double_t *dummy);
58 static Double_t PtJpsiRitman( const Double_t *px, const Double_t *dummy );
61 // static Double_t PtJpsi( Double_t *px, Double_t *dummy );
62 // static Double_t YJpsi(Double_t *py, Double_t *dummy);
63 // static Int_t IpJpsi(TRandom *ran);
67 static Int_t IpCharm(TRandom *ran);
68 static Double_t PtCharmFlat( const Double_t *px, const Double_t *dummy );
69 static Double_t PtCharmMUON( const Double_t *px, const Double_t *dummy );
70 static Double_t PtCharmGSI( const Double_t *px, const Double_t *dummy );
71 static Double_t YCharm(const Double_t *py, const Double_t *dummy);
75 static Int_t IpBeauty(TRandom *ran);
76 static Double_t PtBeautyFlat( const Double_t *px, const Double_t *dummy );
77 static Double_t PtBeautyMUON( const Double_t *px, const Double_t *dummy );
78 static Double_t PtBeautyGSI( const Double_t *px, const Double_t *dummy );
79 static Double_t YBeauty(const Double_t *py, const Double_t *dummy);
83 static Int_t IpEta(TRandom *ran);
84 static Double_t PtEtaPHOS( const Double_t *px, const Double_t *dummy );
85 static Double_t YEtaPHOS(const Double_t *py, const Double_t *dummy);
89 static Int_t IpEtaprime(TRandom *ran);
90 static Double_t PtEtaprimePHOS( const Double_t *px, const Double_t *dummy );
91 static Double_t YEtaprimePHOS(const Double_t *py, const Double_t *dummy);
95 static Int_t IpOmega(TRandom *ran);
96 static Double_t PtOmega( const Double_t *px, const Double_t *dummy );
97 static Double_t YOmega(const Double_t *py, const Double_t *dummy);
101 static Int_t IpRho(TRandom *ran);
102 static Double_t PtRho( const Double_t *px, const Double_t *dummy );
103 static Double_t YRho(const Double_t *py, const Double_t *dummy);
108 static Int_t IpKaonPHOS(TRandom *ran);
109 static Double_t PtKaonPHOS( const Double_t *px, const Double_t *dummy );
110 static Double_t YKaonPHOS(const Double_t *py, const Double_t *dummy);
114 static Int_t IpPionPHOS(TRandom *ran);
115 static Double_t PtPion( const Double_t *px, const Double_t *dummy );
116 static Double_t YPion(const Double_t *py, const Double_t *dummy);
120 static Int_t IpPhi(TRandom *ran);
121 static Double_t PtPhiPHOS( const Double_t *px, const Double_t *dummy );
122 static Double_t YPhiPHOS(const Double_t *py, const Double_t *dummy);
126 // static Double_t PtLambda( Double_t *px, Double_t *dummy );
127 // static Double_t YLambda(Double_t *py, Double_t *dummy);
128 // static Int_t IpLambda(TRandom *ran);
132 static Int_t IpBaryons(TRandom *ran);
133 static Double_t PtBaryons( const Double_t *px, const Double_t *dummy );
134 static Double_t YBaryons(const Double_t *py, const Double_t *dummy);
138 ClassDef(AliGenGSIlib,0)