Geant4  10.02.p03
G4EmMessenger Class Reference

#include <G4EmMessenger.hh>

Inheritance diagram for G4EmMessenger:
Collaboration 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, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Private Attributes

G4EmExtraPhysicstheB
 
G4UIcmdWithABooltheSynch
 
G4UIcmdWithABooltheSynchAll
 
G4UIcmdWithABooltheGN
 
G4UIcmdWithABooltheMUN
 
G4UIdirectoryaDir1
 
G4UIdirectoryaDir2
 

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
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Definition at line 50 of file G4EmMessenger.hh.

Constructor & Destructor Documentation

◆ G4EmMessenger()

G4EmMessenger::G4EmMessenger ( G4EmExtraPhysics af)

Definition at line 52 of file G4EmMessenger.cc.

53 {
54  theB = ab;
55  aDir1 = new G4UIdirectory("/physics_lists/");
56  aDir1->SetGuidance("commands related to the physics simulation engine.");
57 
58  // general stuff.
59  aDir2 = new G4UIdirectory("/physics_lists/em/");
60  aDir2->SetGuidance("tailoring the processes");
61 
62  // command for synchrotron radiation.
63  theSynch = new G4UIcmdWithABool("/physics_lists/em/SyncRadiation",this);
64  theSynch->SetGuidance("Switching on/off synchrotron radiation.");
66 
67  // command for synchrotron radiation.
68  theSynchAll = new G4UIcmdWithABool("/physics_lists/em/SyncRadiationAll",this);
69  theSynchAll->SetGuidance("Switching on/off synchrotron radiation for all charged.");
71 
72  // command for gamma nuclear physics.
73  theGN = new G4UIcmdWithABool("/physics_lists/em/GammaNuclear",this);
74  theGN->SetGuidance("Switching on gamma nuclear physics.");
76 
77  // command for muon nuclear physics.
78  theMUN = new G4UIcmdWithABool("/physics_lists/em/MuonNuclear",this);
79  theMUN->SetGuidance("Switching on muon nuclear physics.");
81 }
G4UIcmdWithABool * theMUN
G4UIdirectory * aDir2
G4UIcmdWithABool * theSynch
G4UIdirectory * aDir1
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:239
static const G4double ab
G4UIcmdWithABool * theGN
G4EmExtraPhysics * theB
G4UIcmdWithABool * theSynchAll
Here is the call graph for this function:

◆ ~G4EmMessenger()

G4EmMessenger::~G4EmMessenger ( )
virtual

Definition at line 83 of file G4EmMessenger.cc.

84 {
85  delete theSynch;
86  delete theSynchAll;
87  delete theGN;
88  delete theMUN;
89  delete aDir1;
90  delete aDir2;
91 }
G4UIcmdWithABool * theMUN
G4UIdirectory * aDir2
G4UIcmdWithABool * theSynch
G4UIdirectory * aDir1
G4UIcmdWithABool * theGN
G4UIcmdWithABool * theSynchAll

Member Function Documentation

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 93 of file G4EmMessenger.cc.

94 {
95  if(aComm==theSynch) theB->Synch(theSynch->GetNewBoolValue(aS));
97  if(aComm==theGN) theB->GammaNuclear(theGN->GetNewBoolValue(aS));
98  if(aComm==theMUN) theB->MuonNuclear(theMUN->GetNewBoolValue(aS));
99 }
void MuonNuclear(G4bool val)
G4UIcmdWithABool * theMUN
G4UIcmdWithABool * theSynch
static G4bool GetNewBoolValue(const char *paramString)
void SynchAll(G4bool val)
G4UIcmdWithABool * theGN
void GammaNuclear(G4bool val)
void Synch(G4bool val)
G4EmExtraPhysics * theB
G4UIcmdWithABool * theSynchAll
Here is the call graph for this function:

Member Data Documentation

◆ aDir1

G4UIdirectory* G4EmMessenger::aDir1
private

Definition at line 64 of file G4EmMessenger.hh.

◆ aDir2

G4UIdirectory* G4EmMessenger::aDir2
private

Definition at line 65 of file G4EmMessenger.hh.

◆ theB

G4EmExtraPhysics* G4EmMessenger::theB
private

Definition at line 59 of file G4EmMessenger.hh.

◆ theGN

G4UIcmdWithABool* G4EmMessenger::theGN
private

Definition at line 62 of file G4EmMessenger.hh.

◆ theMUN

G4UIcmdWithABool* G4EmMessenger::theMUN
private

Definition at line 63 of file G4EmMessenger.hh.

◆ theSynch

G4UIcmdWithABool* G4EmMessenger::theSynch
private

Definition at line 60 of file G4EmMessenger.hh.

◆ theSynchAll

G4UIcmdWithABool* G4EmMessenger::theSynchAll
private

Definition at line 61 of file G4EmMessenger.hh.


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