Possibility to compile with Root v3-05-07
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Oct 2003 09:06:22 +0000 (09:06 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Oct 2003 09:06:22 +0000 (09:06 +0000)
TRD/AliTRDsimpleMC.h

index f411eafbbebc5ebbbce65d86cd66d931ddf8ce45..62d506d4ea0b2cc8e625619ba5f5df7a8e7f9050 100644 (file)
@@ -10,7 +10,8 @@
 //  Simple TRD Monte Carlo class                                             //
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
+
+#include <RVersion.h> 
 #include <TMCProcess.h>
 #include <TVirtualMC.h>
 #include "AliDecayer.h"
@@ -218,6 +219,7 @@ class AliTRDsimpleMC : public TVirtualMC {
     virtual void Gfpart(Int_t, char*, Int_t&, Float_t&, Float_t&, Float_t&) {} 
     virtual void Gspart(Int_t, const char*, Int_t, Double_t, Double_t, Double_t) {} 
     // Dummy methods 
+#if ROOT_VERSION_CODE > 197895
     virtual void DefineParticle(int, const char*, TMCParticleType, double, double, double){;}
     virtual void DefineIon(const char*, int, int, int, double, double){;}
     virtual TString  ParticleName(int) const {return "";}
@@ -225,6 +227,7 @@ class AliTRDsimpleMC : public TVirtualMC {
     virtual Double_t ParticleCharge(int) const {return 0.;}
     virtual Double_t ParticleLifeTime(int) const {return 0.;}
     virtual TMCParticleType ParticleMCType(int) const {return (TMCParticleType) 0;}
+#endif
     //
   // Control Methods
   virtual void          Init()                                                            { };