]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenPMDlib.cxx
SetSeed implementation
[u/mrichter/AliRoot.git] / EVGEN / AliGenPMDlib.cxx
index 3d7b33c1049b24b4eb3c38fdb129863aaa077329..38b2e6e2604502ed2582fe765455acf931afa81a 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.2  2000/11/30 07:12:50  alibrary
-Introducing new Rndm and QA classes
+/* $Id$ */
 
-Revision 1.1  2000/09/08 15:37:58  morsch
-pt and y-parameterisations for PMD physics simulation.
-THIS VERSION IS JUST A TEMPLATE THE PT AND Y DISTRIBUTIONS HAVE TO BE CORRECTED !!!!.
+//
+// Library of generators for PMD
+// providing y and pt parametrisation
+// for generated tracks
+// Specific for PMD needs
+// Author: PMD Offline Group
+//
 
-*/
+#include <TMath.h>
+#include <TPDGCode.h>
 
 #include "AliGenPMDlib.h"
-#include "AliPDG.h"
-#include "TMath.h"
 
 ClassImp(AliGenPMDlib)
 //
 //  Neutral Pions
 
-Double_t AliGenPMDlib::PtPi0(Double_t *px, Double_t *dummy)
+Double_t AliGenPMDlib::PtPi0(const Double_t *px, const Double_t */*dummy*/)
 {
 //
 //     PT-PARAMETERIZATION CDF, PRL 61(88) 1819
@@ -62,7 +62,7 @@ Double_t AliGenPMDlib::PtPi0(Double_t *px, Double_t *dummy)
 //
 // y-distribution
 //
-Double_t AliGenPMDlib::YPi0( Double_t *py, Double_t *dummy)
+Double_t AliGenPMDlib::YPi0( const Double_t *py, const Double_t */*dummy*/)
 {
   //
   // y parametrisation for pi0
@@ -99,7 +99,6 @@ Double_t AliGenPMDlib::PtScal(Double_t pt, Int_t np)
   const Double_t khm[10] = {.13957,.493,.5488,.769,.7826,.958,1.02,0,0,0};
   //     VALUE MESON/PI AT 5 GEV
   const Double_t kfmax[10]={1.,0.3,0.55,1.0,1.0,1.0,1.0,0,0,0};
-  np--;
   Double_t f5=TMath::Power(((sqrt(100.018215)+2.)/(sqrt(100.+khm[np]*khm[np])+2.0)),12.3);
   Double_t fmax2=f5/kfmax[np];
   // PIONS
@@ -114,15 +113,15 @@ Double_t AliGenPMDlib::PtScal(Double_t pt, Int_t np)
 //                pt-distribution
 //____________________________________________________________
 
-Double_t AliGenPMDlib::PtEta( Double_t *px, Double_t *dummy)
+Double_t AliGenPMDlib::PtEta( const Double_t *px, const Double_t */*dummy*/)
 {
 // Kaon pT
-  return PtScal(*px,3);
+  return PtScal(*px, 1);
 }
 
 // y-distribution
 //____________________________________________________________
-Double_t AliGenPMDlib::YEta( Double_t *py, Double_t *dummy)
+Double_t AliGenPMDlib::YEta( const Double_t *py, const Double_t */*dummy*/)
 {
     //
     // y parametrisation for etas
@@ -148,8 +147,8 @@ Int_t AliGenPMDlib::IpEta(TRandom *)
 }
 
 
-typedef Double_t (*GenFunc) (Double_t*,  Double_t*);
-GenFunc AliGenPMDlib::GetPt(Int_t param,  const char* tname)
+typedef Double_t (*GenFunc) (const Double_t*,  const Double_t*);
+GenFunc AliGenPMDlib::GetPt(Int_t param,  const char* /*tname*/) const
 {
 // Return pointer to pT parameterisation
     GenFunc func=NULL;
@@ -168,7 +167,7 @@ GenFunc AliGenPMDlib::GetPt(Int_t param,  const char* tname)
     return func;
 }
 
-GenFunc AliGenPMDlib::GetY(Int_t param, const char* tname)
+GenFunc AliGenPMDlib::GetY(Int_t param, const char* /*tname*/) const
 {
 // Return pointer to y- parameterisation
     GenFunc func=NULL;
@@ -188,7 +187,7 @@ GenFunc AliGenPMDlib::GetY(Int_t param, const char* tname)
 
 }
 typedef Int_t (*GenFuncIp) (TRandom *);
-GenFuncIp AliGenPMDlib::GetIp(Int_t param,  const char* tname)
+GenFuncIp AliGenPMDlib::GetIp(Int_t param,  const char* /*tname*/) const
 {
 // Return pointer to particle type parameterisation
     GenFuncIp func=NULL;