Message: fGeomBoundary and SensitiveDetector problem Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question fGeomBoundary and SensitiveDetector problem 

Forum: Event and Track Management
Date: 19 Jan, 2009
From: Gergely Soti <Gergely Soti>

Dear all,

I am trying to make an "ideal" detector, which records the particle energy when it enters the detector. I do this in SensitiveDetector::ProcessHits, and in it the following condition:

G4StepPoint* point1 = theStep->GetPreStepPoint();
if(point1->GetStepStatus()==fGeomBoundary){
   ...
}

However, this condition is true only when the particle leaves the detector. I was expecting that it will be true only when it enters the detector (since I use GetPreStepPoint, not GetPostStepPoint). I looked at other similar functions, but from this forum I learned that the function IsFirstStepInVolume is not working. Does anyone has some ideas?

Gergely

p.s. maybe I should try to use the SteppingAction but this would be easier for me.

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

1 Disagree: Re: fGeomBoundary and SensitiveDetector problem   (Gumplinger Peter - 19 Jan, 2009)
(_ More: Re: fGeomBoundary and SensitiveDetector problem   (Gergely Soti - 20 Jan, 2009)
(_ Feedback: Re: fGeomBoundary and SensitiveDetector problem   (Gumplinger Peter - 20 Jan, 2009)
(_ More: Re: fGeomBoundary and SensitiveDetector problem   (Gergely Soti - 22 Jan, 2009)
(_ Sad: Re: fGeomBoundary and SensitiveDetector problem   (Gumplinger Peter - 22 Jan, 2009)
 Add Message Add Message
to: "fGeomBoundary and SensitiveDetector problem"

 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 ]