Problem 72

Summary: SetCuts for e+ and e-
Product: Geant4 Reporter: nedelec
Component: processes/electromagneticAssignee: Michel.Maire
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 1.0   
Hardware: Other   
OS: Linux   

Description nedelec 2000-03-21 01:48:57 CET
In my XXXPhysicsList.cc class I noticed the following problem in the SetCuts
method. Calling in that order

  SetCutValue(cutForElectron,"e+");
  SetCutValue(cutForElectron,"e-");

produces a crash at execution, while the opposite:
  SetCutValue(cutForElectron,"e-");
  SetCutValue(cutForElectron,"e+");
is ok.
Comment 1 Laszlo.Urban 2000-03-24 04:31:59 CET
Warning + G4Exception have been put into G4eIonisation.cc and
   G4eIonisationPlus.cc to avoid calling SetCut for e+ before e-.
   ( We need the energy cuts for ELECTRON to compute the energy loss
   or mean free path for positron!)