]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TFluka/bxdraw.cxx
Coding conventions.
[u/mrichter/AliRoot.git] / TFluka / bxdraw.cxx
index b37365a0a1d9e01526a1c5cd4b49bcbe9cd4ab1f..cba83ed4f8c34ae5065d853eb42ee8d687bc422c 100644 (file)
@@ -29,17 +29,20 @@ void bxdraw(Int_t& icode, Int_t& mreg, Int_t& newreg,
 //
 // Double step for boundary crossing
 //
+    fluka->SetTrackIsNew(kFALSE); // has to be called BEFORE Stepping()
     if (debug) printf("bxdraw (ex) \n");
     fluka->SetTrackIsExiting();
     fluka->SetCaller(12);
     fluka->SetMreg(mreg);
     (TVirtualMCApplication::Instance())->Stepping(); 
+
     if (debug) printf("bxdraw (en) \n");
     fluka->SetCaller(11);
     fluka->SetTrackIsEntering();
+    if (fluka->GetDummyBoundary() == 1) fluka->SetDummyBoundary(2);
     fluka->SetMreg(newreg);
     (TVirtualMCApplication::Instance())->Stepping();
-    fluka->SetTrackIsNew(kFALSE);
+
 } // end of bxdraw
 } // end of extern "C"