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();
36 fluka->SetTrackIsEntering();
37 printf("bxdraw (en) mreg=%d newreg=%d \n",mreg,newreg);
38 fluka->SetMreg(newreg);
39 (TVirtualMCApplication::Instance())->Stepping();
40 // fluka->SetCaller(1);
41 // fluka->SetTrackIsInside();
42 // printf("bxdraw (st) \n");
43 // (TVirtualMCApplication::Instance())->Stepping();
45 } // end of extern "C"