Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4EmMessenger Class Reference

#include <G4EmMessenger.hh>

+ Inheritance diagram for G4EmMessenger:

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)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 
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)
 
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::G4EmMessenger ( G4EmExtraPhysics af)

Definition at line 44 of file G4EmMessenger.cc.

45{
46 theB = ab;
47 aDir1 = new G4UIdirectory("/physics_engine/");
48 aDir1->SetGuidance("commands related to the physics simulation engine.");
49
50 // general stuff.
51 aDir2 = new G4UIdirectory("/physics_engine/tailor/");
52 aDir2->SetGuidance("tailoring the processes");
53
54 // command for synchrotron radiation.
55 theSynch = new G4UIcmdWithAString("/physics_engine/tailor/SyncRadiation",this);
56 theSynch->SetGuidance("Switching on/off synchrotron radiation.");
57 theSynch->SetParameterName("status",false);
58 theSynch->SetCandidates("on off");
59 theSynch->SetDefaultValue("off");
61
62 // command for gamma nuclear physics.
63 theGN = new G4UIcmdWithAString("/physics_engine/tailor/GammaNuclear",this);
64 theGN->SetGuidance("Switching on gamma nuclear physics.");
65 theGN->SetParameterName("status",false);
66 theGN->SetCandidates("on off");
67 theGN->SetDefaultValue("on");
69
70 // command for muon nuclear physics.
71 theMUN = new G4UIcmdWithAString("/physics_engine/tailor/MuonNuclear",this);
72 theMUN->SetGuidance("Switching on muon nuclear physics.");
73 theMUN->SetParameterName("status",false);
74 theMUN->SetCandidates("on off");
75 theMUN->SetDefaultValue("off");
77}
@ G4State_Idle
@ G4State_PreInit
void SetCandidates(const char *candidateList)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *defVal)
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:156
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:219

◆ ~G4EmMessenger()

G4EmMessenger::~G4EmMessenger ( )
virtual

Definition at line 79 of file G4EmMessenger.cc.

80{
81 delete theSynch;
82 delete theGN;
83 delete theMUN;
84 delete aDir1;
85 delete aDir2;
86}

Member Function Documentation

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 88 of file G4EmMessenger.cc.

89{
90 if(aComm==theSynch) theB->Synch(aS);
91 if(aComm==theGN) theB->GammaNuclear(aS);
92 if(aComm==theMUN) theB->MuonNuclear(aS);
93}
void MuonNuclear(G4String &aState)
void GammaNuclear(G4String &aState)
void Synch(G4String &aState)

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