Ignore:
Timestamp:
Apr 17, 2009, 12:17:14 PM (15 years ago)
Author:
garnier
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/electromagnetic/lowenergy/src/G4PenelopePhotoElectricModel.cc

    r968 r991  
    2424// ********************************************************************
    2525//
    26 // $Id: G4PenelopePhotoElectricModel.cc,v 1.3 2009/01/08 09:42:54 pandola 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 $
    2828//
    2929// Author: Luciano Pandola
     
    3131// History:
    3232// --------
    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
    3934//
    4035
     
    232227  // Retrieve the corresponding identifier and binding energy of the selected shell
    233228  const G4AtomicTransitionManager* transitionManager = G4AtomicTransitionManager::Instance();
    234 
    235   //The number of shell cross section possibly reported in the Penelope database
    236   //might be different from the number of shells in the G4AtomicTransitionManager
    237   //(namely, Penelope may contain more shell, especially for very light elements).
    238   //In order to avoid a warning message from the G4AtomicTransitionManager, I
    239   //add this protection. Results are anyway changed, because when G4AtomicTransitionManager
    240   //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 
    245229  const G4AtomicShell* shell = transitionManager->Shell(Z,shellIndex);
    246230  G4double bindingEnergy = shell->BindingEnergy();
Note: See TracChangeset for help on using the changeset viewer.