PrimaryGeneratorMessenger Class Reference

#include <PrimaryGeneratorMessenger.hh>

Inheritance diagram for PrimaryGeneratorMessenger:

Inheritance graph
[legend]
Collaboration diagram for PrimaryGeneratorMessenger:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PrimaryGeneratorMessenger (PrimaryGeneratorAction *)
 ~PrimaryGeneratorMessenger ()
void SetNewValue (G4UIcommand *, G4String)

Private Attributes

PrimaryGeneratorActionm_action
G4UIdirectory * m_gunDir
G4UIcmdWithAString * m_rndmCmd


Detailed Description

Definition at line 20 of file PrimaryGeneratorMessenger.hh.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 32 of file PrimaryGeneratorMessenger.cc.

00033 {
00034   delete m_rndmCmd;
00035 }


Member Function Documentation

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 }


Member Data Documentation

Definition at line 29 of file PrimaryGeneratorMessenger.hh.

Referenced by SetNewValue().

G4UIdirectory* PrimaryGeneratorMessenger::m_gunDir [private]

Definition at line 30 of file PrimaryGeneratorMessenger.hh.

Referenced by PrimaryGeneratorMessenger().

G4UIcmdWithAString* PrimaryGeneratorMessenger::m_rndmCmd [private]


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

Generated on Fri Nov 21 10:20:21 2008 for jour3a by  doxygen 1.5.7.1