]>
Commit | Line | Data |
---|---|---|
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 | 16 | class AliGenMUONlib : |
65fb704d | 17 | public AliGenLib |
fe4da5cc | 18 | { |
19 | public: | |
05932df6 | 20 | enum constants{kPhi, kOmega, kEta, kJpsi, kUpsilon, |
21 | kCharm, kBeauty, kPion, kKaon}; | |
34f60c01 | 22 | |
23 | ||
753690b0 | 24 | // pions |
d90f80fd | 25 | static Double_t PtPion(Double_t *px, Double_t *dummy); |
fe4da5cc | 26 | static Double_t PtScal(Double_t pt, Int_t np); |
d90f80fd | 27 | static Double_t YPion( Double_t *py, Double_t *dummy); |
65fb704d | 28 | static Int_t IpPion(TRandom *ran); |
753690b0 | 29 | // kaons |
d90f80fd | 30 | static Double_t PtKaon(Double_t *px, Double_t *dummy); |
31 | static Double_t YKaon( Double_t *py, Double_t *dummy); | |
65fb704d | 32 | static Int_t IpKaon(TRandom *ran); |
fe4da5cc | 33 | // Phi |
d90f80fd | 34 | static Double_t PtPhi( Double_t *px, Double_t *dummy); |
35 | static Double_t YPhi( Double_t *px, Double_t *dummy); | |
65fb704d | 36 | static Int_t IpPhi(TRandom *ran); |
89512a3b | 37 | // Omega |
38 | static Double_t PtOmega( Double_t *px, Double_t *dummy); | |
39 | static Double_t YOmega( Double_t *px, Double_t *dummy); | |
40 | static Int_t IpOmega(TRandom *ran); | |
41 | // Eta | |
42 | static Double_t PtEta( Double_t *px, Double_t *dummy); | |
43 | static Double_t YEta( Double_t *px, Double_t *dummy); | |
44 | static Int_t IpEta(TRandom *ran); | |
fe4da5cc | 45 | // J/Psi |
d90f80fd | 46 | static Double_t PtJpsi( Double_t *px, Double_t *dummy); |
47 | static Double_t YJpsi(Double_t *py, Double_t *dummy); | |
05932df6 | 48 | static Double_t PtJpsiPbPb( Double_t *px, Double_t *dummy); |
49 | static Double_t YJpsiPbPb(Double_t *py, Double_t *dummy); | |
bb6e81ac | 50 | static Double_t PtJpsiPP( Double_t *px, Double_t *dummy); |
51 | static Double_t YJpsiPP(Double_t *py, Double_t *dummy); | |
65fb704d | 52 | static Int_t IpJpsi(TRandom *ran); |
fe4da5cc | 53 | // Upsilon |
d90f80fd | 54 | static Double_t PtUpsilon( Double_t *px, Double_t *dummy ); |
55 | static Double_t YUpsilon(Double_t *py, Double_t *dummy); | |
05932df6 | 56 | static Double_t PtUpsilonPbPb( Double_t *px, Double_t *dummy ); |
57 | static Double_t YUpsilonPbPb(Double_t *py, Double_t *dummy); | |
bb6e81ac | 58 | static Double_t PtUpsilonPP( Double_t *px, Double_t *dummy ); |
59 | static Double_t YUpsilonPP(Double_t *py, Double_t *dummy); | |
65fb704d | 60 | static Int_t IpUpsilon(TRandom *ran); |
fe4da5cc | 61 | // |
62 | // Charm | |
d90f80fd | 63 | static Double_t PtCharm( Double_t *px, Double_t *dummy ); |
64 | static Double_t YCharm(Double_t *py, Double_t *dummy); | |
65fb704d | 65 | static Int_t IpCharm(TRandom *ran); |
fe4da5cc | 66 | // |
67 | // Beauty | |
d90f80fd | 68 | static Double_t PtBeauty( Double_t *px, Double_t *dummy ); |
69 | static Double_t YBeauty(Double_t *py, Double_t *dummy); | |
65fb704d | 70 | static Int_t IpBeauty(TRandom *ran); |
fe4da5cc | 71 | // |
53904666 | 72 | GenFunc GetPt(Int_t param, const char* tname=0) const; |
73 | GenFunc GetY (Int_t param, const char* tname=0) const; | |
05932df6 | 74 | GenFuncIp GetIp(Int_t param, const char* tname=0) const; |
75 | private: | |
76 | ||
77 | static Float_t Interpolate(Float_t x, Float_t* y, Float_t x0, | |
78 | Float_t dx, | |
79 | Int_t n, Int_t no); | |
80 | ||
762c0d1d | 81 | ClassDef(AliGenMUONlib,0) // Library providing y and pT parameterisations |
fe4da5cc | 82 | }; |
83 | #endif | |
84 | ||
753690b0 | 85 | |
86 | ||
87 | ||
88 | ||
89 | ||
90 |