Import Geant4 11.1.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2022-07-01 10:44:02 +02:00
parent b3bf75a2a1
commit c07cea1fe0
2172 changed files with 183300 additions and 123938 deletions
@@ -103,9 +103,11 @@ aScintillationTIAllocator();
inline void* G4ScintillationTrackInformation::operator new(size_t)
{
if(!aScintillationTIAllocator())
if(aScintillationTIAllocator() == nullptr)
{
aScintillationTIAllocator() =
new G4Allocator<G4ScintillationTrackInformation>;
}
return (void*) aScintillationTIAllocator()->MallocSingle();
}
@@ -50,7 +50,7 @@ class G4VTRModel
explicit G4VTRModel(const G4String& modelName) { fName = modelName; };
// Destructor
virtual ~G4VTRModel(){};
virtual ~G4VTRModel() = default;
const G4String& GetName() const { return fName; };