33 #include "G4UIdirectory.hh" 34 #include "G4UIcmdWithADoubleAndUnit.hh" 35 #include "G4UIcmdWithAString.hh" 42 physDir =
new G4UIdirectory(
"/testem/phys/");
43 physDir->SetGuidance(
"physics list commands");
45 gammaCutCmd =
new G4UIcmdWithADoubleAndUnit(
"/testem/phys/setGCut",
this);
50 gammaCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
52 electCutCmd =
new G4UIcmdWithADoubleAndUnit(
"/testem/phys/setECut",
this);
57 electCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
59 protoCutCmd =
new G4UIcmdWithADoubleAndUnit(
"/testem/phys/setPCut",
this);
64 protoCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
66 allCutCmd =
new G4UIcmdWithADoubleAndUnit(
"/testem/phys/setCuts",
this);
67 allCutCmd->SetGuidance(
"Set cut for all.");
71 allCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
73 pListCmd =
new G4UIcmdWithAString(
"/testem/phys/addPhysics",
this);
74 pListCmd->SetGuidance(
"Add modula physics list.");
75 pListCmd->SetParameterName(
"PList",
false);
76 pListCmd->AvailableForStates(G4State_PreInit);
107 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