Use MC particle mass
authoralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Oct 2003 16:05:14 +0000 (16:05 +0000)
committeralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Oct 2003 16:05:14 +0000 (16:05 +0000)
EVGEN/AliGenFLUKAsource.cxx

index 2e35f0b..262ed42 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);