Message: Re: Readout optical photons Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Readout optical photons 

Forum: Hits, Digitization and Pileup
Re: Question Readout optical photons (Lafont Fabien)
Date: 05 Jul, 2013
From: Tsukasa Aso <Tsukasa Aso>


  First of all, I think your code is very confusing. You are using Sensitive detector (SD) but
you call it in the UserSteppingAction  with the user defined method directly. 
It is not following the manner in Geant4. I think it is better to brush up your code.

 Anyway, my question and comments are:

1)  Are you checking the volume in your SteppingAction ?
    Since SteppingAction is called every step, you have to check the volume
 where the track is now. Otherwise, the volume may be the world volume etc.
In the case, Touchable may return only zero.
 * Even you are using SD, the SD is not called by the Geant4 kernel.
   You call it by yourself, directly! Therefore, you can not expect the same result in the Geant4 manual.
* I recommend, for example, you check the position of track in SteppingAction.

2) I think you should decide whether you will use a UserSteppingAction or a SensitiveDetector for scoring. 
Then the problem will become more simple.

Best regards,
Tsukasa Aso


Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 More: Re: Readout optical photons   (Lafont Fabien - 07 Jul, 2013)
 Add Message Add Message
to: "Re: Readout optical photons"

 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 ]