]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenPHOSlib.h
Macro for checking the serial & bin number of the mounted manus
[u/mrichter/AliRoot.git] / EVGEN / AliGenPHOSlib.h
index 3006cd7d391b3909aa5d4976344e0885b1ffb2a0..057ce74fc5cd6182ad3509d9200a87be7f2e0f14 100644 (file)
@@ -6,19 +6,36 @@
 
 /* $Id$ */
 
+//======================================================================
+//  AliGenPHOSlib class contains parameterizations of the
+//  pion, kaon, eta, omega, etaprime, phi and baryon (proton, 
+//  antiproton, neutron and anti-neutron) particles for the 
+//  study of the neutral background in PHOS detector. 
+//  Additional particle species simulation options has been added:
+//  Charged Pion, Charged Kaons, KLong Proton, Anti-Proton, Neutron,
+//  Anti-Neutron --> Changes made by Gustavo Conesa in November 2004
+//======================================================================
+
 class TRandom;
 
 class AliGenPHOSlib :
 public AliGenLib
 {
  public:
-    enum constants{kPion, kPi0Flat, kKaon, kEta, kEtaFlat,kOmega, kEtaPrime, kPhi, kBaryon};
+    enum constants{kPion, kChargedPion, kPi0Flat, kKaon, kChargedKaon, kKaon0L,
+                  kEta, kEtaFlat,kOmega, kEtaPrime, kPhi, 
+                  kBaryon, kProton, kAProton, kNeutron, kANeutron};
+    GenFunc   GetPt(Int_t param, const char* tname=0) const;
+    GenFunc   GetY (Int_t param, const char* tname=0) const;
+    GenFuncIp GetIp(Int_t param, const char* tname=0) const;   
+ private:
 // pions
     static Double_t PtPion(Double_t *px, Double_t *dummy);
     static Double_t PtScal(Double_t pt, Int_t np);
     static Double_t YPion( Double_t *py, Double_t *dummy);
     static Int_t    IpPion(TRandom* ran);
-    
+    static Int_t    IpChargedPion(TRandom* ran);
+
 //  pi0 Flat Distribution
     static Double_t PtPi0Flat(Double_t *px, Double_t *dummy);
     static Double_t YPi0Flat( Double_t *py, Double_t *dummy);
@@ -28,7 +45,8 @@ public AliGenLib
     static Double_t PtKaon(Double_t *px, Double_t *dummy);
     static Double_t YKaon( Double_t *py, Double_t *dummy);
     static Int_t    IpKaon(TRandom* ran);
-    
+    static Int_t    IpChargedKaon(TRandom* ran);
+    static Int_t    IpKaon0L(TRandom* ran);
 // etas
     static Double_t PtEta(Double_t *px, Double_t *dummy);
     static Double_t YEta( Double_t *py, Double_t *dummy);
@@ -58,10 +76,11 @@ public AliGenLib
     static Double_t PtBaryon(Double_t *px, Double_t *dummy);
     static Double_t YBaryon( Double_t *py, Double_t *dummy);
     static Int_t    IpBaryon(TRandom *ran);
-    
-    GenFunc   GetPt(Int_t param, const char* tname=0) const;
-    GenFunc   GetY (Int_t param, const char* tname=0) const;
-    GenFuncIp GetIp(Int_t param, const char* tname=0) const;    
+    static Int_t    IpProton(TRandom *ran);
+    static Int_t    IpAProton(TRandom *ran);
+    static Int_t    IpNeutron(TRandom *ran);
+    static Int_t    IpANeutron(TRandom *ran);
+
     ClassDef(AliGenPHOSlib,0) // Library providing y and pT parameterisations
 };
 #endif