Possibility to compile with Root v3-05-07
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Oct 2003 07:45:58 +0000 (07:45 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Oct 2003 07:45:58 +0000 (07:45 +0000)
EVGEN/AliGenFLUKAsource.cxx

index 262ed422b594a1a7c4c2fca032eba2f2a10b7e19..9c9eeb505e4a40188593f2f109d6dbc61038785d 100644 (file)
@@ -226,8 +226,11 @@ void AliGenFLUKAsource::Generate()
        part=kIfluge[int(ifip)-1];      
 //
 // Calculate momentum from kinetic energy and mass of the particle
+#if ROOT_VERSION_CODE > 197895
         amass = gMC->ParticleMass(part);
-
+#else
+       amass = (TDatabasePDG::Instance())->GetParticle(part)->Mass();
+#endif
        prwn=fEkin*sqrt(1. + 2.*amass/fEkin);