Import Geant4 10.5.1 source tree
This commit is contained in:
@@ -16,6 +16,20 @@ committal in the CVS repository !
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
March 13th, 2019, M. Asai (run-V10-05-03)
|
||||
- G4UserPhysicsListMessenger.cc: Defining unit categories for UI commands
|
||||
that take units.
|
||||
|
||||
March 11th, 2019, G. Cosmo
|
||||
- Fixed typos in printouts in G4RunMessenger, G4UserPhysicsListMessenger
|
||||
and G4VUserPhysicsList.
|
||||
|
||||
February 13th, 2019, M. Asai
|
||||
- Fix G4MultiRunAction.cc to coop with more than one user run action classes
|
||||
|
||||
January 31st, 2019, I.Hrivnacova
|
||||
- Merged GitHub PR #4: all Boolean operators now return G4bool.
|
||||
|
||||
November 9th, 2018, J. Apostolakis (run-V10-04-22)
|
||||
- G4PhysicsListHelper - new methods to set low or high 'looper' thresholds
|
||||
in Transportation classes (simple & coupled.)
|
||||
|
||||
@@ -59,8 +59,8 @@ public:
|
||||
|
||||
G4ExceptionHandler();
|
||||
virtual ~G4ExceptionHandler();
|
||||
G4int operator==(const G4ExceptionHandler &right) const;
|
||||
G4int operator!=(const G4ExceptionHandler &right) const;
|
||||
G4bool operator==(const G4ExceptionHandler &right) const;
|
||||
G4bool operator!=(const G4ExceptionHandler &right) const;
|
||||
|
||||
public: // with description
|
||||
|
||||
|
||||
@@ -40,14 +40,14 @@
|
||||
// dumpRegion * Dump information of a region.
|
||||
// dumpCouples * Dump information of material-cuts-couples.
|
||||
// optimizeGeometry * Set the optimization flag of closing geometry.
|
||||
// breakAtBeginOfEvent * Set a break point at the begining of every event.
|
||||
// breakAtBeginOfEvent * Set a break point at the beginning of every event.
|
||||
// breakAtEndOfEvent * Set a break point at the end of every event.
|
||||
// abort * Abort current run processing.
|
||||
// Initialize * Initialize G4 kernel.
|
||||
// geometryModified * Force geometry to be closed again.
|
||||
// physicsModified * Force cross-section tables to be calculated again.
|
||||
// (and rebuilding physics table will be invoked)
|
||||
// constructScoringWorlds * Constrct scoring world(s) if defined
|
||||
// constructScoringWorlds * Construct scoring world(s) if defined
|
||||
//
|
||||
|
||||
#ifndef G4RunMessenger_h
|
||||
|
||||
@@ -58,12 +58,12 @@ G4ExceptionHandler& G4ExceptionHandler::operator=(const G4ExceptionHandler &)
|
||||
return *this;
|
||||
}
|
||||
|
||||
G4int G4ExceptionHandler::operator==(const G4ExceptionHandler &right) const
|
||||
G4bool G4ExceptionHandler::operator==(const G4ExceptionHandler &right) const
|
||||
{
|
||||
return (this == &right);
|
||||
}
|
||||
|
||||
G4int G4ExceptionHandler::operator!=(const G4ExceptionHandler &right) const
|
||||
G4bool G4ExceptionHandler::operator!=(const G4ExceptionHandler &right) const
|
||||
{
|
||||
return (this != &right);
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ G4MatScanMessenger::G4MatScanMessenger(G4MaterialScanner* p1)
|
||||
singleCmd->SetParameter(par);
|
||||
|
||||
single2Cmd = new G4UIcmdWith3Vector("/control/matScan/singleTo",this);
|
||||
single2Cmd->SetGuidance("Measure thicknesss for one direction defined by a unit vector.");
|
||||
single2Cmd->SetGuidance("Measure thickness for one direction defined by a unit vector.");
|
||||
single2Cmd->SetParameterName("X","Y","Z",false);
|
||||
|
||||
eyePosCmd = new G4UIcmdWith3VectorAndUnit("/control/matScan/eyePosition",this);
|
||||
|
||||
@@ -49,7 +49,7 @@ G4Run* G4MultiRunAction::GenerateRun() {
|
||||
" of G4Run, not allowed.");
|
||||
return nullptr;
|
||||
}
|
||||
aRun = anotherRun;
|
||||
if( anotherRun != nullptr) aRun = anotherRun;
|
||||
}
|
||||
return aRun;
|
||||
}
|
||||
|
||||
@@ -141,21 +141,21 @@ G4RunMessenger::G4RunMessenger(G4RunManager * runMgr)
|
||||
evModCmd->SetGuidance("The value N may affect on the computing performance in particular");
|
||||
evModCmd->SetGuidance("if N is too small compared to the total number of events.");
|
||||
evModCmd->SetGuidance("The second parameter seedOnce specifies how frequently each worker");
|
||||
evModCmd->SetGuidance("thread is seeded by the random number sequence contrally managed");
|
||||
evModCmd->SetGuidance("thread is seeded by the random number sequence centrally managed");
|
||||
evModCmd->SetGuidance("by the master G4MTRunManager.");
|
||||
evModCmd->SetGuidance(" - If seedOnce is set to 0 (default), seeds that are centrally managed");
|
||||
evModCmd->SetGuidance(" by G4MTRunManager are set for every event of every worker thread.");
|
||||
evModCmd->SetGuidance(" This option guarantees event reproducability regardless of number");
|
||||
evModCmd->SetGuidance(" This option guarantees event reproducibility regardless of number");
|
||||
evModCmd->SetGuidance(" of threads.");
|
||||
evModCmd->SetGuidance(" - If seedOnce is set to 1, seeds are set only once for the first");
|
||||
evModCmd->SetGuidance(" event of each run of each worker thread. Event reproducability is");
|
||||
evModCmd->SetGuidance(" event of each run of each worker thread. Event reproducibility is");
|
||||
evModCmd->SetGuidance(" guaranteed only if the same number of worker threads are used.");
|
||||
evModCmd->SetGuidance(" On the other hand, this option offers better computing performance");
|
||||
evModCmd->SetGuidance(" in particular for applications with relatively small primary");
|
||||
evModCmd->SetGuidance(" particle energy and large number of events.");
|
||||
evModCmd->SetGuidance(" - If seedOnce is set to 2, seeds are set only for the first event of");
|
||||
evModCmd->SetGuidance(" group of N events. This option is reserved for the future use when");
|
||||
evModCmd->SetGuidance(" Geant4 allows number of threads to be dynatically changed during an");
|
||||
evModCmd->SetGuidance(" Geant4 allows number of threads to be dynamically changed during an");
|
||||
evModCmd->SetGuidance(" event loop.");
|
||||
evModCmd->SetGuidance("This command is valid only for multi-threaded mode.");
|
||||
evModCmd->SetGuidance("This command is ignored if it is issued in sequential mode.");
|
||||
@@ -237,7 +237,7 @@ G4RunMessenger::G4RunMessenger(G4RunManager * runMgr)
|
||||
physCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
|
||||
|
||||
constScoreCmd = new G4UIcmdWithoutParameter("/run/constructScoringWorlds",this);
|
||||
constScoreCmd->SetGuidance("Constrct scoring parallel world(s) if defined.");
|
||||
constScoreCmd->SetGuidance("Construct scoring parallel world(s) if defined.");
|
||||
constScoreCmd->SetGuidance("This command is not mandatory, but automatically called when a run starts.");
|
||||
constScoreCmd->SetGuidance("But the user may use this to visualize the scoring world(s) before a run to start.");
|
||||
constScoreCmd->AvailableForStates(G4State_Idle);
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
#include "G4UIcmdWithAnInteger.hh"
|
||||
#include "G4UIcmdWithADoubleAndUnit.hh"
|
||||
#include "G4UIcmdWithAString.hh"
|
||||
#include "G4UIparameter.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4Tokenizer.hh"
|
||||
@@ -91,7 +92,7 @@ G4UserPhysicsListMessenger::G4UserPhysicsListMessenger(G4VUserPhysicsList* pPart
|
||||
param->SetParameterRange("cut>=0.0") ;
|
||||
setCutForAGivenParticleCmd->SetParameter(param) ;
|
||||
param = new G4UIparameter("unit",'s',false) ;
|
||||
param->SetDefaultValue("mm") ;
|
||||
param->SetDefaultUnit("mm");
|
||||
setCutForAGivenParticleCmd->SetParameter(param) ;
|
||||
setCutForAGivenParticleCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
|
||||
|
||||
@@ -154,7 +155,7 @@ G4UserPhysicsListMessenger::G4UserPhysicsListMessenger(G4VUserPhysicsList* pPart
|
||||
|
||||
// /run/particle/setStoredInAscii command
|
||||
asciiCmd = new G4UIcmdWithAnInteger("/run/particle/setStoredInAscii",this);
|
||||
asciiCmd->SetGuidance("Switch on/off ascii mode in store/retreive Physics Table");
|
||||
asciiCmd->SetGuidance("Switch on/off ascii mode in store/retrieve Physics Table");
|
||||
asciiCmd->SetGuidance(" Enter 0(binary) or 1(ascii)");
|
||||
asciiCmd->SetParameterName("ascii",true);
|
||||
asciiCmd->SetDefaultValue(0);
|
||||
@@ -191,7 +192,7 @@ G4UserPhysicsListMessenger::G4UserPhysicsListMessenger(G4VUserPhysicsList* pPart
|
||||
dumpCutValuesCmd->SetGuidance("Dumping a list takes place when you issue 'beamOn' and");
|
||||
dumpCutValuesCmd->SetGuidance("actual conversion tables from range to energy are available.");
|
||||
dumpCutValuesCmd->SetGuidance("If you want a list 'immediately', use '/run/dumpRegion' for threshold");
|
||||
dumpCutValuesCmd->SetGuidance("list given in gange only. Also, '/run/dumpCouples' gives you the");
|
||||
dumpCutValuesCmd->SetGuidance("list given in range only. Also, '/run/dumpCouples' gives you the");
|
||||
dumpCutValuesCmd->SetGuidance("current list if you have already issued 'run/beamOn' at least once.");
|
||||
dumpCutValuesCmd->SetParameterName("particle",true);
|
||||
dumpCutValuesCmd->SetDefaultValue("all");
|
||||
|
||||
@@ -601,11 +601,11 @@ void G4VUserPhysicsList::BuildPhysicsTable(G4ParticleDefinition* particle)
|
||||
}
|
||||
if (fRetrievePhysicsTable) {
|
||||
if ( !fIsRestoredCutValues){
|
||||
// fail to retreive cut tables
|
||||
// fail to retrieve cut tables
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>0){
|
||||
G4cout << "G4VUserPhysicsList::BuildPhysicsTable "
|
||||
<< "Physics table can not be retreived and will be calculated "
|
||||
<< "Physics table can not be retrieved and will be calculated "
|
||||
<< G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user