]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TFluka/sodraw.cxx
red.C is now Hdisp.C
[u/mrichter/AliRoot.git] / TFluka / sodraw.cxx
index 8ed22143a63a960d9ca26639c941274414111995..f4d0ae4b55b1cd5c2776898500afe3bfdd0eae0b 100644 (file)
@@ -1,11 +1,8 @@
 #include <Riostream.h>
 #include "TVirtualMCApplication.h"
 
-#ifndef WITH_ROOT
 #include "TFluka.h"
-#else
-#include "TFlukaGeo.h"
-#endif
+#include "TFlukaCodes.h"
 
 #ifndef WIN32
 # define sodraw sodraw_
@@ -15,8 +12,8 @@
 extern "C" {
 void sodraw()
 {
-  ((TFluka*) gMC)->SetCaller(5);
-  ((TFluka*) gMC)->SetIcode(0);
+  ((TFluka*) gMC)->SetCaller(kSODRAW);
+  ((TFluka*) gMC)->SetIcode((FlukaProcessCode_t)0);
 } // end of sodraw
 } // end of extern "C"