]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - Flugg/FGeometryInit.cxx
Delete the run loader before creating a new getter
[u/mrichter/AliRoot.git] / Flugg / FGeometryInit.cxx
index 9fbcd9c39a33b6c12c771a8a29cb8e735c943881..c5e38d4e479c4e1121e6126bbec6b378f294b11c 100644 (file)
@@ -289,6 +289,13 @@ void FGeometryInit::UpdateHistories(const G4NavigationHistory * history,
 }
 
 //*****************************************************************************
+int FGeometryInit::GetLastMaterialIndex() const
+{
+// Get last material index as known by FLUKA
+   const FlukaMaterialsTable *matTable = FlukaMaterial::GetMaterialTable();
+   int matsize = matTable->size();
+   return matsize+2;
+}   
 
 void FGeometryInit::createFlukaMatFile() {
   // last modification Sara Vanini 1/III/99