Background subraction disabled since not correct. (Elena Bruna)
[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);
75e0cc59 54 static Double_t YJpsi(const Double_t *py, const Double_t *dummy);
55 static Double_t PtJpsiPbPb( const Double_t *px, const Double_t *dummy);
56 static Double_t PtJpsiBPbPb( const Double_t *px, const Double_t *dummy);
57 static Double_t YJpsiPbPb(const Double_t *py, const Double_t *dummy);
58 static Double_t YJpsiCDFscaled(const Double_t *py, const Double_t *dummy);
59 static Double_t YJpsiCDFscaledPP( const Double_t *px, const Double_t *dummy);
60 static Double_t YJpsiCDFscaledPP10( const Double_t *px, const Double_t *dummy);
75e0cc59 61 static Double_t PtJpsiPP( const Double_t *px, const Double_t *dummy);
62 static Double_t YJpsiPP(const Double_t *py, const Double_t *dummy);
63 static Double_t YJpsiBPbPb(const Double_t *py, const Double_t *dummy);
65fb704d 64 static Int_t IpJpsi(TRandom *ran);
0ad09590 65 static Int_t IpJpsiFamily(TRandom *ran);
88e5db43 66 static Int_t IpPsiP(TRandom *ran);
75e0cc59 67 static Double_t PtJpsiFlat( const Double_t *px, const Double_t *dummy );
68 static Double_t YJpsiFlat(const Double_t *py, const Double_t *dummy);
88e5db43 69
fe4da5cc 70// Upsilon
75e0cc59 71 static Double_t PtUpsilon( const Double_t *px, const Double_t *dummy );
72 static Double_t PtUpsilonCDFscaled( const Double_t *px, const Double_t *dummy );
73 static Double_t PtUpsilonCDFscaledPP( const Double_t *px, const Double_t *dummy );
b33adf51 74 static Double_t PtUpsilonCDFscaledPP10( const Double_t *px, const Double_t *dummy );
75e0cc59 75 static Double_t YUpsilon(const Double_t *py, const Double_t *dummy);
76 static Double_t YUpsilonCDFscaled(const Double_t *py, const Double_t *dummy);
77 static Double_t YUpsilonCDFscaledPP( const Double_t *px, const Double_t *dummy );
b33adf51 78 static Double_t YUpsilonCDFscaledPP10( const Double_t *px, const Double_t *dummy );
75e0cc59 79 static Double_t PtUpsilonPbPb( const Double_t *px, const Double_t *dummy );
80 static Double_t YUpsilonPbPb(const Double_t *py, const Double_t *dummy);
81 static Double_t PtUpsilonPP( const Double_t *px, const Double_t *dummy );
82 static Double_t YUpsilonPP(const Double_t *py, const Double_t *dummy);
65fb704d 83 static Int_t IpUpsilon(TRandom *ran);
0ad09590 84 static Int_t IpUpsilonFamily(TRandom *ran);
88e5db43 85 static Int_t IpUpsilonP(TRandom *ran);
86 static Int_t IpUpsilonPP(TRandom *ran);
75e0cc59 87 static Double_t PtUpsilonFlat( const Double_t *px, const Double_t *dummy );
88 static Double_t YUpsilonFlat(const Double_t *py, const Double_t *dummy);
fe4da5cc 89//
90// Charm
75e0cc59 91 static Double_t PtCharm( const Double_t *px, const Double_t *dummy );
92 static Double_t PtCharmCentral( const Double_t *px, const Double_t *dummy );
93 static Double_t PtCharmF0M0S0PP( const Double_t *px, const Double_t *dummy );
94 static Double_t PtCharmF1M0S0PP( const Double_t *px, const Double_t *dummy );
95 static Double_t PtCharmF2M0S0PP( const Double_t *px, const Double_t *dummy );
96 static Double_t PtCharmF0M1S0PP( const Double_t *px, const Double_t *dummy );
97 static Double_t PtCharmF0M2S0PP( const Double_t *px, const Double_t *dummy );
98 static Double_t PtCharmF0M0S1PP( const Double_t *px, const Double_t *dummy );
99 static Double_t PtCharmF0M0S2PP( const Double_t *px, const Double_t *dummy );
100 static Double_t PtCharmF0M0S3PP( const Double_t *px, const Double_t *dummy );
101 static Double_t PtCharmF0M0S4PP( const Double_t *px, const Double_t *dummy );
102 static Double_t PtCharmF0M0S5PP( const Double_t *px, const Double_t *dummy );
103 static Double_t PtCharmF0M0S6PP( const Double_t *px, const Double_t *dummy );
104 static Double_t YCharm(const Double_t *py, const Double_t *dummy);
105 static Double_t YCharmF0M0S0PP(const Double_t *py, const Double_t *dummy);
106 static Double_t YCharmF1M0S0PP(const Double_t *py, const Double_t *dummy);
107 static Double_t YCharmF2M0S0PP(const Double_t *py, const Double_t *dummy);
108 static Double_t YCharmF0M1S0PP(const Double_t *py, const Double_t *dummy);
109 static Double_t YCharmF0M2S0PP(const Double_t *py, const Double_t *dummy);
110 static Double_t YCharmF0M0S1PP(const Double_t *py, const Double_t *dummy);
111 static Double_t YCharmF0M0S2PP(const Double_t *py, const Double_t *dummy);
112 static Double_t YCharmF0M0S3PP(const Double_t *py, const Double_t *dummy);
113 static Double_t YCharmF0M0S4PP(const Double_t *py, const Double_t *dummy);
114 static Double_t YCharmF0M0S5PP(const Double_t *py, const Double_t *dummy);
115 static Double_t YCharmF0M0S6PP(const Double_t *py, const Double_t *dummy);
65fb704d 116 static Int_t IpCharm(TRandom *ran);
fe4da5cc 117//
118// Beauty
75e0cc59 119 static Double_t PtBeauty( const Double_t *px, const Double_t *dummy );
120 static Double_t PtBeautyF0M0S0PP( const Double_t *px, const Double_t *dummy );
121 static Double_t PtBeautyF1M0S0PP( const Double_t *px, const Double_t *dummy );
122 static Double_t PtBeautyF2M0S0PP( const Double_t *px, const Double_t *dummy );
123 static Double_t PtBeautyF0M1S0PP( const Double_t *px, const Double_t *dummy );
124 static Double_t PtBeautyF0M2S0PP( const Double_t *px, const Double_t *dummy );
125 static Double_t PtBeautyF0M0S1PP( const Double_t *px, const Double_t *dummy );
126 static Double_t PtBeautyF0M0S2PP( const Double_t *px, const Double_t *dummy );
127 static Double_t PtBeautyF0M0S3PP( const Double_t *px, const Double_t *dummy );
128 static Double_t PtBeautyF0M0S4PP( const Double_t *px, const Double_t *dummy );
129 static Double_t PtBeautyF0M0S5PP( const Double_t *px, const Double_t *dummy );
130 static Double_t PtBeautyF0M0S6PP( const Double_t *px, const Double_t *dummy );
131 static Double_t YBeauty(const Double_t *py, const Double_t *dummy);
132 static Double_t YBeautyF0M0S0PP(const Double_t *py, const Double_t *dummy);
133 static Double_t YBeautyF1M0S0PP(const Double_t *py, const Double_t *dummy);
134 static Double_t YBeautyF2M0S0PP(const Double_t *py, const Double_t *dummy);
135 static Double_t YBeautyF0M1S0PP(const Double_t *py, const Double_t *dummy);
136 static Double_t YBeautyF0M2S0PP(const Double_t *py, const Double_t *dummy);
137 static Double_t YBeautyF0M0S1PP(const Double_t *py, const Double_t *dummy);
138 static Double_t YBeautyF0M0S2PP(const Double_t *py, const Double_t *dummy);
139 static Double_t YBeautyF0M0S3PP(const Double_t *py, const Double_t *dummy);
140 static Double_t YBeautyF0M0S4PP(const Double_t *py, const Double_t *dummy);
141 static Double_t YBeautyF0M0S5PP(const Double_t *py, const Double_t *dummy);
142 static Double_t YBeautyF0M0S6PP(const Double_t *py, const Double_t *dummy);
143 static Double_t PtBeautyCentral( const Double_t *px, const Double_t *dummy );
65fb704d 144 static Int_t IpBeauty(TRandom *ran);
fe4da5cc 145//
00935af2 146
147 // Chi 1c 2c
75e0cc59 148 static Double_t PtChic0( const Double_t *px, const Double_t *dummy);
149 static Double_t YChic0(const Double_t *py, const Double_t *dummy);
960a2827 150 static Int_t IpChic0(TRandom *ran);
00935af2 151
75e0cc59 152 static Double_t PtChic1( const Double_t *px, const Double_t *dummy);
153 static Double_t YChic1(const Double_t *py, const Double_t *dummy);
960a2827 154 static Int_t IpChic1(TRandom *ran);
00935af2 155
75e0cc59 156 static Double_t PtChic2( const Double_t *px, const Double_t *dummy);
157 static Double_t YChic2(const Double_t *py, const Double_t *dummy);
960a2827 158 static Int_t IpChic2(TRandom *ran);
00935af2 159
75e0cc59 160 static Double_t PtChic( const Double_t *px, const Double_t *dummy);
161 static Double_t YChic(const Double_t *py, const Double_t *dummy);
960a2827 162 static Int_t IpChic(TRandom *ran);
00935af2 163
164//
165
05932df6 166
167 static Float_t Interpolate(Float_t x, Float_t* y, Float_t x0,
168 Float_t dx,
169 Int_t n, Int_t no);
170
762c0d1d 171 ClassDef(AliGenMUONlib,0) // Library providing y and pT parameterisations
fe4da5cc 172};
173#endif
174
753690b0 175
176
177
178
179
180