Message: Particle entering volume, ProcessHits() Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Particle entering volume, ProcessHits() 

Forum: Event and Track Management
Date: 15 Feb, 2012
From: <Santos>

Hi all,

I try to check whether a particle just entered a sensitive volume. I do the usual:

G4bool just_entered = aPreStepPoint->GetStepStatus() == fGeomBoundary;

The problem is that I get just entered = true several times in a row for the same particle (I check it by vertex position to be sure). It can be twice, it can be literally several times.

Could somebody, please, explain what the problem here is and how it can be fixed.

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

1 Feedback: Re: Particle entering volume, ProcessHits()   (Gumplinger Peter - 16 Feb, 2012)
(_ News: Re: Particle entering volume, ProcessHits()   (Santos - 16 Feb, 2012)
(_ Feedback: Re: Particle entering volume, ProcessHits()   (Gumplinger Peter - 16 Feb, 2012)
(_ Question: Re: Particle entering volume, ProcessHits()   (Santos - 17 Feb, 2012)
(_ Feedback: Re: Particle entering volume, ProcessHits()   (Gumplinger Peter - 23 Feb, 2012)
 Add Message Add Message
to: "Particle entering volume, ProcessHits()"

 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 ]