X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PYTHIA6%2FAliPythiaRndm.cxx;h=0dcb21c52d8f84efe1007b55b4c27632191603e9;hb=e28ccdafb6add3daf4bf6b560dca4df63a5d8c87;hp=7efc265efa2facea624eec050fabdf2cedbf4ae6;hpb=6889dd2d89bd53f339b128fc0188f9d5c6c5341d;p=u%2Fmrichter%2FAliRoot.git diff --git a/PYTHIA6/AliPythiaRndm.cxx b/PYTHIA6/AliPythiaRndm.cxx index 7efc265efa2..0dcb21c52d8 100644 --- a/PYTHIA6/AliPythiaRndm.cxx +++ b/PYTHIA6/AliPythiaRndm.cxx @@ -30,6 +30,7 @@ // //----------------------------------------------------------------------------- +#include #include #include "AliPythiaRndm.h" @@ -53,6 +54,7 @@ TRandom * AliPythiaRndm::GetPythiaRandom() { // // Retrieves the pointer to the random numbers generator // + if (!fgPythiaRandom) fgPythiaRandom=gRandom; return fgPythiaRandom; } @@ -65,7 +67,7 @@ TRandom * AliPythiaRndm::GetPythiaRandom() { extern "C" { Double_t pyr(Int_t*) { - // Wrapper to FINCTION PYR from PYTHIA + // Wrapper to FUNCTION PYR from PYTHIA // Uses static method to retrieve the pointer to the (C++) generator Double_t r; do r=AliPythiaRndm::GetPythiaRandom()->Rndm();