Import Geant4 4.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:39:52 +02:00
parent 921d3b1cda
commit 330b82b769
4524 changed files with 178689 additions and 43575 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4Run.hh,v 1.4 2001/07/11 10:08:32 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
#ifndef G4Run_h
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4RunManager.hh,v 1.22 2001/11/23 16:20:30 maire Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
//
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4RunMessenger.hh,v 1.8 2001/11/23 16:20:30 maire Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
//
// GEANT 4 class header file
@@ -22,7 +22,7 @@
//
//
// $Id: G4UserPhysicsListMessenger.hh,v 1.10 2001/08/03 06:02:55 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
//
//---------------------------------------------------------------
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4UserRunAction.hh,v 1.5 2001/07/11 10:08:32 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
#ifndef G4UserRunAction_h
+19 -55
View File
@@ -21,27 +21,28 @@
// ********************************************************************
//
//
// $Id: G4VModularPhysicsList.hh,v 1.2 2001/07/11 10:08:32 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4VModularPhysicsList.hh,v 1.4 2002/05/29 12:11:08 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
//
// ------------------------------------------------------------
// GEANT 4 class header file
// Class Description:
// This class is an derived class of G4VUserPhysicsList.
// User should regsiter his/her physics constructors
// by using
// G4VModularPhysicsList::RegsiterPhysics()
// to construt particles and processes.
// In addition User must implement following four virtual methods
// in his own concrete class derived from this class.
// G4VModularPhysicsList::SetCuts()
// set cut values in range to all particles
// (and rebuilding physics table will be invoked )
//
// -------------------------------------------
// History
// first version 12 Nov. 2000 by H.Kurashige
// Class Description:
// This class is a subclass of G4VUserPhysicsList.
// The user should register his/her physics constructors
// by using
// G4VModularPhysicsList::RegsiterPhysics()
// to construt particles and processes.
// In addition the user must implement the four virtual methods
// in his own concrete class derived from this class.
// G4VModularPhysicsList::SetCuts()
// to set cut values in range to all particles
// (rebuild of physics table will be invoked).
// ------------------------------------------------------------
// History
// - first version 12 Nov 2000 by H.Kurashige
// ------------------------------------------------------------
#ifndef G4VModularPhysicsList_h
#define G4VModularPhysicsList_h 1
@@ -53,7 +54,7 @@
#include "G4VUserPhysicsList.hh"
#include "G4VPhysicsConstructor.hh"
class G4VModularPhysicsList: public G4VUserPhysicsList
class G4VModularPhysicsList: public virtual G4VUserPhysicsList
{
public:
G4VModularPhysicsList();
@@ -80,51 +81,14 @@ class G4VModularPhysicsList: public G4VUserPhysicsList
const G4VPhysicsConstructor* GetPhysics(G4int index) const;
const G4VPhysicsConstructor* GetPhysics(const G4String& name) const;
/////////////////////////////////////
protected: // with description
// vector of pointers to G4VPhysicsConstructor
typedef G4std::vector<G4VPhysicsConstructor*> G4PhysConstVector;
G4PhysConstVector* physicsVector;
};
inline
G4VModularPhysicsList::G4VModularPhysicsList()
: G4VUserPhysicsList()
{
physicsVector = new G4PhysConstVector();
}
inline
G4VModularPhysicsList::~G4VModularPhysicsList()
{
G4PhysConstVector::iterator itr;
for (itr = physicsVector->begin(); itr!= physicsVector->end(); ++itr) {
delete (*itr);
}
physicsVector->clear();
}
inline
void G4VModularPhysicsList::ConstructParticle()
{
// create particles
G4PhysConstVector::iterator itr;
for (itr = physicsVector->begin(); itr!= physicsVector->end(); ++itr) {
(*itr)->ConstructParticle();;
}
}
inline
void G4VModularPhysicsList::ConstructProcess()
{
AddTransportation();
G4PhysConstVector::iterator itr;
for (itr = physicsVector->begin(); itr!= physicsVector->end(); ++itr) {
(*itr)->ConstructProcess();
}
}
inline
void G4VModularPhysicsList::RegisterPhysics(G4VPhysicsConstructor* fPhysics)
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4VPersistencyManager.hh,v 1.4 2001/07/11 10:08:32 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
#ifndef G4VPersistencyManager_h
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4VPhysicsConstructor.hh,v 1.3 2001/11/06 06:08:04 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
//
// ------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: G4VUserDetectorConstruction.hh,v 1.4 2001/07/11 10:08:33 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
#ifndef G4VUserDetectorConstruction_h
+1 -1
View File
@@ -22,7 +22,7 @@
//
//
// $Id: G4VUserPhysicsList.hh,v 1.14 2001/10/16 08:35:50 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
//
// ------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: G4VUserPrimaryGeneratorAction.hh,v 1.4 2001/07/11 10:08:33 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
#ifndef G4VUserPrimaryGeneratorAction_h