34 #include "G4UIdirectory.hh" 35 #include "G4UIcmdWithADoubleAndUnit.hh" 36 #include "G4UIcmdWithAString.hh" 43 physDir =
new G4UIdirectory(
"/testem/phys/");
44 physDir->SetGuidance(
"physics list commands");
46 gammaCutCmd =
new G4UIcmdWithADoubleAndUnit(
"/testem/phys/setGCut",
this);
51 gammaCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
53 electCutCmd =
new G4UIcmdWithADoubleAndUnit(
"/testem/phys/setECut",
this);
58 electCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
60 protoCutCmd =
new G4UIcmdWithADoubleAndUnit(
"/testem/phys/setPCut",
this);
65 protoCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
67 allCutCmd =
new G4UIcmdWithADoubleAndUnit(
"/testem/phys/setCuts",
this);
68 allCutCmd->SetGuidance(
"Set cut for all.");
72 allCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
74 pListCmd =
new G4UIcmdWithAString(
"/testem/phys/addPhysics",
this);
75 pListCmd->SetGuidance(
"Add modula physics list.");
76 pListCmd->SetParameterName(
"PList",
false);
77 pListCmd->AvailableForStates(G4State_PreInit);
108 G4double cut =
allCutCmd->GetNewDoubleValue(newValue);
G4UIcmdWithADoubleAndUnit * electCutCmd
G4UIcmdWithAString * pListCmd
G4UIcmdWithADoubleAndUnit * protoCutCmd
void AddPhysicsList(const G4String &name)
void SetNewValue(G4UIcommand *, G4String)
PhysicsListMessenger(PhysicsList *)
void SetCutForGamma(G4double)
void SetCutForElectron(G4double)
void SetCutForPositron(G4double)
PhysicsList * pPhysicsList
G4UIcmdWithADoubleAndUnit * gammaCutCmd
G4UIcmdWithADoubleAndUnit * allCutCmd