]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Corrected path to FlukaMat.inp to point to current Folder.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Feb 2004 13:40:57 +0000 (13:40 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Feb 2004 13:40:57 +0000 (13:40 +0000)
Corrected automatic retrieval of last fluka material index in
InitPhysics(). This is retrieved now from Flugg.

TFluka/TFluka.cxx

index 0061408c92f8eac2fe8bf67222d7378ff0b6252f..58198f52a2f3e86d984130db57dd73ef031e1bc3 100644 (file)
@@ -565,13 +565,14 @@ void TFluka::InitPhysics()
 // !!! it should be available from Flugg !!!
   Int_t i, j, k;
   Double_t fCut;
-  Float_t fLastMaterial = 31.0;
+  FGeometryInit* geominit = FGeometryInit::GetInstance();
+  Float_t fLastMaterial = geominit->GetLastMaterialIndex();
+  printf("   last FLUKA material is %g\n", fLastMaterial);
  
 // construct file names
   TString sAliceInp = getenv("ALICE_ROOT");
-  TString sAliceTmp = sAliceInp;
   sAliceInp +="/TFluka/input/";
-  sAliceTmp +="./flukaMat.inp";
+  TString sAliceTmp = "flukaMat.inp";
   TString sAliceCoreInp = sAliceInp;
   sAliceInp += GetInputFileName();
   sAliceCoreInp += GetCoreInputFileName();