CurrentVolName gives back "Outside FLUKA geometry" instead of 0-pointer.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Oct 2007 09:20:43 +0000 (09:20 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Oct 2007 09:20:43 +0000 (09:20 +0000)
TFluka/TFluka.cxx

index cffed42..9a188c8 100644 (file)
@@ -346,7 +346,7 @@ Bool_t TFluka::ProcessRun(Int_t nevent) {
 //
 // Run steering
 //
-
+    
   if (fVerbosityLevel >=3)
     cout << "==> TFluka::ProcessRun(" << nevent << ") called." 
          << endl;
@@ -2085,7 +2085,7 @@ const char* TFluka::CurrentVolName() const
 //
 // Return the current volume name
 //
-  if (gGeoManager->IsOutside()) return 0;
+  if (gGeoManager->IsOutside()) return "Outside FLUKA Geometry !";
   return gGeoManager->GetCurrentVolume()->GetName();
 }