45G4ProductionCutsTableMessenger::
51 theDirectory->SetGuidance(
"Commands for G4VUserPhysicsList.");
55 verboseCmd->SetGuidance(
"Set the Verbose level of G4ProductionCutsTable.");
56 verboseCmd->SetGuidance(
" 0 : Silent (default)");
57 verboseCmd->SetGuidance(
" 1 : Display warning messages");
58 verboseCmd->SetGuidance(
" 2 : Display more info");
59 verboseCmd->SetGuidance(
" 2 : Display debug info");
60 verboseCmd->SetParameterName(
"level",
true);
61 verboseCmd->SetDefaultValue(0);
62 verboseCmd->SetRange(
"level >=0 && level <=3");
66 setLowEdgeCmd->SetGuidance(
"Set low edge energy value ");
67 setLowEdgeCmd->SetParameterName(
"edge",
false);
68 setLowEdgeCmd->SetDefaultValue(0.99);
69 setLowEdgeCmd->SetRange(
"edge >0.0");
70 setLowEdgeCmd->SetDefaultUnit(
"keV");
75 setHighEdgeCmd->SetGuidance(
"Set high edge energy value ");
76 setHighEdgeCmd->SetParameterName(
"edge",
false);
77 setHighEdgeCmd->SetDefaultValue(100.0);
78 setHighEdgeCmd->SetRange(
"edge >0.0");
79 setHighEdgeCmd->SetDefaultUnit(
"TeV");
84 setMaxEnergyCutCmd->SetGuidance(
"Set maximum of cut energy value ");
85 setMaxEnergyCutCmd->SetParameterName(
"cut",
false);
86 setMaxEnergyCutCmd->SetDefaultValue(10.0);
87 setMaxEnergyCutCmd->SetRange(
"cut >0.0");
88 setMaxEnergyCutCmd->SetDefaultUnit(
"GeV");
93 dumpCmd->SetGuidance(
"Dump couples in G4ProductionCutsTable. ");
111 if( command==verboseCmd )
113 theCutsTable->SetVerboseLevel(verboseCmd->GetNewIntValue(newValue));
115 else if( command==dumpCmd )
119 else if( command==setLowEdgeCmd )
121 G4double lowEdge = setLowEdgeCmd->GetNewDoubleValue(newValue);
125 else if( command==setHighEdgeCmd )
127 G4double highEdge = setHighEdgeCmd->GetNewDoubleValue(newValue);
131 else if( command==setMaxEnergyCutCmd )
133 G4double cut = setHighEdgeCmd->GetNewDoubleValue(newValue);
143 if( command==verboseCmd )
145 cv = verboseCmd->ConvertToString(
theCutsTable->GetVerboseLevel());
147 else if( command==setLowEdgeCmd )
150 cv = setLowEdgeCmd->ConvertToString( lowEdge,
"keV" );
152 else if( command==setHighEdgeCmd )
155 cv = setHighEdgeCmd->ConvertToString( highEdge,
"TeV" );
157 else if( command==setMaxEnergyCutCmd )
160 cv = setMaxEnergyCutCmd->ConvertToString( cut,
"GeV" );