]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenFLUKAsource.cxx
Commenting out unused variables (FedoraCore3, gcc 3.4.2)
[u/mrichter/AliRoot.git] / EVGEN / AliGenFLUKAsource.cxx
index 262ed422b594a1a7c4c2fca032eba2f2a10b7e19..6f2884def37eb9b040f526ba54ba795ecd507bfc 100644 (file)
 // Files can be chained. 
 // Author: andreas.morsch@cern.ch
 
-#include "TPDGCode.h"
-#include "TDatabasePDG.h"
+#include <stdlib.h>
+
+#include <TDatabasePDG.h>
+#include <TPDGCode.h>
+#include <RVersion.h>
+#include <TChain.h>
+#include <TFile.h>
+#include <TTree.h>
+#include <TVirtualMC.h>
 
 #include "AliGenFLUKAsource.h"
 #include "AliRun.h"
 
-
-#include <TFile.h>
-#include <TTree.h>
-#include <TChain.h>
-#include <stdlib.h>
 ClassImp(AliGenFLUKAsource)
 
 AliGenFLUKAsource::AliGenFLUKAsource()
@@ -226,8 +228,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);
 
 
@@ -285,7 +290,7 @@ AliGenFLUKAsource& AliGenFLUKAsource::operator=(const  AliGenFLUKAsource& rhs)
 }
 
 
-void AliGenFLUKAsource::Copy(AliGenFLUKAsource &) const
+void AliGenFLUKAsource::Copy(TObject &) const
 {
     Fatal("Copy","Not implemented!\n");
 }