#ifndef ALIGENPHOSLIB_H
#define ALIGENPHOSLIB_H
-#include <TObject.h>
-#include "GenTypeDefs.h"
+#include "AliGenLib.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id$ */
+class TRandom;
+
class AliGenPHOSlib :
-public TObject
+public AliGenLib
{
public:
+ enum constants{kPion, kKaon, kEta, kOmega, kEtaPrime, kPhi, kBaryon};
// 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();
+ static Int_t IpPion(TRandom* ran);
// kaons
static Double_t PtKaon(Double_t *px, Double_t *dummy);
static Double_t YKaon( Double_t *py, Double_t *dummy);
- static Int_t IpKaon();
+ static Int_t IpKaon(TRandom* ran);
// etas
static Double_t PtEta(Double_t *px, Double_t *dummy);
static Double_t YEta( Double_t *py, Double_t *dummy);
- static Int_t IpEta();
+ static Int_t IpEta(TRandom *ran);
// omegas
static Double_t PtOmega(Double_t *px, Double_t *dummy);
static Double_t YOmega( Double_t *py, Double_t *dummy);
- static Int_t IpOmega();
+ static Int_t IpOmega(TRandom *ran);
// etaprime
static Double_t PtEtaprime(Double_t *px, Double_t *dummy);
static Double_t YEtaprime( Double_t *py, Double_t *dummy);
- static Int_t IpEtaprime();
+ static Int_t IpEtaprime(TRandom* ran);
// phis
static Double_t PtPhi(Double_t *px, Double_t *dummy);
static Double_t YPhi( Double_t *py, Double_t *dummy);
- static Int_t IpPhi();
+ static Int_t IpPhi(TRandom* ran);
// baryons
static Double_t PtBaryon(Double_t *px, Double_t *dummy);
static Double_t YBaryon( Double_t *py, Double_t *dummy);
- static Int_t IpBaryon();
+ static Int_t IpBaryon(TRandom *ran);
- typedef Double_t (*GenFunc) (Double_t *, Double_t *dummy);
- typedef Int_t (*GenFuncIp)();
- static GenFunc GetPt(Param_t param);
- static GenFunc GetY(Param_t param);
- static GenFuncIp GetIp(Param_t param);
- ClassDef(AliGenPHOSlib,1) // Library providing y and pT parameterisations
+ GenFunc GetPt(Int_t param, const char* tname=0);
+ GenFunc GetY (Int_t param, const char* tname=0);
+ GenFuncIp GetIp(Int_t param, const char* tname=0);
+ ClassDef(AliGenPHOSlib,0) // Library providing y and pT parameterisations
};
#endif