46 #include "PhysicsListMessenger.hh"
48 #include "PhysicsList.hh"
58 fGammaCutCmd(0), fElectCutCmd(0), fPosCutCmd(0), fCutCmd(0), fAllCutCmd(0),
59 fPListCmd(0), fListCmd(0)
125 if( command == fGammaCutCmd ) {
129 UI->
ApplyCommand(
"/run/setCutForAGivenParticle gamma " + newValue);
132 }
else if( command == fElectCutCmd ) {
137 UI->
ApplyCommand(
"/run/setCutForAGivenParticle e- " + newValue);
140 }
else if( command == fPosCutCmd ) {
144 UI->
ApplyCommand(
"/run/setCutForAGivenParticle e+ " + newValue);
147 }
else if( command == fCutCmd ) {
151 UI->
ApplyCommand(
"/run/setCutForAGivenParticle proton " + newValue);
154 }
else if( command == fAllCutCmd ) {
166 }
else if( command == fPListCmd ) {
169 if(name ==
"PHYSLIST") {
170 char* path = getenv(name);
173 G4cout <<
"### PhysicsListMessenger WARNING: "
174 <<
" environment variable PHYSLIST is not defined"
181 G4cout <<
"### PhysicsListMessenger WARNING: "
182 <<
" /testhadr/Physics UI command is not available "
183 <<
"for reference Physics List" <<
G4endl;
186 }
else if( command == fListCmd ) {
188 fPhysicsList->
List();
190 G4cout <<
"### PhysicsListMessenger WARNING: "
191 <<
" /testhadr/ListPhysics UI command is not available "
192 <<
"for reference Physics List" <<
G4endl;
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetCutForGamma(G4double)
void SetCutForPositron(G4double)
void SetCutForProton(G4double)
void SetUnitCategory(const char *unitCategory)
static G4double GetNewDoubleValue(const char *paramString)
void SetCutForElectron(G4double)
void AddPhysicsList(const G4String &name)
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
void SetNewValue(G4UIcommand *, G4String)
PhysicsListMessenger(PhysicsList *)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4int ApplyCommand(const char *aCommand)