Import Geant4 9.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:58:43 +02:00
parent 96c8bcd0af
commit b79225fb37
7544 changed files with 245407 additions and 91099 deletions
+16 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.173 2007/11/16 22:37:42 asaim Exp $
$Id: History,v 1.177 2008/07/10 09:27:41 gcosmo Exp $
-------------------------------------------------------------------
=========================================================
@@ -17,6 +17,21 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
July 10th, 2008, Gabriele Cosmo (run-V09-01-02)
- G4RunManagerKernel: avoid deletion of default root-region which is now
taken care by the geometry stores. It resolves the ambiguity of explicitely
avoiding the de-registration and deletion of the default root-region by
the stores and eliminates the limitation of forcing the world logical-volume
being the first registered in the logical-volumes store.
- Coworks with tag "geommng-V09-01-05".
May 09th, 2008, Hisaya Kurashige (run-V09-01-01)
- Invoke G4Particle::DeleteAllParticles() in the destructor of G4VUserPhysicsList
April 30th, 2008, Makoto Asai (run-V09-01-00)
- Added G4Transportation process to short-lived particles in G4VUserPhysicsList
in order to fix the problem found for infinitesimal but non-zero decay length.
November 16th, 2007, Makoto Asai (run-V09-00-06)
- Re-order the commands in G4RunMessenger so that obsolete commands appear last.
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4ExceptionHandler.hh,v 1.2 2006/06/29 21:13:08 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// ------------------------------------------------------------
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4MSSteppingAction.hh,v 1.2 2006/06/29 21:13:10 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4MatScanMessenger.hh,v 1.3 2006/06/29 21:13:12 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4MaterialScanner.hh,v 1.2 2006/06/29 21:13:14 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4Run.hh,v 1.16 2007/03/07 03:00:14 asaim Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4Run_h
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4RunManager.hh,v 1.51 2007/11/13 19:25:13 asaim Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4RunManagerKernel.hh,v 1.9 2007/05/30 00:42:09 asaim Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4RunMessenger.hh,v 1.18 2007/11/13 15:48:44 asaim Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// GEANT 4 class header file
@@ -25,7 +25,7 @@
//
//
// $Id: G4UserPhysicsListMessenger.hh,v 1.18 2007/05/30 10:34:54 gcosmo Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
//---------------------------------------------------------------
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4UserRunAction.hh,v 1.8 2006/06/29 21:13:26 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4UserRunAction_h
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4VModularPhysicsList.hh,v 1.7 2006/06/29 21:13:28 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// ------------------------------------------------------------
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4VPersistencyManager.hh,v 1.5 2006/06/29 21:13:30 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4VPersistencyManager_h
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4VPhysicsConstructor.hh,v 1.4 2006/06/29 21:13:32 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// ------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: G4VUserDetectorConstruction.hh,v 1.9 2007/05/03 17:59:18 asaim Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4VUserDetectorConstruction_h
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4VUserParallelWorld.hh,v 1.2 2006/12/13 15:49:32 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4VUserParallelWorld_h
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4VUserPhysicsList.hh,v 1.35 2007/05/30 10:16:27 ahoward Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// ------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: G4VUserPrimaryGeneratorAction.hh,v 1.5 2006/06/29 21:13:38 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4VUserPrimaryGeneratorAction_h
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4ExceptionHandler.cc,v 1.4 2006/06/29 21:13:40 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// ------------------------------------------------------------
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4MSSteppingAction.cc,v 1.2 2006/06/29 21:13:42 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
//
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4MatScanMessenger.cc,v 1.5 2006/12/01 02:00:55 asaim Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
//
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4MaterialScanner.cc,v 1.3 2006/06/29 21:13:46 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
//
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4Run.cc,v 1.11 2006/11/23 00:06:49 asaim Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#include "G4Run.hh"
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4RunManager.cc,v 1.108 2007/11/09 13:57:39 asaim Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
+9 -11
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4RunManagerKernel.cc,v 1.41 2007/05/30 00:42:09 asaim Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4RunManagerKernel.cc,v 1.43 2008/07/10 09:27:19 gcosmo Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
//
@@ -84,7 +84,7 @@ G4RunManagerKernel::G4RunManagerKernel()
// construction of Geant4 kernel classes
eventManager = new G4EventManager();
defaultRegion = new G4Region("DefaultRegionForTheWorld");
defaultRegion = new G4Region("DefaultRegionForTheWorld"); // deleted by store
defaultRegion->SetProductionCuts(
G4ProductionCutsTable::GetProductionCutsTable()->GetDefaultProductionCuts());
@@ -129,8 +129,6 @@ G4RunManagerKernel::~G4RunManagerKernel()
}
delete eventManager;
if(verboseLevel>1) G4cout << "EventManager deleted." << G4endl;
delete defaultRegion;
if(verboseLevel>1) G4cout << "Default detector region deleted." << G4endl;
G4UImanager* pUImanager = G4UImanager::GetUIpointer();
{
if(pUImanager) delete pUImanager;
@@ -188,7 +186,7 @@ void G4RunManagerKernel::DefineWorldVolume(G4VPhysicalVolume* worldVol,
}
std::vector<G4LogicalVolume*>::iterator lvItr
= defaultRegion->GetRootLogicalVolumeIterator();
defaultRegion->RemoveRootLogicalVolume(*lvItr);
defaultRegion->RemoveRootLogicalVolume(*lvItr,false);
if(verboseLevel>1) G4cout
<< "Obsolete world logical volume is removed from the default region." << G4endl;
}
@@ -305,11 +303,11 @@ G4bool G4RunManagerKernel::RunInitialization()
return false;
}
if(numberOfParallelWorld>0)
{ // Confirm G4CoupledTransportation is used
if(!ConfirmCoupledTransportation())
{ G4Exception("G4CoupledTransportation must be used for parallel world."); }
}
//if(numberOfParallelWorld>0)
//{ // Confirm G4CoupledTransportation is used
// if(!ConfirmCoupledTransportation())
// { G4Exception("G4CoupledTransportation must be used for parallel world."); }
//}
UpdateRegion();
BuildPhysicsTables();
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4RunMessenger.cc,v 1.31 2007/11/16 22:37:43 asaim Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#include "G4RunMessenger.hh"
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4UserPhysicsListMessenger.cc,v 1.28 2007/05/30 10:34:54 gcosmo Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
//---------------------------------------------------------------
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4UserRunAction.cc,v 1.8 2006/06/29 21:13:58 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#include "G4UserRunAction.hh"
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4VModularPhysicsList.cc,v 1.4 2007/06/15 07:26:55 gcosmo Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// ------------------------------------------------------------
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4VPersistencyManager.cc,v 1.5 2006/06/29 21:14:02 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#include "G4VPersistencyManager.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4VUserDetectorConstruction.cc,v 1.8 2007/05/03 17:59:18 asaim Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#include "G4VUserDetectorConstruction.hh"
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4VUserParallelWorld.cc,v 1.2 2006/12/13 15:49:38 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#include "G4VUserParallelWorld.hh"
+19 -2
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VUserPhysicsList.cc,v 1.62 2007/09/23 17:33:00 asaim Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4VUserPhysicsList.cc,v 1.64 2008/05/09 13:00:42 kurasige Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// ------------------------------------------------------------
@@ -101,6 +101,10 @@ G4VUserPhysicsList::~G4VUserPhysicsList()
theMessenger = 0;
}
RemoveProcessManager();
// invoke DeleteAllParticle
theParticleTable->DeleteAllParticles();
}
////////////////////////////////////////////////////////
@@ -267,6 +271,19 @@ void G4VUserPhysicsList::AddTransportation()
}
} else {
// shortlived particle case
// Add transportation process for all particles other than "shortlived"
if ( pmanager == 0) {
// Error !! no process manager
G4String particleName = particle->GetParticleName();
G4Exception("G4VUserPhysicsList::AddTransportation","No process manager",
RunMustBeAborted, particleName );
} else {
// add transportation with ordering = ( -1, "first", "first" )
pmanager ->AddProcess(theTransportationProcess);
pmanager ->SetProcessOrderingToFirst(theTransportationProcess, idxAlongStep);
pmanager ->SetProcessOrderingToFirst(theTransportationProcess, idxPostStep);
}
}
}
}
@@ -25,7 +25,7 @@
//
//
// $Id: G4VUserPrimaryGeneratorAction.cc,v 1.5 2006/06/29 21:14:09 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#include "G4VUserPrimaryGeneratorAction.hh"