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

Question GetStepStatus() in geant4 10.0 

Forum: Geometry
Date: 10 Mar, 2014
From: Neil Fazel <Neil Fazel>

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

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

1 More: Re: GetStepStatus() in geant4 10.0   (Gabriele Cosmo - 11 Mar, 2014)
(_ None: Re: GetStepStatus() in geant4 10.0   (Neil Behzad Fazel - 11 Mar, 2014)
 Add Message Add Message
to: "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 ]