AliWarning instead of AliFatal
[u/mrichter/AliRoot.git] / EVGEN / AliGenMUONlib.h
CommitLineData
d90f80fd 1#ifndef ALIGENMUONLIB_H
2#define ALIGENMUONLIB_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
53904666 8// Library class for particle pt and y distributions used for
9// muon spectrometer simulations.
10// To be used with AliGenParam.
11//
12// andreas.morsch@cern.ch
13
b22ee262 14#include "AliGenLib.h"
886b6f73 15
fe4da5cc 16class AliGenMUONlib :
65fb704d 17 public AliGenLib
fe4da5cc 18{
19 public:
88e5db43 20 enum constants{kPhi, kOmega, kEta, kJpsi, kJpsiFamily, kPsiP, kJpsiFromB, kUpsilon, kUpsilonFamily,
960a2827 21 kUpsilonP, kUpsilonPP, kCharm, kBeauty, kPion, kKaon, kChic, kChic0, kChic1, kChic2 };
34f60c01 22
fac5662b 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;
26 private:
34f60c01 27
753690b0 28// pions
d90f80fd 29 static Double_t PtPion(Double_t *px, Double_t *dummy);
fe4da5cc 30 static Double_t PtScal(Double_t pt, Int_t np);
d90f80fd 31 static Double_t YPion( Double_t *py, Double_t *dummy);
65fb704d 32 static Int_t IpPion(TRandom *ran);
753690b0 33// kaons
d90f80fd 34 static Double_t PtKaon(Double_t *px, Double_t *dummy);
35 static Double_t YKaon( Double_t *py, Double_t *dummy);
65fb704d 36 static Int_t IpKaon(TRandom *ran);
fe4da5cc 37// Phi
d90f80fd 38 static Double_t PtPhi( Double_t *px, Double_t *dummy);
39 static Double_t YPhi( Double_t *px, Double_t *dummy);
65fb704d 40 static Int_t IpPhi(TRandom *ran);
89512a3b 41// Omega
42 static Double_t PtOmega( Double_t *px, Double_t *dummy);
43 static Double_t YOmega( Double_t *px, Double_t *dummy);
44 static Int_t IpOmega(TRandom *ran);
45// Eta
46 static Double_t PtEta( Double_t *px, Double_t *dummy);
47 static Double_t YEta( Double_t *px, Double_t *dummy);
48 static Int_t IpEta(TRandom *ran);
fe4da5cc 49// J/Psi
d90f80fd 50 static Double_t PtJpsi( Double_t *px, Double_t *dummy);
0e137c25 51 static Double_t PtJpsiCDFscaled( Double_t *px, Double_t *dummy);
9ff13849 52 static Double_t PtJpsiCDFscaledPP( Double_t *px, Double_t *dummy);
e8e2c57e 53 static Double_t PtJpsiCDFscaledPP10( Double_t *px, Double_t *dummy);
54 static Double_t PtJpsiCDFscaledold( Double_t *px, Double_t *dummy);
55 static Double_t PtJpsiCDFscaledPPold( Double_t *px, Double_t *dummy);
d90f80fd 56 static Double_t YJpsi(Double_t *py, Double_t *dummy);
05932df6 57 static Double_t PtJpsiPbPb( Double_t *px, Double_t *dummy);
17d28ba5 58 static Double_t PtJpsiBPbPb( Double_t *px, Double_t *dummy);
05932df6 59 static Double_t YJpsiPbPb(Double_t *py, Double_t *dummy);
0e137c25 60 static Double_t YJpsiCDFscaled(Double_t *py, Double_t *dummy);
9ff13849 61 static Double_t YJpsiCDFscaledPP( Double_t *px, Double_t *dummy);
e8e2c57e 62 static Double_t YJpsiCDFscaledPP10( Double_t *px, Double_t *dummy);
63 static Double_t YJpsiCDFscaledold(Double_t *py, Double_t *dummy);
64 static Double_t YJpsiCDFscaledPPold( Double_t *px, Double_t *dummy);
bb6e81ac 65 static Double_t PtJpsiPP( Double_t *px, Double_t *dummy);
66 static Double_t YJpsiPP(Double_t *py, Double_t *dummy);
17d28ba5 67 static Double_t YJpsiBPbPb(Double_t *py, Double_t *dummy);
65fb704d 68 static Int_t IpJpsi(TRandom *ran);
0ad09590 69 static Int_t IpJpsiFamily(TRandom *ran);
88e5db43 70 static Int_t IpPsiP(TRandom *ran);
4ca8d070 71 static Double_t PtJpsiFlat( Double_t *px, Double_t *dummy );
72 static Double_t YJpsiFlat(Double_t *py, Double_t *dummy);
88e5db43 73
fe4da5cc 74// Upsilon
d90f80fd 75 static Double_t PtUpsilon( Double_t *px, Double_t *dummy );
0e137c25 76 static Double_t PtUpsilonCDFscaled( Double_t *px, Double_t *dummy );
9ff13849 77 static Double_t PtUpsilonCDFscaledPP( Double_t *px, Double_t *dummy );
d90f80fd 78 static Double_t YUpsilon(Double_t *py, Double_t *dummy);
0e137c25 79 static Double_t YUpsilonCDFscaled(Double_t *py, Double_t *dummy);
9ff13849 80 static Double_t YUpsilonCDFscaledPP( Double_t *px, Double_t *dummy );
05932df6 81 static Double_t PtUpsilonPbPb( Double_t *px, Double_t *dummy );
82 static Double_t YUpsilonPbPb(Double_t *py, Double_t *dummy);
bb6e81ac 83 static Double_t PtUpsilonPP( Double_t *px, Double_t *dummy );
84 static Double_t YUpsilonPP(Double_t *py, Double_t *dummy);
65fb704d 85 static Int_t IpUpsilon(TRandom *ran);
0ad09590 86 static Int_t IpUpsilonFamily(TRandom *ran);
88e5db43 87 static Int_t IpUpsilonP(TRandom *ran);
88 static Int_t IpUpsilonPP(TRandom *ran);
4ca8d070 89 static Double_t PtUpsilonFlat( Double_t *px, Double_t *dummy );
90 static Double_t YUpsilonFlat(Double_t *py, Double_t *dummy);
fe4da5cc 91//
92// Charm
d90f80fd 93 static Double_t PtCharm( Double_t *px, Double_t *dummy );
bd0276a8 94 static Double_t PtCharmCentral( Double_t *px, Double_t *dummy );
e8e2c57e 95 static Double_t PtCharmF0M0S0PP( Double_t *px, Double_t *dummy );
96 static Double_t PtCharmF1M0S0PP( Double_t *px, Double_t *dummy );
97 static Double_t PtCharmF2M0S0PP( Double_t *px, Double_t *dummy );
98 static Double_t PtCharmF0M1S0PP( Double_t *px, Double_t *dummy );
99 static Double_t PtCharmF0M2S0PP( Double_t *px, Double_t *dummy );
100 static Double_t PtCharmF0M0S1PP( Double_t *px, Double_t *dummy );
101 static Double_t PtCharmF0M0S2PP( Double_t *px, Double_t *dummy );
102 static Double_t PtCharmF0M0S3PP( Double_t *px, Double_t *dummy );
103 static Double_t PtCharmF0M0S4PP( Double_t *px, Double_t *dummy );
104 static Double_t PtCharmF0M0S5PP( Double_t *px, Double_t *dummy );
105 static Double_t PtCharmF0M0S6PP( Double_t *px, Double_t *dummy );
d90f80fd 106 static Double_t YCharm(Double_t *py, Double_t *dummy);
e8e2c57e 107 static Double_t YCharmF0M0S0PP(Double_t *py, Double_t *dummy);
108 static Double_t YCharmF1M0S0PP(Double_t *py, Double_t *dummy);
109 static Double_t YCharmF2M0S0PP(Double_t *py, Double_t *dummy);
110 static Double_t YCharmF0M1S0PP(Double_t *py, Double_t *dummy);
111 static Double_t YCharmF0M2S0PP(Double_t *py, Double_t *dummy);
112 static Double_t YCharmF0M0S1PP(Double_t *py, Double_t *dummy);
113 static Double_t YCharmF0M0S2PP(Double_t *py, Double_t *dummy);
114 static Double_t YCharmF0M0S3PP(Double_t *py, Double_t *dummy);
115 static Double_t YCharmF0M0S4PP(Double_t *py, Double_t *dummy);
116 static Double_t YCharmF0M0S5PP(Double_t *py, Double_t *dummy);
117 static Double_t YCharmF0M0S6PP(Double_t *py, Double_t *dummy);
65fb704d 118 static Int_t IpCharm(TRandom *ran);
fe4da5cc 119//
120// Beauty
d90f80fd 121 static Double_t PtBeauty( Double_t *px, Double_t *dummy );
e8e2c57e 122 static Double_t PtBeautyF0M0S0PP( Double_t *px, Double_t *dummy );
123 static Double_t PtBeautyF1M0S0PP( Double_t *px, Double_t *dummy );
124 static Double_t PtBeautyF2M0S0PP( Double_t *px, Double_t *dummy );
125 static Double_t PtBeautyF0M1S0PP( Double_t *px, Double_t *dummy );
126 static Double_t PtBeautyF0M2S0PP( Double_t *px, Double_t *dummy );
127 static Double_t PtBeautyF0M0S1PP( Double_t *px, Double_t *dummy );
128 static Double_t PtBeautyF0M0S2PP( Double_t *px, Double_t *dummy );
129 static Double_t PtBeautyF0M0S3PP( Double_t *px, Double_t *dummy );
130 static Double_t PtBeautyF0M0S4PP( Double_t *px, Double_t *dummy );
131 static Double_t PtBeautyF0M0S5PP( Double_t *px, Double_t *dummy );
132 static Double_t PtBeautyF0M0S6PP( Double_t *px, Double_t *dummy );
d90f80fd 133 static Double_t YBeauty(Double_t *py, Double_t *dummy);
e8e2c57e 134 static Double_t YBeautyF0M0S0PP(Double_t *py, Double_t *dummy);
135 static Double_t YBeautyF1M0S0PP(Double_t *py, Double_t *dummy);
136 static Double_t YBeautyF2M0S0PP(Double_t *py, Double_t *dummy);
137 static Double_t YBeautyF0M1S0PP(Double_t *py, Double_t *dummy);
138 static Double_t YBeautyF0M2S0PP(Double_t *py, Double_t *dummy);
139 static Double_t YBeautyF0M0S1PP(Double_t *py, Double_t *dummy);
140 static Double_t YBeautyF0M0S2PP(Double_t *py, Double_t *dummy);
141 static Double_t YBeautyF0M0S3PP(Double_t *py, Double_t *dummy);
142 static Double_t YBeautyF0M0S4PP(Double_t *py, Double_t *dummy);
143 static Double_t YBeautyF0M0S5PP(Double_t *py, Double_t *dummy);
144 static Double_t YBeautyF0M0S6PP(Double_t *py, Double_t *dummy);
145 static Double_t PtBeautyCentral( Double_t *px, Double_t *dummy );
65fb704d 146 static Int_t IpBeauty(TRandom *ran);
fe4da5cc 147//
00935af2 148
149 // Chi 1c 2c
960a2827 150 static Double_t PtChic0( Double_t *px, Double_t *dummy);
151 static Double_t YChic0(Double_t *py, Double_t *dummy);
152 static Int_t IpChic0(TRandom *ran);
00935af2 153
960a2827 154 static Double_t PtChic1( Double_t *px, Double_t *dummy);
155 static Double_t YChic1(Double_t *py, Double_t *dummy);
156 static Int_t IpChic1(TRandom *ran);
00935af2 157
960a2827 158 static Double_t PtChic2( Double_t *px, Double_t *dummy);
159 static Double_t YChic2(Double_t *py, Double_t *dummy);
160 static Int_t IpChic2(TRandom *ran);
00935af2 161
960a2827 162 static Double_t PtChic( Double_t *px, Double_t *dummy);
163 static Double_t YChic(Double_t *py, Double_t *dummy);
164 static Int_t IpChic(TRandom *ran);
00935af2 165
166//
167
05932df6 168
169 static Float_t Interpolate(Float_t x, Float_t* y, Float_t x0,
170 Float_t dx,
171 Int_t n, Int_t no);
172
762c0d1d 173 ClassDef(AliGenMUONlib,0) // Library providing y and pT parameterisations
fe4da5cc 174};
175#endif
176
753690b0 177
178
179
180
181
182