]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TGeant4/TG4StepManager.cxx
exception in GetVolumeID replaced with a warning
[u/mrichter/AliRoot.git] / TGeant4 / TG4StepManager.cxx
index d32494682ee6994205e4dc88e773631b5ea14244..8e5275ef6f70d2c8051435c76dc2d75b012996fe 100644 (file)
@@ -152,10 +152,11 @@ G4int TG4StepManager::GetVolumeID(G4VPhysicalVolume* physVolume) const
     }          
   }  
   else {
-    G4String text = "TG4StepManager::CurrentVol: \n";
+    G4String text = "TG4StepManager::GetVolumeID: \n";
     text = text + "    Volume " + physVolume->GetName();
     text = text + " has not a sensitive detector.";
-    TG4Globals::Exception(text);
+    //TG4Globals::Exception(text);
+    TG4Globals::Warning(text);
     return 0;
   }            
 }