Message: Double first step in the volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Double first step in the volume 

Forum: Event and Track Management
Date: 16 Nov, 2015
From: <Dmytro>

During debugging the code I found the strange behaviour of the stepping when my primary gamma is entering the detector volume. I use following condition:

if (thePrePoint ->GetStepStatus()==fGeomBoundary && postname == "Crystall") 
  {G4cout<<"Stepnumber: "<<step->GetTrack()->GetCurrentStepNumber() <<" Particle: "<<particlename<<" ProcessName: " <<step->GetPostStepPoint()->GetProcessDefinedStep()->->GetProcessName()<<G4endl;}

In near 50% of the cases it produces the expected output:

Stepnumber: 4 Particle: gamma ProcessName: Transportation

But sometimes this condition is satisfied 2 times in a row and I get something like:

Stepnumber: 4 Particle: gamma ProcessName: Transportation
Stepnumber: 5 Particle: gamma ProcessName: compt

I can not explain how does particle could satisfy fGeomBoundary condition 2 times in a row and also with step creator process other then Transportaion. Could someone, please, explain it to me?

Geant4 version Name: geant4-09-06-patch-02 (17-May-2013)

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

1 Feedback: Re: Double first step in the volume   (Gumplinger Peter - 17 Nov, 2015)
(_ None: Re: Double first step in the volume   (Dmytro - 19 Nov, 2015)
(_ Feedback: Re: Double first step in the volume   (Gumplinger Peter - 19 Nov, 2015)
(_ Agree: Re: Double first step in the volume   (Dmytro - 20 Nov, 2015)
 Add Message Add Message
to: "Double first step in the volume"

 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 ]