]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TFluka/usdraw.cxx
TFlukaCerenkov added.
[u/mrichter/AliRoot.git] / TFluka / usdraw.cxx
1 #include <Riostream.h>
2 #include "TVirtualMCApplication.h"
3
4 #ifndef WITH_ROOT
5 #include "TFluka.h"
6 #else
7 #include "TFlukaGeo.h"
8 #endif
9
10 #include "Fdimpar.h"  //(DIMPAR) fluka include
11 #include "Ftrackr.h"  //(TRACKR) fluka common
12 #ifndef WIN32
13 # define usdraw usdraw_
14 #else
15 # define usdraw USDRAW
16 #endif
17 extern "C" {
18 void usdraw(Int_t& icode, Int_t& mreg, 
19             Double_t& xsco, Double_t& ysco, Double_t& zsco)
20 {
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);
28   (TVirtualMCApplication::Instance())->Stepping();
29   fluka->SetTrackIsNew(kFALSE);
30   
31 } // end of usdraw
32 } // end of extern "C"
33