7 #include <G4UIdirectory.hh> 8 #include <G4UIcmdWithAString.hh> 9 #include <G4UIcmdWithoutParameter.hh> 10 #include <G4UIcmdWithADoubleAndUnit.hh> 11 #include <G4UIcmdWithABool.hh> 13 #include "G4ParticleTable.hh" 14 #include "G4ParticleDefinition.hh" 17 : fPhysicsList(pPhys) {
19 fDirectory->SetGuidance(
"Control the physics lists");
21 fGammaCutCMD =
new G4UIcmdWithADoubleAndUnit(
"/edep/phys/gammaCut",
this);
27 fGammaCutCMD->AvailableForStates(G4State_PreInit,G4State_Idle);
29 fElectCutCMD =
new G4UIcmdWithADoubleAndUnit(
"/edep/phys/electronCut",
36 fElectCutCMD->AvailableForStates(G4State_PreInit,G4State_Idle);
38 fPosCutCMD =
new G4UIcmdWithADoubleAndUnit(
"/edep/phys/positronCut",
45 fPosCutCMD->AvailableForStates(G4State_PreInit,G4State_Idle);
47 fAllCutCMD =
new G4UIcmdWithADoubleAndUnit(
"/edep/phys/allCuts",
this);
53 fAllCutCMD->AvailableForStates(G4State_PreInit,G4State_Idle);
74 ->GetNewDoubleValue(newValue));
78 ->GetNewDoubleValue(newValue));
82 ->GetNewDoubleValue(newValue));
85 G4double cut =
fAllCutCMD->GetNewDoubleValue(newValue);
G4UIcmdWithADoubleAndUnit * fGammaCutCMD
void SetCutForGamma(G4double)
Set the range cut for photons.
PhysicsListMessenger(EDepSim::PhysicsList *)
G4UIcmdWithADoubleAndUnit * fElectCutCMD
void SetIonizationModel(bool)
virtual void SetNewValue(G4UIcommand *, G4String)
EDepSim::PhysicsList * fPhysicsList
void SetCutForPositron(G4double)
Set the range cut for positrons.
void SetCutForElectron(G4double)
Set the range cut for electrons.
G4UIdirectory * fDirectory
G4UIcmdWithADoubleAndUnit * fAllCutCMD
G4UIcmdWithABool * fIonizationModelCMD
virtual ~PhysicsListMessenger()
G4UIcmdWithADoubleAndUnit * fPosCutCMD