Message: Re: fGeomBoundary and SensitiveDetector problem Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Sad Re: fGeomBoundary and SensitiveDetector problem 

Forum: Event and Track Management
Re: Question fGeomBoundary and SensitiveDetector problem (Gergely Soti)
Re: Disagree Re: fGeomBoundary and SensitiveDetector problem (Gumplinger Peter)
Re: More Re: fGeomBoundary and SensitiveDetector problem (Gergely Soti)
Re: Feedback Re: fGeomBoundary and SensitiveDetector problem (Gumplinger Peter)
Re: More Re: fGeomBoundary and SensitiveDetector problem (Gergely Soti)
Date: 22 Jan, 2009
From: Gumplinger Peter <Gumplinger Peter>

... sorry, my 'clever' suggestion was so clever ...

GetTotalEnergyDeposit only gives you the energy deposited to the medium, not the energy lost by the particle. In the case of Compton, the photon's energy is transfered to the Compton electron and nothing to the medium. You can loop over all the secodaries too and add their energies - how to do this can be learned from various SteppingVerbose code in the G4 source - but that's starting to become long winded.

I can't think of any other (elegant) way how you can get the particle's SD volume entry energy in ProcessHits, except storing it in track-information in SteppingAction, so you can retrieve it again in ProcessHits during the first (or any step) in your SD.

 Add Message Add Message
to: "Re: fGeomBoundary and SensitiveDetector problem"

 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 ]