Import Geant4 9.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 17:01:34 +02:00
parent b1eb5424d2
commit e2d2f9810a
10384 changed files with 698580 additions and 628834 deletions
@@ -49,14 +49,15 @@
//
// ===========================================================================
#include <iomanip>
#include "G4IonDEDXHandler.hh"
#include "G4SystemOfUnits.hh"
#include "G4VIonDEDXTable.hh"
#include "G4VIonDEDXScalingAlgorithm.hh"
#include "G4ParticleDefinition.hh"
#include "G4Material.hh"
#include "G4LPhysicsFreeVector.hh"
#include <iomanip>
//#define PRINT_DEBUG
@@ -388,18 +389,18 @@ G4CacheValue G4IonDEDXHandler::GetCacheValue(
entry.key = key;
cacheEntries.push_front(entry);
CacheEntryList::iterator* pointerIter =
CacheEntryList::iterator* pointerIter1 =
new CacheEntryList::iterator();
*pointerIter = cacheEntries.begin();
cacheKeyPointers[key] = pointerIter;
*pointerIter1 = cacheEntries.begin();
cacheKeyPointers[key] = pointerIter1;
if(G4int(cacheEntries.size()) > maxCacheEntries) {
G4CacheEntry lastEntry = cacheEntries.back();
void* pointerIter = cacheKeyPointers[lastEntry.key];
void* pointerIter2 = cacheKeyPointers[lastEntry.key];
CacheEntryList::iterator* listPointerIter =
(CacheEntryList::iterator*) pointerIter;
(CacheEntryList::iterator*) pointerIter2;
cacheEntries.erase(*listPointerIter);