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

Feedback Re: Particle entering volume, ProcessHits() 

Forum: Event and Track Management
Re: Question Particle entering volume, ProcessHits()
Date: 16 Feb, 2012
From: Gumplinger Peter <Gumplinger Peter>

> 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.

I understand you are getting 'just_entered' several times for the same interface and steps in immediate succession. I do not know of any intended mechanism that should produce this outcome. I suggest you turn SteppingVerbose on and provide us with the list of steps around where this happens. It may be a geometry/navigation issue (a bug in G4) or a bug in how you implemented your geometry.

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

1 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: "Re: 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 ]