46 static G4QSSParameters theQSSParametersSingleton;
47 return &theQSSParametersSingleton;
63 errmsg <<
" OUT of RANGE: Proposed value of dQMin is not within expected limits: "
66 <<
" Proposed value = " << value;
67 G4Exception(
"G4QSSParameters::Set_dQMin",
"QSS-Parameters-0002",
86 errmsg <<
" OUT of RANGE: Proposed value of dQRel is not within expected limits: "
89 <<
" Proposed value = " << value;
90 G4Exception(
"G4QSSParameters::Set_dQRel",
"QSS-Parameters-0003",
101 if( 2 <= order_val && order_val <= 3 )
104 fQssOrder = order_val;
109 err_msg <<
"Requested order for G4QSStepper= "
110 << order_val <<
" is neither 2 nor 3.";
111 G4Exception(
"G4QSSParameters::SetQssOrder",
"QSS-Parameters-0001",
121 const G4int maxSubstep_smallest= 2;
122 const G4int maxSubstep_biggest = 10000;
125 if( maxSubstep_smallest <= maxSubSteps && maxSubSteps <= maxSubstep_biggest )
128 fMaxSubsteps = maxSubSteps;
133 err_msg <<
"Requested max-substeps for G4QSStepper= " << maxSubSteps
134 <<
" is not between "
135 << maxSubstep_smallest <<
" and " << maxSubstep_biggest;
136 G4Exception(
"G4QSSParameters::SetMaxSubsteps",
"QSS-Parameters-0001",
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
const G4double dQRel_smallest
const G4double dQMin_biggest
const G4double dQRel_biggest
const G4double dQMin_smallest
static G4QSSParameters * Instance()
G4bool Set_dQMin(G4double dQMin)
G4bool SetQssOrder(G4int value, G4bool onlyWarn=false)
G4bool Set_dQRel(G4double dQRel)
G4bool SetMaxSubsteps(G4int maxSubsteps)