Problem 15

Summary: G4Cerenkov::SetMaxNumPhotonsPerStep causes stepping error.
Product: Geant4 Reporter: clark.mcgrew
Component: processes/opticalAssignee: gum
Status: CLOSED DUPLICATE    
Severity: minor CC: clark.mcgrew
Priority: P4    
Version: 0.1   
Hardware: PC   
OS: Linux   

Description clark.mcgrew 1999-09-30 15:34:58 CEST
This problem is easily worked around.

When the process:

    G4Cerenkov*   theCerenkovProcess = new G4Cerenkov("Cerenkov");

is applied to em particles and the maximum number of photons is set

 int MaxNumPhotons=300;
 theCerenkovProcess->SetMaxNumPhotonsPerStep(MaxNumPhotons);

the program exits with 'time going backwards' in G4ParticleChange::Checkit.  I
have compiled Geant 4.0.1

export G4SYSTEM=Linux-g++
export GBASE=${HOME}/work/G4
export G4INSTALL=${GBASE}/geant4
export CLHEP_BASE_DIR=${GBASE}/CLHEP
export G4USE_STL=Yes
export G4DEBUG=1

This problem can be avoided by not setting the maximum number of photons per
step.

Thanks,

Clark
Comment 1 gum 1999-10-18 16:33:59 CEST
This problem 'time going backwards' in G4ParticleChange::Checkit' is the same as
in bug report #13. It seems the symptom is a memory leak somewhere.
Unfortunately, ExampleN06 works with setting the maximum number of photons. The
only way to resolve this problem is by running the very application, which
produces the bug.
Comment 2 gum 1999-10-27 19:08:59 CEST
*** This bug has been marked as a duplicate of 13 ***