Use MC particle mass
[u/mrichter/AliRoot.git] / EVGEN / AliGenFLUKAsource.cxx
index 2e35f0bd8b87c5a5fe184be4bc2a11532b299e99..262ed422b594a1a7c4c2fca032eba2f2a10b7e19 100644 (file)
@@ -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);