Changeset 991 for trunk/source/processes/electromagnetic/lowenergy/src/G4PenelopePhotoElectricModel.cc
- Timestamp:
- Apr 17, 2009, 12:17:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/lowenergy/src/G4PenelopePhotoElectricModel.cc
r968 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4PenelopePhotoElectricModel.cc,v 1. 3 2009/01/08 09:42:54pandola Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4PenelopePhotoElectricModel.cc,v 1.2 2008/12/04 14:09:36 pandola Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // Author: Luciano Pandola … … 31 31 // History: 32 32 // -------- 33 // 08 Oct 2008 L Pandola Migration from process to model 34 // 08 Jan 2009 L. Pandola Check shell index to avoid mismatch between 35 // the Penelope cross section database and the 36 // G4AtomicTransitionManager database. It suppresses 37 // a warning from G4AtomicTransitionManager only. 38 // Results are unchanged. 33 // 08 Oct 2008 L Pandola Migration from process to model 39 34 // 40 35 … … 232 227 // Retrieve the corresponding identifier and binding energy of the selected shell 233 228 const G4AtomicTransitionManager* transitionManager = G4AtomicTransitionManager::Instance(); 234 235 //The number of shell cross section possibly reported in the Penelope database236 //might be different from the number of shells in the G4AtomicTransitionManager237 //(namely, Penelope may contain more shell, especially for very light elements).238 //In order to avoid a warning message from the G4AtomicTransitionManager, I239 //add this protection. Results are anyway changed, because when G4AtomicTransitionManager240 //has a shellID>maxID, it sets the shellID to the last valid shell.241 size_t numberOfShells = (size_t) transitionManager->NumberOfShells(Z);242 if (shellIndex >= numberOfShells)243 shellIndex = numberOfShells-1;244 245 229 const G4AtomicShell* shell = transitionManager->Shell(Z,shellIndex); 246 230 G4double bindingEnergy = shell->BindingEnergy();
Note: See TracChangeset
for help on using the changeset viewer.