Message: Re: GetStepStatus() in geant4 10.0 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: GetStepStatus() in geant4 10.0 

Forum: Geometry
Re: Question GetStepStatus() in geant4 10.0 (Neil Fazel)
Re: More Re: GetStepStatus() in geant4 10.0 (Gabriele Cosmo)
Date: 11 Mar, 2014
From: Neil Fazel <Neil Fazel>

Thanks very much. And when post-step status is fWorldBoundary it means the particle is leaving the World volume, right?

Neil

Sent from my iPhone

On Mar 11, 2014, at 4:21 AM, "Gabriele Cosmo" <Gabriele.Cosmo@cern.ch> wrote:

> 
> *** Discussion title: Geometry
> 
>> From the release notes of 9.4.p02:
> 
>    + Fixed setting of 'fWorldBoundary' step status in G4SteppingManager
>      InvokePostStepDoItProcs() and DefinePhysicalStepLength(). Flag was not
>      set and not used.
> 
> Cheers, Gabriele
> 
> ------------------
> On Tue, 11 Mar 2014 06:18:53 GMT, Neil Fazel wrote:
>> I have upgraded from geant4-09-04-patch-01 to geant4-10-00-patch-01 and find that the behavior
>> of GetStepStatus() in class G4StepPoint has changed unexpectedly. 
>> 
>> For example, running the following code snippet, 
>> 
>>  // last step in World volume
>>  if (!aStep->GetTrack()->GetNextVolume()) {
>>    G4cout  << aStep->GetPreStepPoint()->GetStepStatus() << " "
>>                 << aStep->GetPostStepPoint()->GetStepStatus() << " " 
>>                 << aStep->GetTrack()->GetTrackStatus()
>>    G4endl;
>>    <snip>
>> }
>> 
>> meant to catch particles as they cross the World boundary and output their energy and momenta, I get 
>> 
>> 1 1 2 
>> 
>> in geant4-09-04-patch-01 and 
>> 
>> 1 0 2 
>> 
>> in geant4-10-00-patch-01. So the post-step status in the old version was fGeomBoundary and in the new version is fWorldBoundary. Is this to be expected? I couldn't find an explanation for this in the release notes. 
>> 
>> Thanks,
>> Neil
>> 
> 
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: 
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/geometry/1330/1.html 

 Add Message Add Message
to: "Re: GetStepStatus() in geant4 10.0"

 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 ]