Problem 72 - SetCuts for e+ and e-
Summary: SetCuts for e+ and e-
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/electromagnetic (show other problems)
Version: 1.0
Hardware: Other Linux
: P2 normal
Assignee: Michel.Maire
URL:
Depends on:
Blocks:
 
Reported: 2000-03-21 01:48 CET by nedelec
Modified: 2000-03-24 04:30 CET (History)
0 users

See Also:


Attachments

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