7 #include "lcdd/util/StringUtil.hh"
10 #include "G4UIcmdWithABool.hh"
11 #include "G4UIcmdWithoutParameter.hh"
12 #include "G4UIdirectory.hh"
17 m_physicsListDir(0), m_selectCmd(0) {
25 std::istringstream is((
const char*) newVals);
47 bool enableOptical =
true;
48 if (newVals != G4String(
""))
49 enableOptical = G4UIcmdWithABool::GetNewBoolValue(newVals);
67 m_selectCmd =
new G4UIcommand(
"/physics/select",
this);
68 m_selectCmd->SetGuidance(
"Select the Geant4 physics list. This command is only available in the PreInit state.");
69 p =
new G4UIparameter(
"list",
's',
false);
74 m_printListsCmd =
new G4UIcmdWithoutParameter(
"/physics/printLists",
this);
88 m_pdgCmd =
new G4UIcommand(
"/physics/setPDGFile",
this);
89 m_pdgCmd->SetGuidance(
"Set location of particle data for HepPDT, probably called particle.tbl.");
90 p =
new G4UIparameter(
"file",
's',
false);
92 m_pdgCmd->AvailableForStates(G4State_PreInit);
static PhysicsListManager * instance()
Provides management of user physics lists.
void setCurrentListName(const std::string &name)
const std::string & getCurrentListName()
virtual void SetNewValue(G4UIcommand *cmd, G4String newVals)
G4UIcmdWithoutParameter * m_printCurrentCmd
G4UIcmdWithoutParameter * m_printListsCmd
virtual ~PhysicsMessenger()
G4UIcmdWithABool * m_enableOpticalCmd
G4UIcommand * m_selectCmd
G4UIdirectory * m_physicsListDir