]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliGenMUONlib.h
Enlarging array
[u/mrichter/AliRoot.git] / EVGEN / AliGenMUONlib.h
1 #ifndef ALIGENMUONLIB_H
2 #define ALIGENMUONLIB_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
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
14 #include "AliGenLib.h"
15
16 class AliGenMUONlib :
17   public AliGenLib
18 {
19  public:
20   enum constants{kPhi, kOmega, kEta, kJpsi, kJpsiFamily, kPsiP, kJpsiFromB, kUpsilon, kUpsilonFamily,
21                    kUpsilonP, kUpsilonPP, kCharm, kBeauty, kPion, kKaon};
22     
23     
24 // pions
25     static Double_t PtPion(Double_t *px, Double_t *dummy);
26     static Double_t PtScal(Double_t pt, Int_t np);
27     static Double_t YPion( Double_t *py, Double_t *dummy);
28     static Int_t    IpPion(TRandom *ran);
29 // kaons
30     static Double_t PtKaon(Double_t *px, Double_t *dummy);
31     static Double_t YKaon( Double_t *py, Double_t *dummy);
32     static Int_t    IpKaon(TRandom *ran);
33 // Phi
34     static Double_t PtPhi( Double_t *px, Double_t *dummy);
35     static Double_t YPhi( Double_t *px, Double_t *dummy);
36     static Int_t    IpPhi(TRandom *ran);
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);
45 // J/Psi     
46     static Double_t PtJpsi( Double_t *px, Double_t *dummy);
47     static Double_t YJpsi(Double_t *py, Double_t *dummy);
48     static Double_t PtJpsiPbPb( Double_t *px, Double_t *dummy);
49     static Double_t PtJpsiBPbPb( Double_t *px, Double_t *dummy);
50     static Double_t YJpsiPbPb(Double_t *py, Double_t *dummy);
51     static Double_t PtJpsiPP( Double_t *px, Double_t *dummy);
52     static Double_t YJpsiPP(Double_t *py, Double_t *dummy);
53     static Double_t YJpsiBPbPb(Double_t *py, Double_t *dummy);
54     static Int_t    IpJpsi(TRandom *ran);
55     static Int_t    IpJpsiFamily(TRandom *ran);
56     static Int_t    IpPsiP(TRandom *ran);
57
58 // Upsilon    
59     static Double_t PtUpsilon( Double_t *px, Double_t *dummy );
60     static Double_t YUpsilon(Double_t *py, Double_t *dummy);
61     static Double_t PtUpsilonPbPb( Double_t *px, Double_t *dummy );
62     static Double_t YUpsilonPbPb(Double_t *py, Double_t *dummy);
63     static Double_t PtUpsilonPP( Double_t *px, Double_t *dummy );
64     static Double_t YUpsilonPP(Double_t *py, Double_t *dummy);
65     static Int_t    IpUpsilon(TRandom *ran);
66     static Int_t    IpUpsilonFamily(TRandom *ran);
67     static Int_t    IpUpsilonP(TRandom *ran);
68     static Int_t    IpUpsilonPP(TRandom *ran);
69 //
70 // Charm    
71     static Double_t PtCharm( Double_t *px, Double_t *dummy );
72     static Double_t YCharm(Double_t *py, Double_t *dummy);
73     static Int_t    IpCharm(TRandom *ran);
74 //
75 // Beauty
76     static Double_t PtBeauty( Double_t *px, Double_t *dummy );
77     static Double_t YBeauty(Double_t *py, Double_t *dummy);
78     static Int_t    IpBeauty(TRandom *ran);
79 //
80     GenFunc   GetPt(Int_t param, const char* tname=0) const;
81     GenFunc   GetY (Int_t param, const char* tname=0) const;
82     GenFuncIp GetIp(Int_t param, const char* tname=0) const;
83  private:
84     
85     static Float_t Interpolate(Float_t x, Float_t* y, Float_t x0, 
86                         Float_t dx,
87                         Int_t n, Int_t no);
88     
89     ClassDef(AliGenMUONlib,0) // Library providing y and pT parameterisations
90 };
91 #endif
92
93
94
95
96
97
98