Correction in destructor.
[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
75e0cc59 29 static Double_t PtPion(const Double_t *px, const Double_t *dummy);
fe4da5cc 30 static Double_t PtScal(Double_t pt, Int_t np);
75e0cc59 31 static Double_t YPion( const Double_t *py, const Double_t *dummy);
65fb704d 32 static Int_t IpPion(TRandom *ran);
753690b0 33// kaons
75e0cc59 34 static Double_t PtKaon(const Double_t *px, const Double_t *dummy);
35 static Double_t YKaon( const Double_t *py, const Double_t *dummy);
65fb704d 36 static Int_t IpKaon(TRandom *ran);
fe4da5cc 37// Phi
75e0cc59 38 static Double_t PtPhi( const Double_t *px, const Double_t *dummy);
39 static Double_t YPhi( const Double_t *px, const Double_t *dummy);
65fb704d 40 static Int_t IpPhi(TRandom *ran);
89512a3b 41// Omega
75e0cc59 42 static Double_t PtOmega( const Double_t *px, const Double_t *dummy);
43 static Double_t YOmega( const Double_t *px, const Double_t *dummy);
89512a3b 44 static Int_t IpOmega(TRandom *ran);
45// Eta
75e0cc59 46 static Double_t PtEta( const Double_t *px, const Double_t *dummy);
47 static Double_t YEta( const Double_t *px, const Double_t *dummy);
89512a3b 48 static Int_t IpEta(TRandom *ran);
fe4da5cc 49// J/Psi
a4f206bf 50 static Double_t PtJpsiPP7000( const Double_t *px, const Double_t *dummy);
51 static Double_t PtJpsiPP2760( const Double_t *px, const Double_t *dummy);
52 static Double_t PtJpsiPbPb2760( const Double_t *px, const Double_t *dummy);
75e0cc59 53 static Double_t PtJpsi( const Double_t *px, const Double_t *dummy);
54 static Double_t PtJpsiCDFscaled( const Double_t *px, const Double_t *dummy);
55 static Double_t PtJpsiCDFscaledPP( const Double_t *px, const Double_t *dummy);
56 static Double_t PtJpsiCDFscaledPP10( const Double_t *px, const Double_t *dummy);
9fd56238 57 static Double_t PtJpsiCDFscaledPP9( const Double_t *px, const Double_t *dummy);
58 static Double_t PtJpsiCDFscaledPP7( const Double_t *px, const Double_t *dummy);
59 static Double_t PtJpsiCDFscaledPP4( const Double_t *px, const Double_t *dummy);
a4f206bf 60 static Double_t PtJpsiCDFscaledPP3( const Double_t *px, const Double_t *dummy);
61 static Double_t PtJpsiCDFscaledPP2( const Double_t *px, const Double_t *dummy);
9fd56238 62 static Double_t PtJpsiCDFscaledPPb9( const Double_t *px, const Double_t *dummy);
63 static Double_t PtJpsiCDFscaledPbP9( const Double_t *px, const Double_t *dummy);
64 static Double_t PtJpsiCDFscaledPbPb4( const Double_t *px, const Double_t *dummy);
75e0cc59 65 static Double_t YJpsi(const Double_t *py, const Double_t *dummy);
66 static Double_t PtJpsiPbPb( const Double_t *px, const Double_t *dummy);
67 static Double_t PtJpsiBPbPb( const Double_t *px, const Double_t *dummy);
a4f206bf 68 static Double_t YJpsiPP7000( const Double_t *px, const Double_t *dummy);
69 static Double_t YJpsiPP2760( const Double_t *px, const Double_t *dummy);
70 static Double_t YJpsiPbPb2760( const Double_t *px, const Double_t *dummy);
75e0cc59 71 static Double_t YJpsiPbPb(const Double_t *py, const Double_t *dummy);
72 static Double_t YJpsiCDFscaled(const Double_t *py, const Double_t *dummy);
73 static Double_t YJpsiCDFscaledPP( const Double_t *px, const Double_t *dummy);
74 static Double_t YJpsiCDFscaledPP10( const Double_t *px, const Double_t *dummy);
9fd56238 75 static Double_t YJpsiCDFscaledPP9( const Double_t *px, const Double_t *dummy);
76 static Double_t YJpsiCDFscaledPP9dummy(Double_t px);
77 static Double_t YJpsiCDFscaledPP7( const Double_t *px, const Double_t *dummy);
78 static Double_t YJpsiCDFscaledPP4( const Double_t *px, const Double_t *dummy);
a4f206bf 79 static Double_t YJpsiCDFscaledPP3( const Double_t *px, const Double_t *dummy);
80 static Double_t YJpsiCDFscaledPP2( const Double_t *px, const Double_t *dummy);
9fd56238 81 static Double_t YJpsiCDFscaledPPb9( const Double_t *px, const Double_t *dummy);
82 static Double_t YJpsiCDFscaledPbP9( const Double_t *px, const Double_t *dummy);
83 static Double_t YJpsiCDFscaledPbPb4( const Double_t *px, const Double_t *dummy);
75e0cc59 84 static Double_t PtJpsiPP( const Double_t *px, const Double_t *dummy);
85 static Double_t YJpsiPP(const Double_t *py, const Double_t *dummy);
86 static Double_t YJpsiBPbPb(const Double_t *py, const Double_t *dummy);
65fb704d 87 static Int_t IpJpsi(TRandom *ran);
0ad09590 88 static Int_t IpJpsiFamily(TRandom *ran);
88e5db43 89 static Int_t IpPsiP(TRandom *ran);
75e0cc59 90 static Double_t PtJpsiFlat( const Double_t *px, const Double_t *dummy );
91 static Double_t YJpsiFlat(const Double_t *py, const Double_t *dummy);
88e5db43 92
fe4da5cc 93// Upsilon
75e0cc59 94 static Double_t PtUpsilon( const Double_t *px, const Double_t *dummy );
95 static Double_t PtUpsilonCDFscaled( const Double_t *px, const Double_t *dummy );
96 static Double_t PtUpsilonCDFscaledPP( const Double_t *px, const Double_t *dummy );
b33adf51 97 static Double_t PtUpsilonCDFscaledPP10( const Double_t *px, const Double_t *dummy );
9fd56238 98 static Double_t PtUpsilonCDFscaledPP9( const Double_t *px, const Double_t *dummy );
99 static Double_t PtUpsilonCDFscaledPP7( const Double_t *px, const Double_t *dummy );
100 static Double_t PtUpsilonCDFscaledPP4( const Double_t *px, const Double_t *dummy );
101 static Double_t PtUpsilonCDFscaledPPb9( const Double_t *px, const Double_t *dummy );
102 static Double_t PtUpsilonCDFscaledPbP9( const Double_t *px, const Double_t *dummy );
103 static Double_t PtUpsilonCDFscaledPbPb4( const Double_t *px, const Double_t *dummy );
75e0cc59 104 static Double_t YUpsilon(const Double_t *py, const Double_t *dummy);
105 static Double_t YUpsilonCDFscaled(const Double_t *py, const Double_t *dummy);
106 static Double_t YUpsilonCDFscaledPP( const Double_t *px, const Double_t *dummy );
b33adf51 107 static Double_t YUpsilonCDFscaledPP10( const Double_t *px, const Double_t *dummy );
9fd56238 108 static Double_t YUpsilonCDFscaledPP9( const Double_t *px, const Double_t *dummy );
109 static Double_t YUpsilonCDFscaledPP9dummy(Double_t px);
110 static Double_t YUpsilonCDFscaledPP7( const Double_t *px, const Double_t *dummy );
111 static Double_t YUpsilonCDFscaledPP4( const Double_t *px, const Double_t *dummy );
112 static Double_t YUpsilonCDFscaledPPb9( const Double_t *px, const Double_t *dummy );
113 static Double_t YUpsilonCDFscaledPbP9( const Double_t *px, const Double_t *dummy );
114 static Double_t YUpsilonCDFscaledPbPb4( const Double_t *px, const Double_t *dummy );
75e0cc59 115 static Double_t PtUpsilonPbPb( const Double_t *px, const Double_t *dummy );
116 static Double_t YUpsilonPbPb(const Double_t *py, const Double_t *dummy);
117 static Double_t PtUpsilonPP( const Double_t *px, const Double_t *dummy );
118 static Double_t YUpsilonPP(const Double_t *py, const Double_t *dummy);
65fb704d 119 static Int_t IpUpsilon(TRandom *ran);
0ad09590 120 static Int_t IpUpsilonFamily(TRandom *ran);
88e5db43 121 static Int_t IpUpsilonP(TRandom *ran);
122 static Int_t IpUpsilonPP(TRandom *ran);
75e0cc59 123 static Double_t PtUpsilonFlat( const Double_t *px, const Double_t *dummy );
124 static Double_t YUpsilonFlat(const Double_t *py, const Double_t *dummy);
fe4da5cc 125//
126// Charm
75e0cc59 127 static Double_t PtCharm( const Double_t *px, const Double_t *dummy );
128 static Double_t PtCharmCentral( const Double_t *px, const Double_t *dummy );
129 static Double_t PtCharmF0M0S0PP( const Double_t *px, const Double_t *dummy );
130 static Double_t PtCharmF1M0S0PP( const Double_t *px, const Double_t *dummy );
131 static Double_t PtCharmF2M0S0PP( const Double_t *px, const Double_t *dummy );
132 static Double_t PtCharmF0M1S0PP( const Double_t *px, const Double_t *dummy );
133 static Double_t PtCharmF0M2S0PP( const Double_t *px, const Double_t *dummy );
134 static Double_t PtCharmF0M0S1PP( const Double_t *px, const Double_t *dummy );
135 static Double_t PtCharmF0M0S2PP( const Double_t *px, const Double_t *dummy );
136 static Double_t PtCharmF0M0S3PP( const Double_t *px, const Double_t *dummy );
137 static Double_t PtCharmF0M0S4PP( const Double_t *px, const Double_t *dummy );
138 static Double_t PtCharmF0M0S5PP( const Double_t *px, const Double_t *dummy );
139 static Double_t PtCharmF0M0S6PP( const Double_t *px, const Double_t *dummy );
140 static Double_t YCharm(const Double_t *py, const Double_t *dummy);
141 static Double_t YCharmF0M0S0PP(const Double_t *py, const Double_t *dummy);
142 static Double_t YCharmF1M0S0PP(const Double_t *py, const Double_t *dummy);
143 static Double_t YCharmF2M0S0PP(const Double_t *py, const Double_t *dummy);
144 static Double_t YCharmF0M1S0PP(const Double_t *py, const Double_t *dummy);
145 static Double_t YCharmF0M2S0PP(const Double_t *py, const Double_t *dummy);
146 static Double_t YCharmF0M0S1PP(const Double_t *py, const Double_t *dummy);
147 static Double_t YCharmF0M0S2PP(const Double_t *py, const Double_t *dummy);
148 static Double_t YCharmF0M0S3PP(const Double_t *py, const Double_t *dummy);
149 static Double_t YCharmF0M0S4PP(const Double_t *py, const Double_t *dummy);
150 static Double_t YCharmF0M0S5PP(const Double_t *py, const Double_t *dummy);
151 static Double_t YCharmF0M0S6PP(const Double_t *py, const Double_t *dummy);
65fb704d 152 static Int_t IpCharm(TRandom *ran);
fe4da5cc 153//
154// Beauty
75e0cc59 155 static Double_t PtBeauty( const Double_t *px, const Double_t *dummy );
156 static Double_t PtBeautyF0M0S0PP( const Double_t *px, const Double_t *dummy );
157 static Double_t PtBeautyF1M0S0PP( const Double_t *px, const Double_t *dummy );
158 static Double_t PtBeautyF2M0S0PP( const Double_t *px, const Double_t *dummy );
159 static Double_t PtBeautyF0M1S0PP( const Double_t *px, const Double_t *dummy );
160 static Double_t PtBeautyF0M2S0PP( const Double_t *px, const Double_t *dummy );
161 static Double_t PtBeautyF0M0S1PP( const Double_t *px, const Double_t *dummy );
162 static Double_t PtBeautyF0M0S2PP( const Double_t *px, const Double_t *dummy );
163 static Double_t PtBeautyF0M0S3PP( const Double_t *px, const Double_t *dummy );
164 static Double_t PtBeautyF0M0S4PP( const Double_t *px, const Double_t *dummy );
165 static Double_t PtBeautyF0M0S5PP( const Double_t *px, const Double_t *dummy );
166 static Double_t PtBeautyF0M0S6PP( const Double_t *px, const Double_t *dummy );
167 static Double_t YBeauty(const Double_t *py, const Double_t *dummy);
168 static Double_t YBeautyF0M0S0PP(const Double_t *py, const Double_t *dummy);
169 static Double_t YBeautyF1M0S0PP(const Double_t *py, const Double_t *dummy);
170 static Double_t YBeautyF2M0S0PP(const Double_t *py, const Double_t *dummy);
171 static Double_t YBeautyF0M1S0PP(const Double_t *py, const Double_t *dummy);
172 static Double_t YBeautyF0M2S0PP(const Double_t *py, const Double_t *dummy);
173 static Double_t YBeautyF0M0S1PP(const Double_t *py, const Double_t *dummy);
174 static Double_t YBeautyF0M0S2PP(const Double_t *py, const Double_t *dummy);
175 static Double_t YBeautyF0M0S3PP(const Double_t *py, const Double_t *dummy);
176 static Double_t YBeautyF0M0S4PP(const Double_t *py, const Double_t *dummy);
177 static Double_t YBeautyF0M0S5PP(const Double_t *py, const Double_t *dummy);
178 static Double_t YBeautyF0M0S6PP(const Double_t *py, const Double_t *dummy);
179 static Double_t PtBeautyCentral( const Double_t *px, const Double_t *dummy );
65fb704d 180 static Int_t IpBeauty(TRandom *ran);
fe4da5cc 181//
00935af2 182
183 // Chi 1c 2c
75e0cc59 184 static Double_t PtChic0( const Double_t *px, const Double_t *dummy);
185 static Double_t YChic0(const Double_t *py, const Double_t *dummy);
960a2827 186 static Int_t IpChic0(TRandom *ran);
00935af2 187
75e0cc59 188 static Double_t PtChic1( const Double_t *px, const Double_t *dummy);
189 static Double_t YChic1(const Double_t *py, const Double_t *dummy);
960a2827 190 static Int_t IpChic1(TRandom *ran);
00935af2 191
75e0cc59 192 static Double_t PtChic2( const Double_t *px, const Double_t *dummy);
193 static Double_t YChic2(const Double_t *py, const Double_t *dummy);
960a2827 194 static Int_t IpChic2(TRandom *ran);
00935af2 195
75e0cc59 196 static Double_t PtChic( const Double_t *px, const Double_t *dummy);
197 static Double_t YChic(const Double_t *py, const Double_t *dummy);
960a2827 198 static Int_t IpChic(TRandom *ran);
00935af2 199
200//
201
05932df6 202
203 static Float_t Interpolate(Float_t x, Float_t* y, Float_t x0,
204 Float_t dx,
205 Int_t n, Int_t no);
206
762c0d1d 207 ClassDef(AliGenMUONlib,0) // Library providing y and pT parameterisations
fe4da5cc 208};
209#endif
210
753690b0 211
212
213
214
215
216