Message: G4ParticleChange::CheckIt Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question G4ParticleChange::CheckIt 

Forum: Event and Track Management
Date: 19 Aug, 2010
From: Derek Mackay <Derek Mackay>

Hello,

I'm creating photons in a PostStepDoIt. I define my photon as follows:

G4DynamicParticle* aPhoton = new G4DynamicParticle (G4OpticalPhoton::OpticalPhoton(),photon_direction,electron_kinetic);

I define a photon direction G4ThreeVector and then I normalize it as follows:

photon_direction = 1./photon_direction.mag()*photon_direction;

But then when I run the simulation I get:

 G4ParticleChange::CheckIt  : the Momentum Change is not unit vector !!
  Difference:  1.22e-07
 G4ParticleChange::CheckIt 

The simulation continues to run fine except that I get all these warnings.

The accuracyForWarning in G4Particle change is 1e-09 so is there a way to change this to maybe 1e-06? I imagine that by changing the verbosity I can get rid of the warnings but I'd like to not have to do this,

Thanks, Derek.

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

1 None: Re: G4ParticleChange::CheckIt   (Michael H. Kelsey - 19 Aug, 2010)
 Add Message Add Message
to: "G4ParticleChange::CheckIt"

 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 ]