Geant4  10.02.p03
CML2PrimaryGenerationActionMessenger Class Reference

#include <ML2PrimaryGenerationActionMessenger.hh>

Inheritance diagram for CML2PrimaryGenerationActionMessenger:
Collaboration diagram for CML2PrimaryGenerationActionMessenger:

Public Member Functions

 CML2PrimaryGenerationActionMessenger (CML2PrimaryGenerationAction *PML2PrimaryGenerationAction)
 
 ~CML2PrimaryGenerationActionMessenger (void)
 
void SetNewValue (G4UIcommand *cmd, G4String newValue)
 
- 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

CML2PrimaryGenerationActionpML2PrimaryGenerationAction
 
G4UIcmdWithAnIntegernRecycling
 
G4UIcmdWithAnIntegernMaxParticlesInRamPhaseSpace
 
G4UIcmdWithADoubleAndUnitGunMeanEnegy
 
G4UIcmdWithADoubleAndUnitGunStdEnegy
 
G4UIcmdWithADoubleAndUnitGunRadious
 
G4UIcmdWithAStringcalculatedPhaseSpaceFileIN
 
G4UIcmdWithAStringsourceTypeName
 

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 57 of file ML2PrimaryGenerationActionMessenger.hh.

Constructor & Destructor Documentation

◆ CML2PrimaryGenerationActionMessenger()

CML2PrimaryGenerationActionMessenger::CML2PrimaryGenerationActionMessenger ( CML2PrimaryGenerationAction PML2PrimaryGenerationAction)

Definition at line 50 of file ML2PrimaryGenerationActionMessenger.cc.

50  : pML2PrimaryGenerationAction(PML2PrimaryGenerationAction)
51 {
52  nRecycling=new G4UIcmdWithAnInteger("/primaryParticleData/nIdenticalParticles",this);
54  nRecycling->SetGuidance("number of identical particles generated in the primary generator");
55 
56  calculatedPhaseSpaceFileIN=new G4UIcmdWithAString("/primaryParticleData/calculatedPhaseSpaceFileIN",this);
58  calculatedPhaseSpaceFileIN->SetGuidance("full path and file name of the phase space file to be used as particle generator");
59 
60  sourceTypeName=new G4UIcmdWithAString("/primaryParticleData/sourceTypeName",this);
62  sourceTypeName->SetGuidance("type of particle generator source (randomTarget, phaseSpace)");
63 
64  nMaxParticlesInRamPhaseSpace=new G4UIcmdWithAnInteger("/primaryParticleData/nMaxParticlesInRamPhaseSpace",this);
66  nMaxParticlesInRamPhaseSpace->SetGuidance("maximum particle number loaded from the phase space file each time");
67 
68  GunMeanEnegy=new G4UIcmdWithADoubleAndUnit("/primaryParticleData/GunMeanEnegy", this);
71  GunMeanEnegy->SetGuidance("mean energy of the primary particles");
72 
73  GunStdEnegy=new G4UIcmdWithADoubleAndUnit("/primaryParticleData/GunStdEnegy", this);
76  GunStdEnegy->SetGuidance("std energy of the primary particles");
77 
78  GunRadious=new G4UIcmdWithADoubleAndUnit("/primaryParticleData/GunRadious", this);
81  GunRadious->SetGuidance("radious primary particles beam");
82 }
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void SetDefaultValue(const char *defVal)
void SetDefaultUnit(const char *defUnit)
void SetDefaultValue(G4int defVal)
Here is the call graph for this function:

◆ ~CML2PrimaryGenerationActionMessenger()

CML2PrimaryGenerationActionMessenger::~CML2PrimaryGenerationActionMessenger ( void  )

Member Function Documentation

◆ SetNewValue()

void CML2PrimaryGenerationActionMessenger::SetNewValue ( G4UIcommand cmd,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 94 of file ML2PrimaryGenerationActionMessenger.cc.

95 {
96  if (cmd==GunMeanEnegy)
97  {
98  GunMeanEnegy->GetNewUnitValue(newValue);
100  }
101 
102  if (cmd==GunStdEnegy)
103  {
104  GunStdEnegy->GetNewUnitValue(newValue);
106  }
107 
108  if (cmd==GunRadious)
109  {
110  GunRadious->GetNewUnitValue(newValue);
112  }
113 
114 
116  {
118  }
119 
120 
121  if (cmd==nRecycling)
123 
126 
127  if (cmd==sourceTypeName)
129 
130 
131 }
static G4int GetNewIntValue(const char *paramString)
static G4double GetNewDoubleValue(const char *paramString)
void setCalculatedPhaseSpaceFileIN(G4String val)
static G4double GetNewUnitValue(const char *paramString)
Here is the call graph for this function:

Member Data Documentation

◆ calculatedPhaseSpaceFileIN

G4UIcmdWithAString* CML2PrimaryGenerationActionMessenger::calculatedPhaseSpaceFileIN
private

Definition at line 70 of file ML2PrimaryGenerationActionMessenger.hh.

◆ GunMeanEnegy

G4UIcmdWithADoubleAndUnit* CML2PrimaryGenerationActionMessenger::GunMeanEnegy
private

Definition at line 69 of file ML2PrimaryGenerationActionMessenger.hh.

◆ GunRadious

G4UIcmdWithADoubleAndUnit * CML2PrimaryGenerationActionMessenger::GunRadious
private

Definition at line 69 of file ML2PrimaryGenerationActionMessenger.hh.

◆ GunStdEnegy

G4UIcmdWithADoubleAndUnit * CML2PrimaryGenerationActionMessenger::GunStdEnegy
private

Definition at line 69 of file ML2PrimaryGenerationActionMessenger.hh.

◆ nMaxParticlesInRamPhaseSpace

G4UIcmdWithAnInteger* CML2PrimaryGenerationActionMessenger::nMaxParticlesInRamPhaseSpace
private

Definition at line 68 of file ML2PrimaryGenerationActionMessenger.hh.

◆ nRecycling

G4UIcmdWithAnInteger* CML2PrimaryGenerationActionMessenger::nRecycling
private

Definition at line 67 of file ML2PrimaryGenerationActionMessenger.hh.

◆ pML2PrimaryGenerationAction

CML2PrimaryGenerationAction* CML2PrimaryGenerationActionMessenger::pML2PrimaryGenerationAction
private

Definition at line 65 of file ML2PrimaryGenerationActionMessenger.hh.

◆ sourceTypeName

G4UIcmdWithAString * CML2PrimaryGenerationActionMessenger::sourceTypeName
private

Definition at line 70 of file ML2PrimaryGenerationActionMessenger.hh.


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