42 theFTFTuneIndexCmd =
new G4UIcmdWithAnInteger(
"/process/had/models/ftf/selectTuneByIndex",
this );
43 theFTFTuneIndexCmd->
SetGuidance(
"Select one FTF set of parameters (tune) via its index: 0 (default), 1, 2, ..." );
46 theFTFTuneIndexCmd->
SetRange(
"indexFTFTune>=0" );
49 theFTFTuneNameCmd =
new G4UIcmdWithAString(
"/process/had/models/ftf/selectTuneByName",
this );
50 theFTFTuneNameCmd->
SetGuidance(
"Select one FTF set of parametes (tune) via its name (string)." );
51 theFTFTuneNameCmd->
SetGuidance(
" (default) is the default." );
59 delete theFTFTuneIndexCmd;
60 delete theFTFTuneNameCmd;
65 if ( command == theFTFTuneIndexCmd || command == theFTFTuneNameCmd ) {
67 if ( command == theFTFTuneIndexCmd ) {
73 ed <<
"The FTF tune index=" << value <<
" value is wrong!";
85 ed <<
"The FTF tune name=" << newValues <<
" is not found!";
std::ostringstream G4ExceptionDescription
void SetNewValue(G4UIcommand *command, G4String newValues) override
static const G4int sNumberOfTunes
void SetTuneApplicabilityState(const G4int index, const G4int state)
static G4FTFTunings * Instance()
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
void SetDefaultValue(G4int defVal)
void SetGuidance(const char *aGuidance)
void CommandFailed(G4int errCode, G4ExceptionDescription &ed)
void SetRange(const char *rs)
void AvailableForStates(G4ApplicationState s1)