In a prototype implementation we have "married" the G4VSensitiveDetector class with a class from the Gaudi / Athena framework used at ATLAS software. Our concrete sensitive detectors are as well G4VSensitiveDetectors (from G4 framework) as AlgTools (from Gaudi framework). The problem is as follows: both, the G4RunManager as well as the ToolSvc (from Gaudi) try to delete our concrete sensitive detectors (and lead to segfaults). In fact, instead of deleting concrete sensitive detectors, the ToolSvc only decreases a reference count. Undfortunately, the ToolSvc tries to release its pointers after the G4RunManager already has deleted the corresponding objects. It would be nice if G4VSensitiveDetectors itself would have such a reference count system. Best regards - Alexander Brandt
*** Bug 452 has been marked as a duplicate of this bug. *** *** 'Makoto.Asai@cern.ch' will be responsible for bug 452. ***
Given the user want to use Gaudi framework, the user should have a dedicated concrete implementation of G4RunManager. Further discussions are welcome in HyperNews.