46 #include "PhysicsListMessenger.hh"
48 #include "PhysicsList.hh"
58 fGammaCutCmd(0), fElectCutCmd(0), fPosCutCmd(0), fCutCmd(0), fAllCutCmd(0),
59 fPListCmd(0), fListCmd(0)
129 UI->
ApplyCommand(
"/run/setCutForAGivenParticle gamma " + newValue);
137 UI->
ApplyCommand(
"/run/setCutForAGivenParticle e- " + newValue);
144 UI->
ApplyCommand(
"/run/setCutForAGivenParticle e+ " + newValue);
147 }
else if( command ==
fCutCmd ) {
151 UI->
ApplyCommand(
"/run/setCutForAGivenParticle proton " + newValue);
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;
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)
G4UIcmdWithADoubleAndUnit * fGammaCutCmd
void SetCutForPositron(G4double)
void SetCutForProton(G4double)
G4UIcmdWithADoubleAndUnit * fAllCutCmd
void SetUnitCategory(const char *unitCategory)
static G4double GetNewDoubleValue(const char *paramString)
G4UIcmdWithADoubleAndUnit * fPosCutCmd
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)
PhysicsList * fPhysicsList
G4UIcmdWithADoubleAndUnit * fElectCutCmd
void SetNewValue(G4UIcommand *, G4String)
G4UIcmdWithAString * fPListCmd
PhysicsListMessenger(PhysicsList *)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithADoubleAndUnit * fCutCmd
G4int ApplyCommand(const char *aCommand)
G4UIcmdWithAString * fListCmd