3 #include "Fdimpar.h" //(DIMPAR) fluka include
4 #include "Ftrackr.h" //(TRACKR) fluka common
6 # define bxdraw bxdraw_
11 void bxdraw(Int_t& icode, Int_t& mreg, Int_t& newreg,
12 Double_t& xsco, Double_t& ysco, Double_t& zsco)
14 TFluka* fluka = (TFluka*) gMC;
16 fluka->SetIcode(icode);
17 fluka->SetNewreg(newreg);
22 // Double step for boundary crossing
24 printf("bxdraw (ex) \n");
25 fluka->SetTrackIsExiting();
28 (TVirtualMCApplication::Instance())->Stepping();
30 fluka->SetTrackIsEntering();
31 printf("bxdraw (en) mreg=%d newreg=%d \n",mreg,newreg);
32 fluka->SetMreg(newreg);
33 (TVirtualMCApplication::Instance())->Stepping();
34 // fluka->SetCaller(1);
35 // fluka->SetTrackIsInside();
36 // printf("bxdraw (st) \n");
37 // (TVirtualMCApplication::Instance())->Stepping();
39 } // end of extern "C"