16 #include "G4UIdirectory.hh" 17 #include "G4UIcmdWithADoubleAndUnit.hh" 18 #include "G4UIcmdWithAString.hh" 19 #include "G4UIcmdWithAnInteger.hh" 20 #include "G4LossTableManager.hh" 35 physDir =
new G4UIdirectory(
"/ActarSim/phys/");
36 physDir->SetGuidance(
"physics list commands");
38 gammaCutCmd =
new G4UIcmdWithADoubleAndUnit(
"/ActarSim/phys/setGCut",
this);
43 gammaCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
45 electCutCmd =
new G4UIcmdWithADoubleAndUnit(
"/ActarSim/phys/setECut",
this);
50 electCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
52 protoCutCmd =
new G4UIcmdWithADoubleAndUnit(
"/ActarSim/phys/setPCut",
this);
57 protoCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
59 allCutCmd =
new G4UIcmdWithADoubleAndUnit(
"/ActarSim/phys/setCuts",
this);
60 allCutCmd->SetGuidance(
"Set cut for all.");
64 allCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
66 pListCmd =
new G4UIcmdWithAString(
"/ActarSim/phys/addPhysics",
this);
67 pListCmd->SetGuidance(
"Add modula physics list.");
68 pListCmd->SetParameterName(
"PList",
false);
69 pListCmd->AvailableForStates(G4State_PreInit);
71 RmPListCmd =
new G4UIcmdWithAString(
"/ActarSim/phys/RemovePhysics",
this);
72 RmPListCmd->SetGuidance(
"Remove all modula physics list.");
75 verbCmd =
new G4UIcmdWithAnInteger(
"/ActarSim/phys/verbose",
this);
76 verbCmd->SetGuidance(
"Set verbose level for processes");
77 verbCmd->SetParameterName(
"pVerb",
false);
78 verbCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
110 G4double cut =
allCutCmd->GetNewDoubleValue(newValue);
117 G4LossTableManager::Instance()->SetVerbose(
verbCmd->GetNewIntValue(newValue));
G4UIcmdWithADoubleAndUnit * allCutCmd
Set cut for all.
G4UIcmdWithADoubleAndUnit * protoCutCmd
Set positron cut.
ActarSimPhysicsList * pPhysicsList
Pointer to the Physic List.
void SetCutForElectron(G4double)
Setting cut value for the electron.
G4UIcmdWithAnInteger * verbCmd
Set verbose level for processes.
ActarSimPhysicsListMessenger(ActarSimPhysicsList *)
G4UIcmdWithAString * RmPListCmd
Remove all modula physics list.
void AddPhysicsList(const G4String &)
Registering the physics processes.
G4UIcmdWithAString * pListCmd
Add modula physics list.
~ActarSimPhysicsListMessenger()
Destructor.
G4UIcmdWithADoubleAndUnit * electCutCmd
Set electron cut.
G4UIdirectory * physDir
Directory.
void SetCutForGamma(G4double)
Setting cut value for the gammas.
void SetCutForPositron(G4double)
Setting cut value for the positron.
G4UIcmdWithADoubleAndUnit * gammaCutCmd
Set gamma cut.
~ActarSimPhysicsList()
Destructor. Nothing to do.
void SetNewValue(G4UIcommand *, G4String)
Setting the values using the ActarSimPhysicsList interface.