Import Geant4 3.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:03:00 +02:00
parent cfcb558cfe
commit 137e303ecc
2843 changed files with 37082 additions and 38426 deletions
+10 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.27 2000/12/14 10:39:44 gcosmo Exp $
$Id: History,v 1.29 2001/02/08 06:20:18 asaim Exp $
-------------------------------------------------------------------
=========================================================
@@ -17,6 +17,15 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
Feb 8 2001, M.Asai (run-V03-00-01)
- Migration to STL vector classes
affected files :
./run/include/G4RunManager.hh
./run/src/G4RunManager.cc
Feb 7 2001, M.Asai (run-V03-00-00)
- STL migration of G4RunManager
Dec 14 2000, G.Cosmo (run-V02-00-06)
- Updated date to G4RunManager.cc for public release 3.0.
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4Run.hh,v 1.3 1999/12/15 14:53:52 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#ifndef G4Run_h
+4 -4
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4RunManager.hh,v 1.13 2000/11/13 01:24:20 asaim Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4RunManager.hh,v 1.15 2001/02/08 06:07:22 asaim Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
@@ -68,7 +68,7 @@ class G4Run;
#include "G4EventManager.hh"
#include "globals.hh"
#include "g4rw/tpordvec.h"
#include "g4std/vector"
class G4RunManager
{
@@ -191,7 +191,7 @@ class G4RunManager
G4Run* currentRun;
G4Event* currentEvent;
G4RWTPtrOrderedVector<G4Event>* previousEvents;
G4std::vector<G4Event*>* previousEvents;
G4int n_perviousEventsToBeStored;
G4int storeRandomNumberStatus;
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4RunMessenger.hh,v 1.6 2000/11/13 01:24:20 asaim Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// GEANT 4 class header file
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4UserPhysicsListMessenger.hh,v 1.6 2000/11/08 10:01:59 kurasige Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
//---------------------------------------------------------------
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4UserRunAction.hh,v 1.4 1999/12/15 14:53:52 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#ifndef G4UserRunAction_h
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VModularPhysicsList.hh,v 1.1 2000/11/14 23:53:13 kurasige Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// ------------------------------------------------------------
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VPersistencyManager.hh,v 1.3 1999/12/15 14:53:52 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#ifndef G4VPersistencyManager_h
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VPhysicsConstructor.hh,v 1.1 2000/11/14 23:53:13 kurasige Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// ------------------------------------------------------------
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VUserDetectorConstruction.hh,v 1.3 1999/12/15 14:53:52 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#ifndef G4VUserDetectorConstruction_h
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VUserPhysicsList.hh,v 1.8 2000/11/14 23:53:13 kurasige Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// ------------------------------------------------------------
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VUserPrimaryGeneratorAction.hh,v 1.3 1999/12/15 14:53:52 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#ifndef G4VUserPrimaryGeneratorAction_h
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4Run.cc,v 1.2 1999/12/15 14:53:53 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#include "G4Run.hh"
+17 -10
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4RunManager.cc,v 1.18 2000/12/14 10:38:14 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
// $Id: G4RunManager.cc,v 1.23 2001/04/05 09:18:13 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
//
@@ -63,14 +63,14 @@ G4RunManager::G4RunManager()
eventManager = new G4EventManager();
timer = new G4Timer();
runMessenger = new G4RunMessenger(this);
previousEvents = new G4RWTPtrOrderedVector<G4Event>;
previousEvents = new G4std::vector<G4Event*>;
G4ParticleTable::GetParticleTable()->CreateMessenger();
G4ProcessTable::GetProcessTable()->CreateMessenger();
randomNumberStatusDir = "./";
G4cout
<< "**********************************************" << G4endl
<< " Geant4 version $Name: geant4-03-00 $" << G4endl
<< " (15-Dec-2000)" << G4endl
<< " Geant4 version $Name: geant4-03-01 $" << G4endl
<< " (06-Apr-2001)" << G4endl
<< " Copyright : Geant4 Collaboration" << G4endl
<< "**********************************************" << G4endl;
}
@@ -196,9 +196,12 @@ void G4RunManager::RunInitialization()
G4StateManager* stateManager = G4StateManager::GetStateManager();
stateManager->SetNewState(GeomClosed);
previousEvents->clearAndDestroy();
//previousEvents->clearAndDestroy();
for(G4int itr=0;itr<previousEvents->size();itr++)
{ delete (*previousEvents)[itr]; }
previousEvents->clear();
for(G4int i_prev=0;i_prev<n_perviousEventsToBeStored;i_prev++)
{ previousEvents->insert((G4Event*)NULL); }
{ previousEvents->push_back((G4Event*)NULL); }
runAborted = false;
@@ -282,7 +285,10 @@ void G4RunManager::RunTermination()
{
G4StateManager* stateManager = G4StateManager::GetStateManager();
previousEvents->clearAndDestroy();
//previousEvents->clearAndDestroy();
for(G4int itr=0;itr<previousEvents->size();itr++)
{ delete (*previousEvents)[itr]; }
previousEvents->clear();
if(userRunAction) userRunAction->EndOfRunAction(currentRun);
@@ -302,8 +308,9 @@ void G4RunManager::StackPreviousEvent(G4Event* anEvent)
{ evt = anEvent; }
else
{
previousEvents->prepend(anEvent);
evt = previousEvents->removeLast();
previousEvents->insert(previousEvents->begin(),anEvent);
evt = previousEvents->back();
previousEvents->pop_back();
}
delete evt;
}
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4RunMessenger.cc,v 1.7 2000/11/13 01:24:21 asaim Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#include "G4RunMessenger.hh"
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4UserPhysicsListMessenger.cc,v 1.5 2000/11/08 12:40:05 kurasige Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
//---------------------------------------------------------------
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4UserRunAction.cc,v 1.3 1999/12/15 14:53:54 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#include "G4UserRunAction.hh"
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VPersistencyManager.cc,v 1.2 1999/12/15 14:53:54 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#include "G4VPersistencyManager.hh"
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VUserDetectorConstruction.cc,v 1.2 1999/12/15 14:53:54 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#include "G4VUserDetectorConstruction.hh"
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VUserPhysicsList.cc,v 1.12 2000/11/16 14:46:48 kurasige Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
//
// ------------------------------------------------------------
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VUserPrimaryGeneratorAction.cc,v 1.2 1999/12/15 14:53:54 gunter Exp $
// GEANT4 tag $Name: geant4-03-00 $
// GEANT4 tag $Name: geant4-03-01 $
//
#include "G4VUserPrimaryGeneratorAction.hh"