Message: Re: GeometryUpdate() vs. SensitiveDetector Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: GeometryUpdate() vs. SensitiveDetector 

Forum: Event and Track Management
Re: Question GeometryUpdate() vs. SensitiveDetector (Maciej Sznajder)
Date: 17 Nov, 2010
From: Michael H. Kelsey <Michael H. Kelsey>

On Wed, 17 Nov 2010 14:58:10 GMT, Maciej Sznajder wrote:
> BUT when I call BeamOn then UpdateGeometry from "Idle" and once more
> beamOn I have got "segmentation fault" issue. The issue disappeared when
> I comment the "trackerCollection" line i.e. I switch off the "sensitive"
> functionality:
> 
> KobeHit* newHit = new KobeHit(pos, edep);
> trackerCollection->Insert(newHit);

Check the value of "trackerCollection" before dereferencing it. You will likely find that it is now zero. You may also want to run in the debugger and look at what the actual segfault error is -- the trackerCollection may have been deleted without zeroing the pointer.

You probably need to redefine your sensitive detector in order for it to be associated with your _new_ geometry.

-- Michael Kelsey

 Add Message Add Message
to: "Re: GeometryUpdate() vs. SensitiveDetector"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]