Problem 1556 - Primary Track has no Touchable Information
Summary: Primary Track has no Touchable Information
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: track (show other problems)
Version: 9.6
Hardware: PC Linux
: P5 normal
Assignee: kurasige
URL:
Depends on:
Blocks:
 
Reported: 2014-01-04 21:10 CET by Jingke
Modified: 2014-01-05 02:22 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Jingke 2014-01-04 21:10:11 CET
Hi Geant4 experts,

I want to record the spawn volume (and replica number) of each new track in my simulation, so I tried to access the touchable information in the G4UserStackingAction::ClassifyNewTrack() function. This works fine for all tracks but the primary track, which has a null touchable when it comes to the stack. Can anyone direct me how to get around with this please?

Thank you,
Jingke
Comment 1 kurasige 2014-01-05 02:22:19 CET
Dear Jingke
 
  Touchable is set by SteppingManager. So, no touchable is available for primaries in the stack because they have not been "tracked" yet.

Please see following discussion in HyperNews, if you want to get volume information for primaries.  
http://hypernews.slac.stanford.edu/HyperNews/geant4/get/eventtrackmanage/392.html

Regards,
   Hisaya