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