#ifndef PAMVMCTRKF77_H #define PAMVMCTRKF77_H #define gmtod GMTOD #define gdtom GDTOM #define gufield GUFIELD #include using std::cout; using std::endl; #include #include #include #include #include "PamVMCFieldMgr.h" extern "C"{ void grndm_(Float_t*, Int_t& ); void gmtod_(Float_t* , Float_t* , Int_t& ); void gdtom_(Float_t* , Float_t* , Int_t& ); void gufield_(Float_t*, Float_t*); } void grndm_(Float_t* r, Int_t& n){ for (Int_t i=0; iUniform(); } } void gmtod_(Float_t* a, Float_t* b, Int_t& c){ Double_t master[3]; Double_t local[3]; for (Int_t i=0; i<3; ++i) master[i] = (Double_t) a[i]; Double_t * m = &master[0]; Double_t * l = &local[0]; gGeoManager->MasterToLocal(m,l); //cout<<"MasterToLocal"<LocalToMaster(l,m); //cout<<"LocalToMaster"<Field(x,b); } #endif //PamVMCTrkF77.h