9 #include "Fdimpar.h" //(DIMPAR) fluka include
10 #include "Ftrackr.h" //(TRACKR) fluka common
12 # define bxdraw bxdraw_
14 # define bxdraw BXDRAW
17 void bxdraw(Int_t& icode, Int_t& mreg, Int_t& newreg,
18 Double_t& xsco, Double_t& ysco, Double_t& zsco)
20 TFluka* fluka = (TFluka*) gMC;
22 fluka->SetIcode(icode);
23 fluka->SetNewreg(newreg);
28 // Double step for boundary crossing
30 printf("bxdraw (ex) \n");
31 fluka->SetTrackIsExiting();
34 (TVirtualMCApplication::Instance())->Stepping();
35 printf("bxdraw (en) \n");
37 fluka->SetTrackIsEntering();
38 fluka->SetMreg(newreg);
39 (TVirtualMCApplication::Instance())->Stepping();
40 fluka->SetTrackIsNew(kFALSE);
42 } // end of extern "C"