]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TFluka/usdraw.cxx
Option to use Flugg removed.
[u/mrichter/AliRoot.git] / TFluka / usdraw.cxx
1 #include <Riostream.h>
2 #include "TVirtualMCApplication.h"
3
4 #include "TFluka.h"
5
6 #include "Fdimpar.h"  //(DIMPAR) fluka include
7 #include "Ftrackr.h"  //(TRACKR) fluka common
8 #ifndef WIN32
9 # define usdraw usdraw_
10 #else
11 # define usdraw USDRAW
12 #endif
13 extern "C" {
14 void usdraw(Int_t& icode, Int_t& mreg, 
15             Double_t& xsco, Double_t& ysco, Double_t& zsco)
16 {
17   TFluka *fluka = (TFluka*)gMC;
18   Int_t verbosityLevel = fluka->GetVerbosityLevel();
19   Bool_t debug = (verbosityLevel>=3)?kTRUE:kFALSE;
20   fluka->SetCaller(6);
21   fluka->SetIcode(icode);
22   fluka->SetMreg(mreg);
23   fluka->SetXsco(xsco);
24   fluka->SetYsco(ysco);
25   fluka->SetZsco(zsco);
26   if (debug) printf("USDRAW: Number of track segments:%d %d\n", TRACKR.ntrack, TRACKR.mtrack);
27
28   (TVirtualMCApplication::Instance())->Stepping();
29   fluka->SetTrackIsNew(kFALSE);
30   
31 } // end of usdraw
32 } // end of extern "C"
33