Clean-up. (E. Futo)
[u/mrichter/AliRoot.git] / TFluka / usdraw.cxx
CommitLineData
fa3d1cc7 1#include <Riostream.h>
7dac99f1 2#include "TVirtualMCApplication.h"
a7bb59a2 3
4#ifndef WITH_ROOT
5#include "TFluka.h"
6#else
03b8df07 7#include "TFlukaGeo.h"
a7bb59a2 8#endif
9
a1f42b9c 10#include "Fdimpar.h" //(DIMPAR) fluka include
11#include "Ftrackr.h" //(TRACKR) fluka common
fa3d1cc7 12#ifndef WIN32
13# define usdraw usdraw_
14#else
15# define usdraw USDRAW
16#endif
17extern "C" {
18void usdraw(Int_t& icode, Int_t& mreg,
19 Double_t& xsco, Double_t& ysco, Double_t& zsco)
20{
fbf08100 21 TFluka *fluka = (TFluka*)gMC;
22 fluka->SetCaller(6);
23 fluka->SetIcode(icode);
24 fluka->SetMreg(mreg);
25 fluka->SetXsco(xsco);
26 fluka->SetYsco(ysco);
27 fluka->SetZsco(zsco);
cad96957 28 printf("USDRAW: Number of track segments:%d %d\n",
29 TRACKR.ntrack, TRACKR.mtrack);
30
a1f42b9c 31 (TVirtualMCApplication::Instance())->Stepping();
fbf08100 32 fluka->SetTrackIsNew(kFALSE);
33
fa3d1cc7 34} // end of usdraw
35} // end of extern "C"
36