DOS to Unix
[u/mrichter/AliRoot.git] / EVGEN / AliGenPHOSlib.h
CommitLineData
f87cfe57 1#ifndef ALIGENPHOSLIB_H
2#define ALIGENPHOSLIB_H
b22ee262 3#include "AliGenLib.h"
886b6f73 4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
8
ac3faee4 9//======================================================================
10// AliGenPHOSlib class contains parameterizations of the
11// pion, kaon, eta, omega, etaprime, phi and baryon (proton,
12// antiproton, neutron and anti-neutron) particles for the
13// study of the neutral background in PHOS detector.
35ead6c1 14// Additional particle species simulation options has been added:
15// Charged Pion, Charged Kaons, KLong Proton, Anti-Proton, Neutron,
16// Anti-Neutron --> Changes made by Gustavo Conesa in November 2004
ac3faee4 17//======================================================================
18
65fb704d 19class TRandom;
20
886b6f73 21class AliGenPHOSlib :
b22ee262 22public AliGenLib
886b6f73 23{
24 public:
35ead6c1 25 enum constants{kPion, kChargedPion, kPi0Flat, kKaon, kChargedKaon, kKaon0L,
26 kEta, kEtaFlat,kOmega, kEtaPrime, kPhi,
27 kBaryon, kProton, kAProton, kNeutron, kANeutron};
886b6f73 28// pions
f87cfe57 29 static Double_t PtPion(Double_t *px, Double_t *dummy);
886b6f73 30 static Double_t PtScal(Double_t pt, Int_t np);
f87cfe57 31 static Double_t YPion( Double_t *py, Double_t *dummy);
65fb704d 32 static Int_t IpPion(TRandom* ran);
35ead6c1 33 static Int_t IpChargedPion(TRandom* ran);
34
74c62c73 35// pi0 Flat Distribution
36 static Double_t PtPi0Flat(Double_t *px, Double_t *dummy);
37 static Double_t YPi0Flat( Double_t *py, Double_t *dummy);
38 static Int_t IpPi0Flat(TRandom* ran);
39
886b6f73 40// kaons
f87cfe57 41 static Double_t PtKaon(Double_t *px, Double_t *dummy);
42 static Double_t YKaon( Double_t *py, Double_t *dummy);
65fb704d 43 static Int_t IpKaon(TRandom* ran);
35ead6c1 44 static Int_t IpChargedKaon(TRandom* ran);
45 static Int_t IpKaon0L(TRandom* ran);
886b6f73 46// etas
f87cfe57 47 static Double_t PtEta(Double_t *px, Double_t *dummy);
48 static Double_t YEta( Double_t *py, Double_t *dummy);
65fb704d 49 static Int_t IpEta(TRandom *ran);
74c62c73 50
51// etas Flat Distribution
52 static Double_t PtEtaFlat(Double_t *px, Double_t *dummy);
53 static Double_t YEtaFlat( Double_t *py, Double_t *dummy);
54 static Int_t IpEtaFlat(TRandom *ran);
55
886b6f73 56// omegas
f87cfe57 57 static Double_t PtOmega(Double_t *px, Double_t *dummy);
58 static Double_t YOmega( Double_t *py, Double_t *dummy);
65fb704d 59 static Int_t IpOmega(TRandom *ran);
74c62c73 60
886b6f73 61// etaprime
f87cfe57 62 static Double_t PtEtaprime(Double_t *px, Double_t *dummy);
63 static Double_t YEtaprime( Double_t *py, Double_t *dummy);
65fb704d 64 static Int_t IpEtaprime(TRandom* ran);
74c62c73 65
886b6f73 66// phis
f87cfe57 67 static Double_t PtPhi(Double_t *px, Double_t *dummy);
68 static Double_t YPhi( Double_t *py, Double_t *dummy);
65fb704d 69 static Int_t IpPhi(TRandom* ran);
74c62c73 70
886b6f73 71// baryons
f87cfe57 72 static Double_t PtBaryon(Double_t *px, Double_t *dummy);
73 static Double_t YBaryon( Double_t *py, Double_t *dummy);
65fb704d 74 static Int_t IpBaryon(TRandom *ran);
35ead6c1 75 static Int_t IpProton(TRandom *ran);
76 static Int_t IpAProton(TRandom *ran);
77 static Int_t IpNeutron(TRandom *ran);
78 static Int_t IpANeutron(TRandom *ran);
a04b490f 79 GenFunc GetPt(Int_t param, const char* tname=0) const;
80 GenFunc GetY (Int_t param, const char* tname=0) const;
35ead6c1 81 GenFuncIp GetIp(Int_t param, const char* tname=0) const;
82
762c0d1d 83 ClassDef(AliGenPHOSlib,0) // Library providing y and pT parameterisations
886b6f73 84};
85#endif
86
87
88
89
90
91
92