X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=EVGEN%2FAliGenFLUKAsource.cxx;h=262ed422b594a1a7c4c2fca032eba2f2a10b7e19;hp=2e35f0bd8b87c5a5fe184be4bc2a11532b299e99;hb=b4d4098dc2c956dfdcf1c272b42b1a1908d0d2c2;hpb=19fa3b1b33facae6b75a1ec82ebee788737c2370 diff --git a/EVGEN/AliGenFLUKAsource.cxx b/EVGEN/AliGenFLUKAsource.cxx index 2e35f0bd8b8..262ed422b59 100644 --- a/EVGEN/AliGenFLUKAsource.cxx +++ b/EVGEN/AliGenFLUKAsource.cxx @@ -226,7 +226,7 @@ void AliGenFLUKAsource::Generate() part=kIfluge[int(ifip)-1]; // // Calculate momentum from kinetic energy and mass of the particle - amass = (TDatabasePDG::Instance())->GetParticle(part)->Mass(); + amass = gMC->ParticleMass(part); prwn=fEkin*sqrt(1. + 2.*amass/fEkin);