1 #include "AliGenPHOSlib.h"
4 class AliGenPHOSlibPlus: public AliGenPHOSlib
14 AliGenPHOSlibPlus(Int_t part, TF1* ptSpect)
20 GenFunc GetPt(Int_t , const char* ) const {return PtPion ;}
21 GenFunc GetY (Int_t , const char* ) const {return YPion ;}
22 GenFuncIp GetIp(Int_t , const char* ) const {return IpPion ;}
24 static Double_t PtPion(const Double_t *px, const Double_t *)
26 // printf("PtPion: return %f of %s\n",fFun->Eval((*px)),fFun->GetName());
27 return fFun->Eval((*px));
30 static Int_t IpPion(TRandom* ){return fPart ;}
31 static Double_t YPion( const Double_t *, const Double_t *){return 1.;}
36 static TF1* fFun; // pT-spectrum
38 ClassDef(AliGenPHOSlibPlus,1)
42 Int_t AliGenPHOSlibPlus::fPart = 111 ;
43 TF1* AliGenPHOSlibPlus::fFun = new TF1();