Import Geant4 4.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:18:25 +02:00
parent 36c080dca6
commit 921d3b1cda
3990 changed files with 185376 additions and 82884 deletions
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Run.hh,v 1.3.4.1 2001/06/28 19:15:19 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4Run.hh,v 1.4 2001/07/11 10:08:32 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
#ifndef G4Run_h
+23 -11
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4RunManager.hh,v 1.15.2.1 2001/06/28 19:15:19 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4RunManager.hh,v 1.22 2001/11/23 16:20:30 maire Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
@@ -80,8 +80,8 @@ class G4Timer;
class G4RunMessenger;
class G4DCtable;
class G4Run;
#include "G4Event.hh"
#include "G4Event.hh"
#include "G4EventManager.hh"
#include "globals.hh"
#include "g4std/vector"
@@ -104,7 +104,7 @@ class G4RunManager
// bottom of the main().
public: // with description
virtual void BeamOn(G4int n_event,const char* macroFile=NULL,G4int n_select=-1);
virtual void BeamOn(G4int n_event,const char* macroFile=0,G4int n_select=-1);
// This method starts an event loof of "n_event" events. The condition of Geant4
// is examined before starting the event loop. This method must be invoked at
// Idle state. The state will be changed to GeomClosed during the event loop and
@@ -146,7 +146,7 @@ class G4RunManager
virtual G4bool ConfirmBeamOnCondition();
virtual void RunInitialization();
virtual void DoEventLoop(G4int n_event,const char* macroFile=NULL,G4int n_select=-1);
virtual void DoEventLoop(G4int n_event,const char* macroFile=0,G4int n_select=-1);
virtual void RunTermination();
// These four protected methods are invoked from BeamOn() method. These four methods
// are invoked in this order.
@@ -210,11 +210,13 @@ class G4RunManager
G4std::vector<G4Event*>* previousEvents;
G4int n_perviousEventsToBeStored;
G4int storeRandomNumberStatus;
G4bool storeRandomNumberStatus;
G4String randomNumberStatusDir;
G4String versionString;
public:
virtual void StoreRandomNumberStatus(G4int eventID=-1);
virtual void rndmSaveThisRun();
virtual void rndmSaveThisEvent();
virtual void RestoreRandomNumberStatus(G4String fileN);
public: // with description
@@ -264,11 +266,21 @@ class G4RunManager
inline const G4UserSteppingAction* GetUserSteppingAction() const
{ return userSteppingAction; }
// These methods returns respective user initialization and action classes.
inline void SetNumberOfAdditionalWaitingStacks(G4int iAdd)
{ eventManager->SetNumberOfAdditionalWaitingStacks(iAdd); }
// Set the number of additional (optional) waiting stacks.
// This method must be invoked at PreInit, Init or Idle states.
// Once the user set the number of additional waiting stacks,
// he/she can use the corresponding ENUM in G4ClassificationOfNewTrack.
inline G4String GetVersionString() const
{ return versionString; }
public:
inline void SetRandomNumberStore(G4int i)
{ storeRandomNumberStatus = i; }
inline G4int GetRandomNumberStore() const
inline void SetRandomNumberStore(G4bool flag)
{ storeRandomNumberStatus = flag; }
inline G4bool GetRandomNumberStore() const
{ return storeRandomNumberStatus; }
inline void SetRandomNumberStoreDir(G4String dir)
{
@@ -325,7 +337,7 @@ class G4RunManager
{
if(i>=1 && i<=n_perviousEventsToBeStored)
{ return (*previousEvents)[i-1]; }
return NULL;
return 0;
}
// Returns the pointer to the "i" previous event. This method is availavle for
// EventProc state. In case the event loop has not yet to reach to the requested
+12 -4
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4RunMessenger.hh,v 1.6.4.1 2001/06/28 19:15:19 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4RunMessenger.hh,v 1.8 2001/11/23 16:20:30 maire Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// GEANT 4 class header file
@@ -86,9 +86,17 @@ class G4RunMessenger: public G4UImessenger
G4UIcmdWithoutParameter * initCmd;
G4UIcmdWithoutParameter * geomCmd;
G4UIcmdWithoutParameter * cutCmd;
G4UIcmdWithAnInteger * storeRandCmd;
G4UIcmdWithAString * restoreRandCmd;
G4UIdirectory * randomDirectory;
G4UIcmdWithAString * randDirCmd;
G4UIcmdWithABool * savingFlagCmd;
G4UIcmdWithoutParameter * saveThisRunCmd;
G4UIcmdWithoutParameter * saveThisEventCmd;
G4UIcmdWithAString * restoreRandCmd;
G4UIcmdWithAString * randDirOld;
G4UIcmdWithAnInteger * storeRandOld;
G4UIcmdWithAString * restoreRandOld;
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UserPhysicsListMessenger.hh,v 1.7.2.1 2001/06/28 19:15:19 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4UserPhysicsListMessenger.hh,v 1.10 2001/08/03 06:02:55 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
//---------------------------------------------------------------
@@ -46,6 +46,7 @@
// storePhysicsTable * store physics table into files
// retreivePhysicsTable * retreive physics table from files
// setStoredInAscii * Switch on/off ascii mode in store/retreive Physics Table
// applyCuts * Set flag for ApplyCuts
// ------------------------------------------------------------
// History
// first version 09 Jan. 1998 by H.Kurashige
@@ -53,6 +54,7 @@
// add buildPhysicsTable command 13 Apr. 1999 by H.Kurashige
// add store/retreivePhysicsTable 08 Nov. 2000 by H.Kurashige
// add setStoredInAscii command 12 Mar. 2001 by H.Kurashige
// add applyCuts command 2 Aug. 2001 by H.Kurashige
// ------------------------------------------------------------
#ifndef G4UserPhysicsListMessenger_h
@@ -98,6 +100,7 @@ public: // with description
G4UIcmdWithAString * storeCmd;
G4UIcmdWithAString * retrieveCmd;
G4UIcmdWithAnInteger * asciiCmd;
G4UIcommand * applyCutsCmd;
};
#endif
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UserRunAction.hh,v 1.4.4.1 2001/06/28 19:15:19 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4UserRunAction.hh,v 1.5 2001/07/11 10:08:32 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
#ifndef G4UserRunAction_h
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VModularPhysicsList.hh,v 1.1.4.1 2001/06/28 19:15:19 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4VModularPhysicsList.hh,v 1.2 2001/07/11 10:08:32 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VPersistencyManager.hh,v 1.3.4.1 2001/06/28 19:15:19 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4VPersistencyManager.hh,v 1.4 2001/07/11 10:08:32 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
#ifndef G4VPersistencyManager_h
+3 -3
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VPhysicsConstructor.hh,v 1.1.4.1 2001/06/28 19:15:19 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4VPhysicsConstructor.hh,v 1.3 2001/11/06 06:08:04 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -82,8 +82,8 @@ class G4VPhysicsConstructor
// verbose level is set equal to physics list when registered
protected:
G4String namePhysics;
G4int verboseLevel;
G4String namePhysics;
protected:
// the particle table has the complete List of existing particle types
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VUserDetectorConstruction.hh,v 1.3.4.1 2001/06/28 19:15:19 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4VUserDetectorConstruction.hh,v 1.4 2001/07/11 10:08:33 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
#ifndef G4VUserDetectorConstruction_h
+26 -18
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VUserPhysicsList.hh,v 1.9.2.1 2001/06/28 19:15:20 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4VUserPhysicsList.hh,v 1.14 2001/10/16 08:35:50 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -197,15 +197,15 @@ class G4VUserPhysicsList
// other than particle types specified in arguments
void SetCutValueForOtherThan(G4double cutValue,
G4ParticleDefinition* first,
G4ParticleDefinition* second = NULL,
G4ParticleDefinition* third = NULL,
G4ParticleDefinition* fourth = NULL,
G4ParticleDefinition* fifth = NULL,
G4ParticleDefinition* sixth = NULL,
G4ParticleDefinition* seventh = NULL,
G4ParticleDefinition* eighth = NULL,
G4ParticleDefinition* nineth = NULL,
G4ParticleDefinition* tenth = NULL );
G4ParticleDefinition* second = 0,
G4ParticleDefinition* third = 0,
G4ParticleDefinition* fourth = 0,
G4ParticleDefinition* fifth = 0,
G4ParticleDefinition* sixth = 0,
G4ParticleDefinition* seventh = 0,
G4ParticleDefinition* eighth = 0,
G4ParticleDefinition* nineth = 0,
G4ParticleDefinition* tenth = 0 );
// "reCalcCutsForOthers" method re-calculates a cut value
// to all particle types which have not be called SetCuts() methods yet.
@@ -216,8 +216,13 @@ class G4VUserPhysicsList
// Cut values will be retrieved from files
void SetParticleCuts( G4double cut, G4ParticleDefinition* );
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
public:
// Get/SetApplyCuts gets/sets the flag for ApplyCuts
void SetApplyCuts(G4bool value, const G4String& name);
G4bool GetApplyCuts(const G4String& name) const;
///////////////////////////////////////////////////////////////////////////////
protected:
// do BuildPhysicsTable for make the integral schema
void BuildIntegralPhysicsTable(G4VProcess* ,G4ParticleDefinition* );
@@ -248,10 +253,7 @@ class G4VUserPhysicsList
// check stored material is consistent with the current detector setup.
virtual G4bool CheckMaterialInfo(const G4String& directory,
G4bool ascii = false);
// check stored cut value is consistent with the current detector setup.
virtual G4bool CheckCutValues(const G4String& directory,
G4bool ascii = false);
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
protected:
// adds new ProcessManager to all particles in the Particle Table
// this routine is used in Construct()
@@ -265,7 +267,7 @@ class G4VUserPhysicsList
public: // with description
// add process manager for particles created on-the-fly
void AddProcessManager(G4ParticleDefinition* newParticle,
G4ProcessManager* newManager = NULL );
G4ProcessManager* newManager = 0 );
////////////////////////////////////////////////////////////////////////
@@ -303,6 +305,12 @@ class G4VUserPhysicsList
private:
enum { FixedStringLengthForStore = 32 };
////////////////////////////////////////////////////////////////////
protected:
enum { NumberOfParticlesForStoreCuts = 9};
static const G4String particleForStoreCuts[NumberOfParticlesForStoreCuts];
G4bool isBuildPhysicsTable[NumberOfParticlesForStoreCuts];
G4int isParticleForStoreCuts(const G4ParticleDefinition*) const;
};
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VUserPrimaryGeneratorAction.hh,v 1.3.4.1 2001/06/28 19:15:20 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4VUserPrimaryGeneratorAction.hh,v 1.4 2001/07/11 10:08:33 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
#ifndef G4VUserPrimaryGeneratorAction_h