]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TFluka/source.cxx
Fixed IsNewTrack()
[u/mrichter/AliRoot.git] / TFluka / source.cxx
index 98bcd03e24cf1825c281be3760182771aeb11999..93be9e8e92ddd7f9a2e34fc988944f4e1879cdab 100644 (file)
 #endif
 
 #include "TVirtualMCStack.h"
-#include "TVirtualMCApplication.h"
+//#include "TVirtualMCApplication.h"
+#ifndef WITH_ROOT
+#include "TFluka.h"
+#else
+#include "TFlukaGeo.h"
+#endif
+
 #include "TParticle.h"
 #include "TVector3.h"
 
@@ -94,6 +100,7 @@ extern "C" {
     Int_t  nprim  = cppstack->GetNprimary();
 //  Get the next particle from the stack
     particle  = cppstack->PopNextTrack(itrack);
+    ((TFluka*)fluka)->SetTrackIsNew(kTRUE);
 
 //  Is this a secondary not handled by Fluka, i.e. a particle added by user action ?
     lastParticleWasPrimary = particleIsPrimary;