Import Geant4 10.4.0.beta source tree
This commit is contained in:
@@ -1003,6 +1003,7 @@ G4double G4Navigator::ComputeStep( const G4ThreeVector &pGlobalpoint,
|
||||
if ((!fPushed) && (fWarnPush))
|
||||
{
|
||||
std::ostringstream message;
|
||||
message.precision(16);
|
||||
message << "Track stuck or not moving." << G4endl
|
||||
<< " Track stuck, not moving for "
|
||||
<< fNumberZeroSteps << " steps" << G4endl
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4PathFinder.cc 90009 2015-05-08 07:42:39Z gcosmo $
|
||||
// $Id: G4PathFinder.cc 103219 2017-03-22 11:30:15Z gcosmo $
|
||||
// GEANT4 tag $ Name: $
|
||||
//
|
||||
// class G4PathFinder Implementation
|
||||
@@ -52,7 +52,7 @@ G4ThreadLocal G4PathFinder* G4PathFinder::fpPathFinder=0;
|
||||
// ----------------------------------------------------------------------------
|
||||
// GetInstance()
|
||||
//
|
||||
// Retrieve the static instance of the singleton
|
||||
// Retrieve the static instance of the singleton and create it if not existing
|
||||
//
|
||||
G4PathFinder* G4PathFinder::GetInstance()
|
||||
{
|
||||
@@ -63,6 +63,16 @@ G4PathFinder* G4PathFinder::GetInstance()
|
||||
return fpPathFinder;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// GetInstanceIfExist()
|
||||
//
|
||||
// Retrieve the static instance pointer of the singleton
|
||||
//
|
||||
G4PathFinder* G4PathFinder::GetInstanceIfExist()
|
||||
{
|
||||
return fpPathFinder;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Constructor
|
||||
//
|
||||
@@ -115,7 +125,7 @@ G4PathFinder::G4PathFinder()
|
||||
G4PathFinder::~G4PathFinder()
|
||||
{
|
||||
delete fpMultiNavigator;
|
||||
if (fpPathFinder) { delete fpPathFinder; fpPathFinder=0; }
|
||||
fpPathFinder = 0;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4TransportationManager.cc 83466 2014-08-25 10:31:39Z gcosmo $
|
||||
// $Id: G4TransportationManager.cc 103236 2017-03-22 15:54:40Z gcosmo $
|
||||
//
|
||||
//
|
||||
// G4TransportationManager
|
||||
@@ -71,7 +71,7 @@ G4TransportationManager::G4TransportationManager()
|
||||
fWorlds.push_back(trackingNavigator->GetWorldVolume()); // NULL registered
|
||||
|
||||
fGeomMessenger = new G4GeometryMessenger(this);
|
||||
fFieldManager = new G4FieldManager();
|
||||
fFieldManager = new G4FieldManager(); // deleted by G4FieldManagerStore
|
||||
fPropagatorInField= new G4PropagatorInField(trackingNavigator,fFieldManager);
|
||||
fSafetyHelper = new G4SafetyHelper();
|
||||
}
|
||||
@@ -81,21 +81,17 @@ G4TransportationManager::G4TransportationManager()
|
||||
//
|
||||
G4TransportationManager::~G4TransportationManager()
|
||||
{
|
||||
delete fFieldManager;
|
||||
delete fPropagatorInField;
|
||||
ClearNavigators();
|
||||
delete fGeomMessenger;
|
||||
delete fSafetyHelper;
|
||||
if (fTransportationManager)
|
||||
{
|
||||
delete fTransportationManager; fTransportationManager=0;
|
||||
}
|
||||
delete fPropagatorInField;
|
||||
delete fGeomMessenger;
|
||||
ClearNavigators();
|
||||
fTransportationManager = 0;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// GetTransportationManager()
|
||||
//
|
||||
// Retrieve the static instance of the singleton
|
||||
// Retrieve the static instance of the singleton and create it if not existing
|
||||
//
|
||||
G4TransportationManager* G4TransportationManager::GetTransportationManager()
|
||||
{
|
||||
@@ -106,6 +102,16 @@ G4TransportationManager* G4TransportationManager::GetTransportationManager()
|
||||
return fTransportationManager;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// GetInstanceIfExist()
|
||||
//
|
||||
// Retrieve the static instance pointer of the singleton
|
||||
//
|
||||
G4TransportationManager* G4TransportationManager::GetInstanceIfExist()
|
||||
{
|
||||
return fTransportationManager;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// SetFieldManager()
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user