Problem 15 - G4Cerenkov::SetMaxNumPhotonsPerStep causes stepping error.
Summary: G4Cerenkov::SetMaxNumPhotonsPerStep causes stepping error.
Status: CLOSED DUPLICATE of problem 13
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/optical (show other problems)
Version: 0.1
Hardware: PC Linux
: P4 minor
Assignee: gum
URL:
Depends on:
Blocks:
 
Reported: 1999-09-30 15:34 CEST by clark.mcgrew
Modified: 1999-10-27 19:25 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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 ***