ALICE_ROOT dependence removed. coreFlukaVmc.inp should be linked to
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Nov 2007 13:53:30 +0000 (13:53 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Nov 2007 13:53:30 +0000 (13:53 +0000)
working directory.

TFluka/TFluka.cxx
TFluka/scripts/runflukageo.sh

index d9492fb..05e216b 100644 (file)
@@ -1203,11 +1203,9 @@ void TFluka::InitPhysics()
 //
 // Construct file names
     FILE *pFlukaVmcCoreInp, *pFlukaVmcFlukaMat, *pFlukaVmcInp;
-    TString sFlukaVmcCoreInp = getenv("ALICE_ROOT");
-    sFlukaVmcCoreInp +="/TFluka/input/";
     TString sFlukaVmcTmp = "flukaMat.inp";
     TString sFlukaVmcInp = GetInputFileName();
-    sFlukaVmcCoreInp += GetCoreInputFileName();
+    TString sFlukaVmcCoreInp = GetCoreInputFileName();
     
 // Open files 
     if ((pFlukaVmcCoreInp = fopen(sFlukaVmcCoreInp.Data(),"r")) == NULL) {
@@ -1339,7 +1337,10 @@ void TFluka::SetMaxStep(Double_t step)
     
 //    Int_t mreg=0, latt=0;
 //    fGeom->GetCurrentRegion(mreg, latt);
+
+    
     Int_t mreg = fGeom->GetCurrentRegion();
+    printf("SetMaxStep %5d %13.3f\n", mreg, step);
     STEPSZ.stepmx[mreg - 1] = step;
 }
 
index 45cc82a..acfd3d9 100755 (executable)
@@ -16,6 +16,7 @@ ln -s fluka.out fort.11
 
 #Link FlukaConfig.C as Config.C
 ln -fs $ALICE_ROOT/TFluka/macro/FlukaConfig.C Config.C
+ln -fs $ALICE_ROOT/TFluka/input/coreFlukaVmc.inp coreFlukaVmc.inp
 echo 'Execute: gAlice->Init() OR gAlice->RunMC() at the ROOT prompt'
 # Launch aliroot
 aliroot