Problem 451

Summary: Ownership problem of G4VSensitiveDetectors
Product: Geant4 Reporter: alexander.brandt
Component: digits_hitsAssignee: Makoto.Asai
Status: CLOSED INVALID    
Severity: normal CC: schiefer
Priority: P1    
Version: 4.1   
Hardware: PC   
OS: Linux   

Description alexander.brandt 2003-02-03 07:44:41 CET
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
Comment 1 Makoto.Asai 2003-02-03 09:44:59 CET
*** Bug 452 has been marked as a duplicate of this bug. ***
*** 'Makoto.Asai@cern.ch' will be responsible for bug 452. ***
Comment 2 Makoto.Asai 2003-02-03 09:46:59 CET
Given the user want to use Gaudi framework, the user should have a
dedicated concrete implementation of G4RunManager.
Further discussions are welcome in HyperNews.