]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TFluka/sodraw.cxx
Check on integrator added
[u/mrichter/AliRoot.git] / TFluka / sodraw.cxx
index 94287cf6cf2e2b883563c71b05e9c11422f257a6..748ee24f53206d9c7e1e81fef9fcd62beebcab58 100644 (file)
@@ -2,6 +2,7 @@
 #include "TVirtualMCApplication.h"
 
 #include "TFluka.h"
+#include "TFlukaCodes.h"
 
 #ifndef WIN32
 # define sodraw sodraw_
@@ -11,8 +12,9 @@
 extern "C" {
 void sodraw()
 {
-  ((TFluka*) gMC)->SetCaller(5);
-  ((TFluka*) gMC)->SetIcode(0);
+  ((TFluka*) gMC)->SetCaller(kSODRAW);
+  ((TFluka*) gMC)->SetIcode((FlukaProcessCode_t)0);
+  (TVirtualMCApplication::Instance())->Stepping();
 } // end of sodraw
 } // end of extern "C"