]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TFluka/stupre.cxx
Fixed IsNewTrack()
[u/mrichter/AliRoot.git] / TFluka / stupre.cxx
index 1d912c291abc216a55518350266e0ede22336102..f37734410d04ab2deb5815f98a5c3aabf39e49af 100644 (file)
@@ -1,6 +1,5 @@
 #include <Riostream.h>
 #include "AliRun.h"
-#include "TFluka.h"
 #ifndef WIN32
 # define stupre stupre_
 #else
@@ -17,6 +16,7 @@
 #include "Ftrackr.h"  //(TRACKR) fluka common
 
 //Virtual MC
+
 #ifndef WITH_ROOT
 #include "TFluka.h"
 #else
@@ -64,7 +64,9 @@ void stupre()
   }
 
 // Get the pointer to the VMC
-  TVirtualMC* fluka = TFluka::GetMC();
+  TFluka* fluka =  (TFluka*) gMC;
+  fluka->SetTrackIsNew(kTRUE);
+//  TVirtualMC* fluka = TFluka::GetMC();
 // Get the stack produced from the generator
   TVirtualMCStack* cppstack = fluka->GetStack();