Import Geant4 11.3.0 source tree
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user