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
@@ -39,8 +39,14 @@
#include "G4AttValue.hh"
#include "G4ParticleTable.hh"
#include "G4TrajectoryPoint.hh"
#include "G4ClonedTrajectory.hh"
#include "G4UIcommand.hh"
#include "G4UnitsTable.hh"
#include "G4AutoLock.hh"
namespace {
G4Mutex CloneTrajectoryMutex = G4MUTEX_INITIALIZER;
}
// #define G4ATTDEBUG
#ifdef G4ATTDEBUG
@@ -86,6 +92,13 @@ G4Trajectory::G4Trajectory(G4Trajectory& right)
}
}
G4VTrajectory* G4Trajectory::CloneForMaster() const
{
G4AutoLock lock(&CloneTrajectoryMutex);
auto* cloned = new G4ClonedTrajectory(*this);
return cloned;
}
G4Trajectory::~G4Trajectory()
{
if (positionRecord != nullptr) {