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