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)

Detailed Description

Definition at line 50 of file G4EmMessenger.hh.


Constructor & Destructor Documentation

G4EmMessenger::G4EmMessenger ( G4EmExtraPhysics af  ) 

Definition at line 44 of file G4EmMessenger.cc.

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

00045 {
00046   theB = ab;
00047   aDir1 = new G4UIdirectory("/physics_engine/");
00048   aDir1->SetGuidance("commands related to the physics simulation engine.");
00049 
00050   // general stuff.
00051   aDir2 = new G4UIdirectory("/physics_engine/tailor/");
00052   aDir2->SetGuidance("tailoring the processes");
00053 
00054   // command for synchrotron radiation.
00055   theSynch = new G4UIcmdWithAString("/physics_engine/tailor/SyncRadiation",this);
00056   theSynch->SetGuidance("Switching on/off synchrotron radiation.");
00057   theSynch->SetParameterName("status",false);
00058   theSynch->SetCandidates("on off");
00059   theSynch->SetDefaultValue("off");
00060   theSynch->AvailableForStates(G4State_PreInit,G4State_Idle);
00061 
00062   // command for gamma nuclear physics.
00063   theGN = new G4UIcmdWithAString("/physics_engine/tailor/GammaNuclear",this);
00064   theGN->SetGuidance("Switching on gamma nuclear physics.");
00065   theGN->SetParameterName("status",false);
00066   theGN->SetCandidates("on off");
00067   theGN->SetDefaultValue("on");
00068   theGN->AvailableForStates(G4State_PreInit,G4State_Idle);
00069 
00070   // command for muon nuclear physics.
00071   theMUN = new G4UIcmdWithAString("/physics_engine/tailor/MuonNuclear",this);
00072   theMUN->SetGuidance("Switching on muon nuclear physics.");
00073   theMUN->SetParameterName("status",false);
00074   theMUN->SetCandidates("on off");
00075   theMUN->SetDefaultValue("off");
00076   theMUN->AvailableForStates(G4State_PreInit,G4State_Idle);
00077 }

G4EmMessenger::~G4EmMessenger (  )  [virtual]

Definition at line 79 of file G4EmMessenger.cc.

00080 {
00081   delete theSynch;
00082   delete theGN;
00083   delete theMUN;
00084   delete aDir1;
00085   delete aDir2;
00086 }


Member Function Documentation

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

Reimplemented from G4UImessenger.

Definition at line 88 of file G4EmMessenger.cc.

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

00089 {
00090   if(aComm==theSynch) theB->Synch(aS);
00091   if(aComm==theGN)    theB->GammaNuclear(aS);
00092   if(aComm==theMUN)   theB->MuonNuclear(aS);
00093 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:53 2013 for Geant4 by  doxygen 1.4.7