Message: Re: Stuck on error with optical photons Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Stuck on error with optical photons 

Keywords: optical photon
Forum: Processes Involving Optical Photons
Date: 30 Nov, 2005
From: Gumplinger Peter <Gumplinger Peter>

Hi Ben,

To help us find out what's wrong, can you please put this code fragment into your UserSteppingAction:

G4Track* theTrack = theStep->GetTrack();
const G4DynamicParticle* aParticle = theTrack->GetDynamicParticle();
G4ThreeVector aMomentum = aParticle->GetMomentumDirection();
G4double vx = aMomentum.x();
G4int ix = isnan(vx);
if(ix != 0){
    G4cout << " PROBLEM! " << theTrack->GetCreatorProcess()->GetProcessName() <<
std::flush << G4endl;
}

I also suggest you isolate the event where this happens so we can reproduce the error by running just this one event.

Peter

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

1 More: Re: Stuck on error with optical photons   (Peter Gumplinger - 30 Nov, 2005)
(_ None: Re: Stuck on error with optical photons   (Ben Loer - 05 Dec, 2005)
(_ More: Re: Stuck on error with optical photons   (Peter Gumplinger - 06 Dec, 2005)
(_ Feedback: Re: Stuck on error with optical photons   (Ben Loer - 07 Dec, 2005)
 Add Message Add Message
to: "Re: Stuck on error with optical photons"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews