Changeset 1005 for trunk/source/processes/electromagnetic/lowenergy/src/G4IonParametrisedLossModel.cc
- Timestamp:
- Apr 20, 2009, 4:53:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/lowenergy/src/G4IonParametrisedLossModel.cc
r991 r1005 37 37 // First implementation: 10. 11. 2008 38 38 // 39 // Modifications: 39 // Modifications: 03. 02. 2009 - Bug fix iterators (AL) 40 40 // 41 41 // … … 107 107 dedxCacheMaterial = 0; 108 108 dedxCacheEnergyCut = 0; 109 dedxCacheIter = lossTableList. begin();109 dedxCacheIter = lossTableList.end(); 110 110 dedxCacheTransitionEnergy = 0.0; 111 111 dedxCacheTransitionFactor = 0.0; … … 166 166 dedxCacheMaterial = 0; 167 167 dedxCacheEnergyCut = 0; 168 dedxCacheIter = lossTableList. begin();168 dedxCacheIter = lossTableList.end(); 169 169 dedxCacheTransitionEnergy = 0.0; 170 170 dedxCacheTransitionFactor = 0.0; … … 342 342 LossTableList::iterator iter = dedxCacheIter; 343 343 344 if(iter != lossTableList. begin()) {344 if(iter != lossTableList.end()) { 345 345 346 346 G4double transitionEnergy = dedxCacheTransitionEnergy; … … 672 672 673 673 // If any table is applicable, the transition factor is computed: 674 if(iter != lossTableList. begin()) {674 if(iter != lossTableList.end()) { 675 675 676 676 // Retrieving the transition energy from the parameterisation table … … 777 777 // If parameterization for ions is available the electronic energy loss 778 778 // is overwritten 779 if(iter != lossTableList. begin()) {779 if(iter != lossTableList.end()) { 780 780 781 781 // The energy loss is calculated using the ComputeDEDXPerVolume function … … 854 854 G4double transitionEnergy = dedxCacheTransitionEnergy; 855 855 856 if(iter != lossTableList. begin() && transitionEnergy < kineticEnergy) {856 if(iter != lossTableList.end() && transitionEnergy < kineticEnergy) { 857 857 chargeSquareRatio *= corrections -> EffectiveChargeCorrection(particle, 858 858 material, … … 862 862 eloss *= chargeSquareRatioCorr; 863 863 } 864 else if (iter == lossTableList. begin()) {864 else if (iter == lossTableList.end()) { 865 865 866 866 chargeSquareRatio *= corrections -> EffectiveChargeCorrection(particle, … … 875 875 // overwrite the energy loss (i.e. when the effective charge approach is 876 876 // used) 877 if(iter == lossTableList. begin()) {877 if(iter == lossTableList.end()) { 878 878 879 879 G4double scaledKineticEnergy = kineticEnergy * dedxCacheGenIonMassRatio;
Note: See TracChangeset
for help on using the changeset viewer.