48G4TransportationParameters::G4TransportationParameters()
57 if(theInstance ==
nullptr) {
59 if(theInstance ==
nullptr) {
61 theInstance = &manager;
70G4bool G4TransportationParameters::IsLocked()
const
74 auto state = fStateManager->GetCurrentState();
85 if(IsLocked()) {
return false; }
86 fNumberOfTrials = val;
94 if(IsLocked()) {
return false; }
98 if( fWarningEnergy > fImportantEnergy )
99 fImportantEnergy = fWarningEnergy;
108 if(IsLocked()) {
return false; }
109 fImportantEnergy = val;
112 if( fImportantEnergy < fWarningEnergy )
113 fWarningEnergy = fImportantEnergy;
122 auto prec = os.precision(5);
124 os <<
"Transport Parameters: " <<
G4endl;
144 if(IsLocked()) {
return false; }
152 G4int maxTrials = 10;
162 if(IsLocked()) {
return false; }
165 fWarningEnergy= 1.0 * CLHEP::MeV;
166 fImportantEnergy= 10.0 * CLHEP::MeV;
175 if(IsLocked()) {
return false; }
181 G4int maxTrials = 30;
191 if(IsLocked()) {
return false; }
192 fUseMagneticMoment= useMoment;
201 if(IsLocked()) {
return false; }
202 fSilenceLooperWarnings= val;
#define G4MUTEX_INITIALIZER
#define G4MUTEXLOCK(mutex)
#define G4MUTEXUNLOCK(mutex)
G4GLOB_DLL std::ostream G4cout
static G4StateManager * GetStateManager()
G4bool SetLowLooperThresholds()
G4bool SetImportantEnergy(G4double val)
G4bool SetSilenceAllLooperWarnings(G4bool val=true)
G4int GetNumberOfTrials() const
G4double GetWarningEnergy() const
G4bool SetWarningEnergy(G4double val)
G4bool SetIntermediateLooperThresholds()
static G4TransportationParameters * Instance()
G4bool SetHighLooperThresholds()
G4bool EnableUseOfMagneticMoment(G4bool useMoment=true)
G4bool SetNumberOfTrials(G4int val)
G4double GetImportantEnergy() const
void StreamInfo(std::ostream &os) const