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

#include <G4EmQMessenger.hh>

+ Inheritance diagram for G4EmQMessenger:

Public Member Functions

 G4EmQMessenger (G4EmQExtraPhysics *af)
 
virtual ~G4EmQMessenger ()
 
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 49 of file G4EmQMessenger.hh.

Constructor & Destructor Documentation

◆ G4EmQMessenger()

G4EmQMessenger::G4EmQMessenger ( G4EmQExtraPhysics af)

Definition at line 44 of file G4EmQMessenger.cc.

45{
46 G4HadronicDeprecate("G4EmQMessenger");
47
48 theB = ab;
49 aDir1 = new G4UIdirectory("/physics_engine/");
50 aDir1->SetGuidance("commands related to the physics simulation engine.");
51
52 // general stuff.
53 aDir2 = new G4UIdirectory("/physics_engine/tailor/");
54 aDir2->SetGuidance("tailoring the processes");
55
56 // command for synchrotron radiation.
57 theSynch = new G4UIcmdWithAString("/physics_engine/tailor/SyncRadiation",this);
58 theSynch->SetGuidance("Switching on/off synchrotron radiation.");
59 theSynch->SetParameterName("status",false);
60 theSynch->SetCandidates("on off");
61 theSynch->SetDefaultValue("off");
63
64 // command for gamma nuclear physics.
65 theGN = new G4UIcmdWithAString("/physics_engine/tailor/GammaNuclear",this);
66 theGN->SetGuidance("Switching on gamma nuclear physics.");
67 theGN->SetParameterName("status",false);
68 theGN->SetCandidates("on off");
69 theGN->SetDefaultValue("on");
71
72 // command for muon nuclear physics.
73 theMUN = new G4UIcmdWithAString("/physics_engine/tailor/MuonNuclear",this);
74 theMUN->SetGuidance("Switching on muon nuclear physics.");
75 theMUN->SetParameterName("status",false);
76 theMUN->SetCandidates("on off");
77 theMUN->SetDefaultValue("off");
79}
@ G4State_Idle
@ G4State_PreInit
#define G4HadronicDeprecate(name)
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

◆ ~G4EmQMessenger()

G4EmQMessenger::~G4EmQMessenger ( )
virtual

Definition at line 81 of file G4EmQMessenger.cc.

82{
83 delete theSynch;
84 delete theGN;
85 delete theMUN;
86 delete aDir1;
87 delete aDir2;
88}

Member Function Documentation

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 90 of file G4EmQMessenger.cc.

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

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