X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EVGEN%2FAliGenPMDlib.cxx;h=38b2e6e2604502ed2582fe765455acf931afa81a;hb=21b0adb11edf98c5ed4cbe72c5265b40fb435c30;hp=6a6c6f556e1c42d50478aa557df3737b0ce7d39b;hpb=116cbefdd457541a56d5dfd1a53b09c3ccc50964;p=u%2Fmrichter%2FAliRoot.git diff --git a/EVGEN/AliGenPMDlib.cxx b/EVGEN/AliGenPMDlib.cxx index 6a6c6f556e1..38b2e6e2604 100644 --- a/EVGEN/AliGenPMDlib.cxx +++ b/EVGEN/AliGenPMDlib.cxx @@ -13,29 +13,15 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* -$Log$ -Revision 1.5 2002/10/14 14:55:35 hristov -Merging the VirtualMC branch to the main development branch (HEAD) +/* $Id$ */ -Revision 1.3.10.1 2002/06/10 14:57:41 hristov -Merged with v3-08-02 - -Revision 1.4 2002/04/17 12:48:54 morsch -const added. - -Revision 1.3 2001/03/09 13:01:41 morsch -- enum constants for paramterisation type (particle family) moved to AliGen*lib.h -- use AliGenGSIlib::kUpsilon, AliGenPHOSlib::kEtaPrime to access the constants - -Revision 1.2 2000/11/30 07:12:50 alibrary -Introducing new Rndm and QA classes - -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 #include @@ -46,7 +32,7 @@ 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 @@ -76,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 @@ -113,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 @@ -128,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 @@ -162,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) const +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; @@ -182,7 +167,7 @@ GenFunc AliGenPMDlib::GetPt(Int_t param, const char* tname) const return func; } -GenFunc AliGenPMDlib::GetY(Int_t param, const char* tname) const +GenFunc AliGenPMDlib::GetY(Int_t param, const char* /*tname*/) const { // Return pointer to y- parameterisation GenFunc func=NULL; @@ -202,7 +187,7 @@ GenFunc AliGenPMDlib::GetY(Int_t param, const char* tname) const } typedef Int_t (*GenFuncIp) (TRandom *); -GenFuncIp AliGenPMDlib::GetIp(Int_t param, const char* tname) const +GenFuncIp AliGenPMDlib::GetIp(Int_t param, const char* /*tname*/) const { // Return pointer to particle type parameterisation GenFuncIp func=NULL;