#include <G4EmQMessenger.hh>
Inheritance diagram for G4EmQMessenger:
Public Member Functions | |
G4EmQMessenger (G4EmQExtraPhysics *af) | |
virtual | ~G4EmQMessenger () |
void | SetNewValue (G4UIcommand *aComm, G4String aS) |
Definition at line 49 of file G4EmQMessenger.hh.
G4EmQMessenger::G4EmQMessenger | ( | G4EmQExtraPhysics * | af | ) |
Definition at line 44 of file G4EmQMessenger.cc.
References G4UIcommand::AvailableForStates(), G4HadronicDeprecate, G4State_Idle, G4State_PreInit, G4UIcmdWithAString::SetCandidates(), G4UIcmdWithAString::SetDefaultValue(), G4UIcommand::SetGuidance(), and G4UIcmdWithAString::SetParameterName().
00045 { 00046 G4HadronicDeprecate("G4EmQMessenger"); 00047 00048 theB = ab; 00049 aDir1 = new G4UIdirectory("/physics_engine/"); 00050 aDir1->SetGuidance("commands related to the physics simulation engine."); 00051 00052 // general stuff. 00053 aDir2 = new G4UIdirectory("/physics_engine/tailor/"); 00054 aDir2->SetGuidance("tailoring the processes"); 00055 00056 // command for synchrotron radiation. 00057 theSynch = new G4UIcmdWithAString("/physics_engine/tailor/SyncRadiation",this); 00058 theSynch->SetGuidance("Switching on/off synchrotron radiation."); 00059 theSynch->SetParameterName("status",false); 00060 theSynch->SetCandidates("on off"); 00061 theSynch->SetDefaultValue("off"); 00062 theSynch->AvailableForStates(G4State_PreInit,G4State_Idle); 00063 00064 // command for gamma nuclear physics. 00065 theGN = new G4UIcmdWithAString("/physics_engine/tailor/GammaNuclear",this); 00066 theGN->SetGuidance("Switching on gamma nuclear physics."); 00067 theGN->SetParameterName("status",false); 00068 theGN->SetCandidates("on off"); 00069 theGN->SetDefaultValue("on"); 00070 theGN->AvailableForStates(G4State_PreInit,G4State_Idle); 00071 00072 // command for muon nuclear physics. 00073 theMUN = new G4UIcmdWithAString("/physics_engine/tailor/MuonNuclear",this); 00074 theMUN->SetGuidance("Switching on muon nuclear physics."); 00075 theMUN->SetParameterName("status",false); 00076 theMUN->SetCandidates("on off"); 00077 theMUN->SetDefaultValue("off"); 00078 theMUN->AvailableForStates(G4State_PreInit,G4State_Idle); 00079 }
G4EmQMessenger::~G4EmQMessenger | ( | ) | [virtual] |
Definition at line 81 of file G4EmQMessenger.cc.
00082 { 00083 delete theSynch; 00084 delete theGN; 00085 delete theMUN; 00086 delete aDir1; 00087 delete aDir2; 00088 }
void G4EmQMessenger::SetNewValue | ( | G4UIcommand * | aComm, | |
G4String | aS | |||
) | [virtual] |
Reimplemented from G4UImessenger.
Definition at line 90 of file G4EmQMessenger.cc.
References G4EmQExtraPhysics::GammaNuclear(), G4EmQExtraPhysics::MuonNuclear(), and G4EmQExtraPhysics::Synch().
00091 { 00092 if(aComm==theSynch) theB->Synch(aS); 00093 if(aComm==theGN) theB->GammaNuclear(aS); 00094 if(aComm==theMUN) theB->MuonNuclear(aS); 00095 }