Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
@@ -95,18 +95,18 @@ public:
};
extern G4Allocator<RE04TrajectoryPoint> faTrajPointAllocator;
extern G4ThreadLocal G4Allocator<RE04TrajectoryPoint> * faTrajPointAllocator;
inline void* RE04TrajectoryPoint::operator new(size_t)
{
void *aTrajectoryPoint;
aTrajectoryPoint = (void *) faTrajPointAllocator.MallocSingle();
return aTrajectoryPoint;
if(!faTrajPointAllocator)
faTrajPointAllocator = new G4Allocator<RE04TrajectoryPoint>;
return (void *) faTrajPointAllocator->MallocSingle();
}
inline void RE04TrajectoryPoint::operator delete(void *aTrajectoryPoint)
{
faTrajPointAllocator.FreeSingle((RE04TrajectoryPoint *) aTrajectoryPoint);
faTrajPointAllocator->FreeSingle((RE04TrajectoryPoint *) aTrajectoryPoint);
}
#endif