Import Geant4 7.0.0 source tree
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4ExceptionHandler.hh,v 1.1 2002/08/19 18:33:29 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4Run.hh,v 1.10 2004/06/11 14:27:44 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
|
||||
#ifndef G4Run_h
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4RunManager.hh,v 1.37 2003/11/04 01:58:00 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// $Id: G4RunManager.hh,v 1.39 2004/11/25 19:01:13 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -225,7 +225,6 @@ class G4RunManager
|
||||
protected:
|
||||
G4bool geometryInitialized;
|
||||
G4bool physicsInitialized;
|
||||
G4bool geometryNeedsToBeClosed;
|
||||
G4bool runAborted;
|
||||
G4bool initializedAtLeastOnce;
|
||||
G4bool geometryToBeOptimized;
|
||||
@@ -255,7 +254,10 @@ class G4RunManager
|
||||
inline void SetUserInitialization(G4VUserDetectorConstruction* userInit)
|
||||
{ userDetector = userInit; }
|
||||
inline void SetUserInitialization(G4VUserPhysicsList* userInit)
|
||||
{ physicsList = userInit; }
|
||||
{
|
||||
physicsList = userInit;
|
||||
kernel->SetPhysics(userInit);
|
||||
}
|
||||
inline void SetUserAction(G4UserRunAction* userAction)
|
||||
{ userRunAction = userAction; }
|
||||
inline void SetUserAction(G4VUserPrimaryGeneratorAction* userAction)
|
||||
@@ -325,7 +327,7 @@ class G4RunManager
|
||||
|
||||
public: // with description
|
||||
inline void GeometryHasBeenModified()
|
||||
{ geometryNeedsToBeClosed = true; }
|
||||
{ kernel->GeometryHasBeenModified(); }
|
||||
// This method must be invoked (or equivalent UI command can be used)
|
||||
// in case the user changes his/her detector geometry after
|
||||
// Initialize() metho has been invoked. Then, at the begining of the next BeamOn(),
|
||||
@@ -357,7 +359,7 @@ class G4RunManager
|
||||
if(geometryToBeOptimized != vl)
|
||||
{
|
||||
geometryToBeOptimized = vl;
|
||||
geometryNeedsToBeClosed = true;
|
||||
kernel->GeometryHasBeenModified();
|
||||
kernel->SetGeometryToBeOptimized(vl);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4RunManagerKernel.hh,v 1.4 2004/05/04 16:43:25 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
// $Id: G4RunManagerKernel.hh,v 1.5 2004/08/10 23:57:16 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -58,6 +58,7 @@ class G4Region;
|
||||
class G4ExceptionHandler;
|
||||
class G4StackManager;
|
||||
class G4TrackingManager;
|
||||
class G4PrimaryTransformer;
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4EventManager.hh"
|
||||
@@ -88,14 +89,17 @@ class G4RunManagerKernel
|
||||
// set to false, so that the original optimisation and navigation history is
|
||||
// preserved. This method is invoked also at initialisation.
|
||||
|
||||
|
||||
void InitializePhysics(G4VUserPhysicsList* uPhys);
|
||||
void SetPhysics(G4VUserPhysicsList* uPhys);
|
||||
// This method must be invoked at least once by the user with a valid
|
||||
// concrete implementation of user physics list.
|
||||
|
||||
void InitializePhysics();
|
||||
// This method must be invoked at least once by the user to build physics
|
||||
// processes.
|
||||
|
||||
G4bool RunInitialization();
|
||||
// Trigger geometry closing and physics table constructions.
|
||||
// It returns TRUE is all procedures went well.
|
||||
// It returns TRUE if all procedures went well.
|
||||
|
||||
void RunTermination();
|
||||
// Set the application state to G4State_Idle so that the user can modify
|
||||
@@ -156,6 +160,8 @@ class G4RunManagerKernel
|
||||
{ return eventManager->GetStackManager(); }
|
||||
inline G4TrackingManager* GetTrackingManager() const
|
||||
{ return eventManager->GetTrackingManager(); }
|
||||
inline G4PrimaryTransformer* GetPrimaryTransformer() const
|
||||
{ return eventManager->GetPrimaryTransformer(); }
|
||||
|
||||
inline G4String GetVersionString() const
|
||||
{ return versionString; }
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4RunMessenger.hh,v 1.12 2003/11/04 01:58:28 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
// GEANT 4 class header file
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UserPhysicsListMessenger.hh,v 1.15 2003/04/14 20:07:25 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UserRunAction.hh,v 1.7 2003/04/04 16:45:30 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
|
||||
#ifndef G4UserRunAction_h
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VModularPhysicsList.hh,v 1.5 2003/06/16 17:12:50 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// $Id: G4VModularPhysicsList.hh,v 1.6 2004/11/29 06:13:11 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -65,7 +65,6 @@ class G4VModularPhysicsList: public virtual G4VUserPhysicsList
|
||||
// in the particle table
|
||||
virtual void SetCuts() = 0;
|
||||
|
||||
protected: // with description
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each particle type will be instantiated
|
||||
virtual void ConstructParticle();
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VPersistencyManager.hh,v 1.4 2001/07/11 10:08:32 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
|
||||
#ifndef G4VPersistencyManager_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VPhysicsConstructor.hh,v 1.3 2001/11/06 06:08:04 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VUserDetectorConstruction.hh,v 1.4 2001/07/11 10:08:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
|
||||
#ifndef G4VUserDetectorConstruction_h
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VUserPhysicsList.hh,v 1.25 2003/11/03 02:16:36 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// $Id: G4VUserPhysicsList.hh,v 1.29 2004/11/29 06:13:11 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -97,20 +97,17 @@ class G4VUserPhysicsList
|
||||
virtual ~G4VUserPhysicsList();
|
||||
|
||||
public: // with description
|
||||
// By calling the "Construct" method,
|
||||
// particles and processes are created
|
||||
void Construct();
|
||||
|
||||
|
||||
protected: // with description
|
||||
// These two methods of ConstructParticle() and ConstructProcess()
|
||||
// will be invoked in the Construct() method.
|
||||
|
||||
// each particle type will be instantiated
|
||||
// Each particle type will be instantiated
|
||||
// This method is invoked by the RunManger
|
||||
virtual void ConstructParticle() = 0;
|
||||
|
||||
// By calling the "Construct" method,
|
||||
// process manager and processes are created.
|
||||
void Construct();
|
||||
|
||||
// each physics process will be instantiated and
|
||||
// Each physics process will be instantiated and
|
||||
// registered to the process manager of each particle type
|
||||
// This method is invoked in Construct" method
|
||||
virtual void ConstructProcess() = 0;
|
||||
|
||||
protected: // with description
|
||||
@@ -139,6 +136,9 @@ class G4VUserPhysicsList
|
||||
// retrieved from files
|
||||
void BuildPhysicsTable();
|
||||
|
||||
// do PreparePhysicsTable for specified particle type
|
||||
void PreparePhysicsTable(G4ParticleDefinition* );
|
||||
|
||||
// do BuildPhysicsTable for specified particle type
|
||||
void BuildPhysicsTable(G4ParticleDefinition* );
|
||||
|
||||
@@ -181,22 +181,8 @@ class G4VUserPhysicsList
|
||||
// at the proper moment.
|
||||
void DumpCutValuesTableIfRequested();
|
||||
|
||||
void DumpCutValues(const G4String &particle_name = "ALL")
|
||||
{
|
||||
G4cerr << "WARNING !" << G4endl;
|
||||
G4cerr << " Obsolete DumpCutValues() method is invoked for " << particle_name << G4endl;
|
||||
G4cerr << " Please use DumpCutValuesTable() instead." << G4endl;
|
||||
G4cerr << " This dummy method implementation will be removed soon." << G4endl;
|
||||
DumpCutValuesTable();
|
||||
}
|
||||
void DumpCutValues(G4ParticleDefinition* )
|
||||
{
|
||||
G4cerr << "WARNING !" << G4endl;
|
||||
G4cerr << " DumpCutValues() became obsolete." << G4endl;
|
||||
G4cerr << " Please use DumpCutValuesTable() instead." << G4endl;
|
||||
G4cerr << " This dummy method implementation will be removed soon." << G4endl;
|
||||
DumpCutValuesTable();
|
||||
}
|
||||
void DumpCutValues(const G4String &particle_name = "ALL");
|
||||
void DumpCutValues(G4ParticleDefinition* );
|
||||
|
||||
public: // with description
|
||||
void SetVerboseLevel(G4int value);
|
||||
@@ -310,25 +296,24 @@ class G4VUserPhysicsList
|
||||
// Following method is for backward compatibility and removed soon
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
protected:
|
||||
void SetCutValueForOthers(G4double)
|
||||
{
|
||||
G4cerr << "WARNING !" << G4endl;
|
||||
G4cerr << " SetCutValueForOthers became obsolete." << G4endl;
|
||||
G4cerr << " It is harmless to remove this invokation without any side effects." << G4endl;
|
||||
G4cerr << " This dummy method implementation will be removed soon." << G4endl;
|
||||
}
|
||||
void SetCutValueForOthers(G4double) const;
|
||||
|
||||
};
|
||||
|
||||
inline
|
||||
void G4VUserPhysicsList::SetCutValueForOthers(G4double) const
|
||||
{
|
||||
G4cerr << "WARNING !" << G4endl;
|
||||
G4cerr << " SetCutValueForOthers became obsolete." << G4endl;
|
||||
G4cerr << " It is harmless to remove this invokation without any side effects." << G4endl;
|
||||
G4cerr << " This dummy method implementation will be removed soon." << G4endl;
|
||||
}
|
||||
|
||||
inline void G4VUserPhysicsList::Construct()
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel >1) G4cout << "G4VUserPhysicsList::Construct()" << G4endl;
|
||||
|
||||
if (verboseLevel >1) G4cout << "Construct particles " << G4endl;
|
||||
#endif
|
||||
ConstructParticle();
|
||||
|
||||
InitializeProcessManager();
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VUserPrimaryGeneratorAction.hh,v 1.4 2001/07/11 10:08:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
|
||||
#ifndef G4VUserPrimaryGeneratorAction_h
|
||||
|
||||
Reference in New Issue
Block a user