Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4EmMessenger Class Reference

#include <G4EmMessenger.hh>

Inheritance diagram for G4EmMessenger:
G4UImessenger

Public Member Functions

 G4EmMessenger (G4EmExtraPhysics *af)
 
virtual ~G4EmMessenger ()
 
void SetNewValue (G4UIcommand *aComm, G4String aS)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator== (const G4UImessenger &messenger) const
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 

Detailed Description

Definition at line 50 of file G4EmMessenger.hh.

Constructor & Destructor Documentation

G4EmMessenger::G4EmMessenger ( G4EmExtraPhysics af)

Definition at line 52 of file G4EmMessenger.cc.

References G4UIcommand::AvailableForStates(), G4State_Idle, G4State_PreInit, G4UIcmdWithAString::SetCandidates(), G4UIcmdWithAString::SetDefaultValue(), G4UIcommand::SetGuidance(), and G4UIcmdWithAString::SetParameterName().

53 {
54  theB = ab;
55  aDir1 = new G4UIdirectory("/physics_engine/");
56  aDir1->SetGuidance("commands related to the physics simulation engine.");
57 
58  // general stuff.
59  aDir2 = new G4UIdirectory("/physics_engine/tailor/");
60  aDir2->SetGuidance("tailoring the processes");
61 
62  // command for synchrotron radiation.
63  theSynch = new G4UIcmdWithAString("/physics_engine/tailor/SyncRadiation",this);
64  theSynch->SetGuidance("Switching on/off synchrotron radiation.");
65  theSynch->SetParameterName("status",false);
66  theSynch->SetCandidates("on off");
67  theSynch->SetDefaultValue("off");
69 
70  // command for gamma nuclear physics.
71  theGN = new G4UIcmdWithAString("/physics_engine/tailor/GammaNuclear",this);
72  theGN->SetGuidance("Switching on gamma nuclear physics.");
73  theGN->SetParameterName("status",false);
74  theGN->SetCandidates("on off");
75  theGN->SetDefaultValue("on");
77 
78  // command for muon nuclear physics.
79  theMUN = new G4UIcmdWithAString("/physics_engine/tailor/MuonNuclear",this);
80  theMUN->SetGuidance("Switching on muon nuclear physics.");
81  theMUN->SetParameterName("status",false);
82  theMUN->SetCandidates("on off");
83  theMUN->SetDefaultValue("off");
85 }
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:225
void SetDefaultValue(const char *defVal)
void SetCandidates(const char *candidateList)
G4EmMessenger::~G4EmMessenger ( )
virtual

Definition at line 87 of file G4EmMessenger.cc.

88 {
89  delete theSynch;
90  delete theGN;
91  delete theMUN;
92  delete aDir1;
93  delete aDir2;
94 }

Member Function Documentation

void G4EmMessenger::SetNewValue ( G4UIcommand aComm,
G4String  aS 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 96 of file G4EmMessenger.cc.

References G4EmExtraPhysics::GammaNuclear(), G4EmExtraPhysics::MuonNuclear(), and G4EmExtraPhysics::Synch().

97 {
98  if(aComm==theSynch) theB->Synch(aS);
99  if(aComm==theGN) theB->GammaNuclear(aS);
100  if(aComm==theMUN) theB->MuonNuclear(aS);
101 }
void GammaNuclear(G4String &aState)
void Synch(G4String &aState)
void MuonNuclear(G4String &aState)

The documentation for this class was generated from the following files: