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