#include <PrimaryGeneratorMessenger.hh>


| Public Member Functions | |
| PrimaryGeneratorMessenger (PrimaryGeneratorAction *) | |
| ~PrimaryGeneratorMessenger () | |
| void | SetNewValue (G4UIcommand *, G4String) | 
| Private Attributes | |
| PrimaryGeneratorAction * | m_action | 
| G4UIdirectory * | m_gunDir | 
| G4UIcmdWithAString * | m_rndmCmd | 
Definition at line 20 of file PrimaryGeneratorMessenger.hh.
| PrimaryGeneratorMessenger::PrimaryGeneratorMessenger | ( | PrimaryGeneratorAction * | gun | ) | 
Definition at line 16 of file PrimaryGeneratorMessenger.cc.
00018 :m_action(gun) 00019 { 00020 m_gunDir = new G4UIdirectory("/tutorial/gun/"); 00021 m_gunDir->SetGuidance("PrimaryGenerator control"); 00022 00023 m_rndmCmd = new G4UIcmdWithAString("/tutorial/gun/rndm",this); 00024 m_rndmCmd->SetGuidance("Shoot randomly the incident particle."); 00025 m_rndmCmd->SetGuidance("Choice : on, off"); 00026 m_rndmCmd->SetCandidates("on off"); 00027 m_rndmCmd->SetParameterName("flag",false); 00028 }
| PrimaryGeneratorMessenger::~PrimaryGeneratorMessenger | ( | ) | 
| void PrimaryGeneratorMessenger::SetNewValue | ( | G4UIcommand * | command, | |
| G4String | newValue | |||
| ) | 
Definition at line 39 of file PrimaryGeneratorMessenger.cc.
00041 { 00042 if( command == m_rndmCmd ) 00043 { m_action->SetRndmFlag(newValue);} 00044 }
| G4UIdirectory* PrimaryGeneratorMessenger::m_gunDir  [private] | 
Definition at line 30 of file PrimaryGeneratorMessenger.hh.
Referenced by PrimaryGeneratorMessenger().
| G4UIcmdWithAString* PrimaryGeneratorMessenger::m_rndmCmd  [private] | 
Definition at line 31 of file PrimaryGeneratorMessenger.hh.
Referenced by PrimaryGeneratorMessenger(), SetNewValue(), and ~PrimaryGeneratorMessenger().
 1.5.7.1
 1.5.7.1