gAlice replaced by TVirtualMCApplication::Instance()
[u/mrichter/AliRoot.git] / TFluka / bxdraw.cxx
CommitLineData
fa3d1cc7 1#include <Riostream.h>
8fd1d27e 2#include "TVirtualMCApplication.h"
fa3d1cc7 3#include "TFluka.h"
4#ifndef WIN32
5# define bxdraw bxdraw_
6#else
7# define bxdraw BXDRAW
8#endif
9extern "C" {
10void bxdraw(Int_t& icode, Int_t& mreg, Int_t& newreg,
11 Double_t& xsco, Double_t& ysco, Double_t& zsco)
12{
13 ((TFluka*) gMC)->SetIcode(icode);
14 ((TFluka*) gMC)->SetMreg(mreg);
15 ((TFluka*) gMC)->SetNewreg(newreg);
16 ((TFluka*) gMC)->SetXsco(xsco);
17 ((TFluka*) gMC)->SetYsco(ysco);
18 ((TFluka*) gMC)->SetZsco(zsco);
8fd1d27e 19 cout << endl << " !!! I am in bxdraw - calling Stepping()" << endl;
fa3d1cc7 20 ((TFluka*) gMC)->FutoTest();
8fd1d27e 21 (TVirtualMCApplication::Instance())->Stepping();
fa3d1cc7 22} // end of bxdraw
23} // end of extern "C"
24