Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
 

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 ( 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.");
70  theSynchAll->AvailableForStates(G4State_PreInit);
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 
82  theGMM = new G4UIcmdWithABool("/physics_lists/em/GammaToMuons",this);
83  theGMM->SetGuidance("Switching on gamma conversion to muon pair.");
85 
86  thePMM = new G4UIcmdWithABool("/physics_lists/em/PositronToMuons",this);
87  thePMM->SetGuidance("Switching on positron conversion to muon pair.");
89 
90  thePH = new G4UIcmdWithABool("/physics_lists/em/PositronToHadrons",this);
91  thePH->SetGuidance("Switching on positron conversion to hadrons.");
93 }
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:240
static const G4double ab

Here is the call graph for this function:

G4EmMessenger::~G4EmMessenger ( )
virtual

Definition at line 95 of file G4EmMessenger.cc.

96 {
97  delete theSynch;
98  delete theSynchAll;
99  delete theGN;
100  delete theMUN;
101  delete theGMM;
102  delete thePMM;
103  delete thePH;
104  delete aDir1;
105  delete aDir2;
106 }

Member Function Documentation

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

Reimplemented from G4UImessenger.

Definition at line 108 of file G4EmMessenger.cc.

109 {
110  if(aComm==theSynch) theB->Synch(theSynch->GetNewBoolValue(aS));
111  if(aComm==theSynchAll) theB->SynchAll(theSynchAll->GetNewBoolValue(aS));
112  if(aComm==theGN) theB->GammaNuclear(theGN->GetNewBoolValue(aS));
113  if(aComm==theMUN) theB->MuonNuclear(theMUN->GetNewBoolValue(aS));
114  if(aComm==theGMM) theB->GammaToMuMu(theGMM->GetNewBoolValue(aS));
115  if(aComm==thePMM) theB->PositronToMuMu(thePMM->GetNewBoolValue(aS));
116  if(aComm==thePH) theB->PositronToHadrons(thePH->GetNewBoolValue(aS));
117 }
void MuonNuclear(G4bool val)
static G4bool GetNewBoolValue(const char *paramString)
void GammaToMuMu(G4bool val)
void PositronToMuMu(G4bool val)
void SynchAll(G4bool val)
void PositronToHadrons(G4bool val)
void GammaNuclear(G4bool val)
void Synch(G4bool val)

Here is the call graph for this function:


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