Message: alternative to scoring planes Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question alternative to scoring planes 

Keywords: sampler planes tracking between volumes
Forum: Event and Track Management
Date: 02 May, 2006
From: John Carter <John Carter>

Hi all,

I have a situation where I need to track a set of particles traveling through a series of volumes. I would like to read off various particle properties at the volume boundaries. At the moment I am achieving this by placing ultra thin planes (1e-11m) between my main volumes. This forces a stepping point in Geant. Then in the usersteppingaction I can check for the plane volume name and store the particle information if its in this volume.

This works ok - but when I extend the example to several thousand volumes then I end up with a large memory overhead in building the planes. There is also the fact that several thousand 'thin' planes start to add up! (and I need nanometer precision at the end of all these volumes...)

Is there a convenient way in UserSteppingAction to save particle information at the exact point that a particle is leaving a given volume? I've tried comparing the current volume and the nextvolume, but this does not seem to be accurate as each track will be at a slightly different distance from the boundary when this condition of nextvolume should be different is found. There is also the problem that sometimes the volume/nextvolume check is a bit dubious. I have some volumes which built in a mother/daughter fashion and if the exiting boundary is one which both mother and daughter share then it gives the current volume as the daughter and the next volume as the mother, when in reality the next volume should be a seperate volume entirely.

Cheers, John

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

1 None: Re: alternative to scoring planes   (ahmet ayan - 04 May, 2006)
1 None: Re: alternative to scoring planes   (John - 05 May, 2006)
3 None: Re: alternative to scoring planes   (Makoto Asai - 04 May, 2006)
5 None: Re: alternative to scoring planes   (John - 05 May, 2006)
 Add Message Add Message
to: "alternative to scoring planes"

 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 ]