Import Geant4 10.5.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2018-06-29 10:58:11 +02:00
parent fe81a77428
commit 6aa23be517
1581 changed files with 124288 additions and 83758 deletions
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4PrimaryParticle.hh 99159 2016-09-07 08:11:50Z gcosmo $
// $Id: G4PrimaryParticle.hh 110257 2018-05-17 14:20:12Z gcosmo $
//
//
@@ -179,20 +179,20 @@ class G4PrimaryParticle
};
extern G4PART_DLL G4ThreadLocal G4Allocator<G4PrimaryParticle> *aPrimaryParticleAllocator;
extern G4PART_DLL G4Allocator<G4PrimaryParticle>*& aPrimaryParticleAllocator();
inline void * G4PrimaryParticle::operator new(size_t)
{
if (!aPrimaryParticleAllocator)
if (!aPrimaryParticleAllocator())
{
aPrimaryParticleAllocator = new G4Allocator<G4PrimaryParticle>;
aPrimaryParticleAllocator() = new G4Allocator<G4PrimaryParticle>;
}
return (void *) aPrimaryParticleAllocator->MallocSingle();
return (void *) aPrimaryParticleAllocator()->MallocSingle();
}
inline void G4PrimaryParticle::operator delete(void * aPrimaryParticle)
{
aPrimaryParticleAllocator->FreeSingle((G4PrimaryParticle *) aPrimaryParticle);
aPrimaryParticleAllocator()->FreeSingle((G4PrimaryParticle *) aPrimaryParticle);
}
inline G4double G4PrimaryParticle::GetMass() const