Import Geant4 11.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2024-12-06 11:11:40 +01:00
parent e58e650b32
commit 32390e802b
1984 changed files with 98713 additions and 83996 deletions
+13
View File
@@ -33,6 +33,7 @@
// --------------------------------------------------------------------
#include "G4SmoothTrajectory.hh"
#include "G4ClonedSmoothTrajectory.hh"
#include "G4AttDef.hh"
#include "G4AttDefStore.hh"
@@ -41,6 +42,11 @@
#include "G4SmoothTrajectoryPoint.hh"
#include "G4UIcommand.hh"
#include "G4UnitsTable.hh"
#include "G4AutoLock.hh"
namespace {
G4Mutex CloneSmoothTrajectoryMutex = G4MUTEX_INITIALIZER;
}
// #define G4ATTDEBUG
#ifdef G4ATTDEBUG
@@ -92,6 +98,13 @@ G4SmoothTrajectory::G4SmoothTrajectory(G4SmoothTrajectory& right)
}
}
G4VTrajectory* G4SmoothTrajectory::CloneForMaster() const
{
G4AutoLock lock(&CloneSmoothTrajectoryMutex);
auto* cloned = new G4ClonedSmoothTrajectory(*this);
return cloned;
}
G4SmoothTrajectory::~G4SmoothTrajectory()
{
if (positionRecord != nullptr) {