Message: Re: Time characteristics of the scintillation pulse Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Time characteristics of the scintillation pulse 

Forum: Processes Involving Optical Photons
Re: Question Time characteristics of the scintillation pulse (Clarisse)
Re: Feedback Re: Time characteristics of the scintillation pulse (Gumplinger Peter)
Re: Question Re: Time characteristics of the scintillation pulse (Chibueze Zimuzo)
Re: Feedback Re: Time characteristics of the scintillation pulse (Gumplinger Peter)
Re: None Re: Time characteristics of the scintillation pulse (Chibueze Zimuzo)
Date: 15 Sep, 2010
From: Gumplinger Peter <Gumplinger Peter>

Hi Chibueze,

Sorry for the delayed response - I was away.

I don't know why you get NAN. This may have to do with where your code is located (in the logic of how hit-class functions are called). In any case, you must not take the arrival time from the pre-step-point. Use the post-step-point instead.

For an example, please see the code at:

http://www-geant4.kek.jp/lxr/source/examples/extended/optical/wls/src/WLSPhotonDetSD.cc#L68

and why a G4Hit has to be triggered "manually" when the photon arrives at the photo sensor (as opposed to steps inside 'sensitive volumes'); see:

http://www-geant4.kek.jp/lxr/source/examples/extended/optical/wls/src/WLSSteppingAction.cc#L313

Hope this helps, Peter

 Add Message Add Message
to: "Re: Time characteristics of the scintillation pulse"

 Subscribe Subscribe

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