]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDsimpleGen.cxx
- Return from Gstpar if material is not used.
[u/mrichter/AliRoot.git] / TRD / AliTRDsimpleGen.cxx
index 1db2cd9a6dad9814028623c69439c99934d0447b..08797125221239946cdf4768ae197a02247f3aaf 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "AliTRDsimpleGen.h"
 #include "AliTRDsimpleMC.h"
+#include "AliMC.h"
  
 ClassImp(AliTRDsimpleGen)
  
@@ -116,7 +117,7 @@ void AliTRDsimpleGen::NewParticle(Int_t ievent)
     Float_t vtx[3] = { 0.0 };
     Float_t pol[3] = { 0.0 };
     Int_t   ntr    = 0;
-    gAlice->PushTrack(0,-1,fPdg,mom,vtx,pol,0.0,kPPrimary,ntr);
+    gAlice->GetMCApp()->PushTrack(0,-1,fPdg,mom,vtx,pol,0.0,kPPrimary,ntr);
 
   }