#ifndef PAMVMCTRKF77_H #define PAMVMCTRKF77_H #define grndmc GRNDMC #define gmtod GMTODC #define gdtom GDTOMC #define gufield GUFIELD #define errfcc ERRFCC #define vzeroi VZEROI #define vzeroc VZEROC #include using std::cout; using std::endl; #include #include #include #include #include #include "PamVMCFieldMgr.h" #include "PamVMCRndMgr.h" extern "C"{ void grndmc_(Float_t*, Int_t& ); void gmtodc_(Float_t* , Float_t* , Int_t& ); void gdtomc_(Float_t* , Float_t* , Int_t& ); void gufield_(Float_t*, Float_t*); void errfcc_(Float_t&, Float_t&); void vzeroi_(Int_t*,Int_t&); void vzeroc_(Float_t*, Int_t&); } void grndmc_(Float_t* r, Int_t& n){ for (Int_t i=0; iGenRandom("TRKEXT"); } } void gmtodc_(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); } void errfcc_(Float_t& in, Float_t& out){ out = (Float_t)TMath::Erfc(in); } void vzeroi_(Int_t* arr,Int_t& n){ for(Int_t i=0; i