Decoding raw event is under test
[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,
21 kUpsilonP, kUpsilonPP, kCharm, kBeauty, kPion, kKaon};
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);
d90f80fd 53 static Double_t YJpsi(Double_t *py, Double_t *dummy);
05932df6 54 static Double_t PtJpsiPbPb( Double_t *px, Double_t *dummy);
17d28ba5 55 static Double_t PtJpsiBPbPb( Double_t *px, Double_t *dummy);
05932df6 56 static Double_t YJpsiPbPb(Double_t *py, Double_t *dummy);
0e137c25 57 static Double_t YJpsiCDFscaled(Double_t *py, Double_t *dummy);
9ff13849 58 static Double_t YJpsiCDFscaledPP( Double_t *px, Double_t *dummy);
bb6e81ac 59 static Double_t PtJpsiPP( Double_t *px, Double_t *dummy);
60 static Double_t YJpsiPP(Double_t *py, Double_t *dummy);
17d28ba5 61 static Double_t YJpsiBPbPb(Double_t *py, Double_t *dummy);
65fb704d 62 static Int_t IpJpsi(TRandom *ran);
0ad09590 63 static Int_t IpJpsiFamily(TRandom *ran);
88e5db43 64 static Int_t IpPsiP(TRandom *ran);
4ca8d070 65 static Double_t PtJpsiFlat( Double_t *px, Double_t *dummy );
66 static Double_t YJpsiFlat(Double_t *py, Double_t *dummy);
88e5db43 67
fe4da5cc 68// Upsilon
d90f80fd 69 static Double_t PtUpsilon( Double_t *px, Double_t *dummy );
0e137c25 70 static Double_t PtUpsilonCDFscaled( Double_t *px, Double_t *dummy );
9ff13849 71 static Double_t PtUpsilonCDFscaledPP( Double_t *px, Double_t *dummy );
d90f80fd 72 static Double_t YUpsilon(Double_t *py, Double_t *dummy);
0e137c25 73 static Double_t YUpsilonCDFscaled(Double_t *py, Double_t *dummy);
9ff13849 74 static Double_t YUpsilonCDFscaledPP( Double_t *px, Double_t *dummy );
05932df6 75 static Double_t PtUpsilonPbPb( Double_t *px, Double_t *dummy );
76 static Double_t YUpsilonPbPb(Double_t *py, Double_t *dummy);
bb6e81ac 77 static Double_t PtUpsilonPP( Double_t *px, Double_t *dummy );
78 static Double_t YUpsilonPP(Double_t *py, Double_t *dummy);
65fb704d 79 static Int_t IpUpsilon(TRandom *ran);
0ad09590 80 static Int_t IpUpsilonFamily(TRandom *ran);
88e5db43 81 static Int_t IpUpsilonP(TRandom *ran);
82 static Int_t IpUpsilonPP(TRandom *ran);
4ca8d070 83 static Double_t PtUpsilonFlat( Double_t *px, Double_t *dummy );
84 static Double_t YUpsilonFlat(Double_t *py, Double_t *dummy);
fe4da5cc 85//
86// Charm
d90f80fd 87 static Double_t PtCharm( Double_t *px, Double_t *dummy );
bd0276a8 88 static Double_t PtCharmCentral( Double_t *px, Double_t *dummy );
d90f80fd 89 static Double_t YCharm(Double_t *py, Double_t *dummy);
65fb704d 90 static Int_t IpCharm(TRandom *ran);
fe4da5cc 91//
92// Beauty
d90f80fd 93 static Double_t PtBeauty( Double_t *px, Double_t *dummy );
bd0276a8 94 static Double_t PtBeautyCentral( Double_t *px, Double_t *dummy );
d90f80fd 95 static Double_t YBeauty(Double_t *py, Double_t *dummy);
65fb704d 96 static Int_t IpBeauty(TRandom *ran);
fe4da5cc 97//
05932df6 98
99 static Float_t Interpolate(Float_t x, Float_t* y, Float_t x0,
100 Float_t dx,
101 Int_t n, Int_t no);
102
762c0d1d 103 ClassDef(AliGenMUONlib,0) // Library providing y and pT parameterisations
fe4da5cc 104};
105#endif
106
753690b0 107
108
109
110
111
112