#include <G4MoleculeGunMessenger.hh>
Definition at line 64 of file G4MoleculeGunMessenger.hh.
◆ G4MoleculeShootMessenger()
Definition at line 98 of file G4MoleculeGunMessenger.cc.
101 :
103{
107
109 tmp += "/species";
111
112 tmp = dir;
113 tmp += "/position";
115
116 tmp = dir;
117 tmp += "/time";
119
120 tmp = dir;
121 tmp += "/number";
123
124 tmp = dir;
125 tmp += "/rndmPosition";
127
128 tmp = dir;
129 tmp += "/type";
131
132
133}
G4UIcmdWithAString * fpGunType
G4UIcmdWithADoubleAndUnit * fpGunTime
G4UIcmdWith3VectorAndUnit * fpGunRdnmPosition
G4UIcmdWith3VectorAndUnit * fpGunPosition
G4shared_ptr< G4MoleculeShoot > fpShoot
G4UIcmdWithAString * fpGunSpecies
G4UIcmdWithAnInteger * fpGunN
void CreateDirectory(const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
const char * name(G4int ptype)
◆ ~G4MoleculeShootMessenger()
G4MoleculeShootMessenger::~G4MoleculeShootMessenger |
( |
| ) |
|
|
virtual |
◆ GetCurrentValue()
Reimplemented from G4UImessenger.
Definition at line 183 of file G4MoleculeGunMessenger.cc.
184{
186 {
188 }
190 {
192 }
194 {
196 {
198 }
200 }
202 {
204 }
205 else if (command ==
fpGunN)
206 {
208 }
209 return "";
210}
CLHEP::Hep3Vector G4ThreeVector
G4String ConvertToStringWithBestUnit(const G4ThreeVector &vec)
G4String ConvertToStringWithBestUnit(G4double val)
static G4String ConvertToString(G4bool boolVal)
◆ GetShoot()
◆ SetNewValue()
Reimplemented from G4UImessenger.
Definition at line 147 of file G4MoleculeGunMessenger.cc.
148{
150 {
151 fpShoot->fMoleculeName = newValue;
152 }
154 {
156 }
158 {
160 }
162 {
164 }
165 else if (command ==
fpGunN)
166 {
168 }
170 {
171 if(newValue == "CM")
172 {
173
174
175
177 }
178 }
179}
static G4ThreeVector GetNew3VectorValue(const char *paramString)
static G4double GetNewDoubleValue(const char *paramString)
static G4int GetNewIntValue(const char *paramString)
◆ fpGunN
◆ fpGunPosition
◆ fpGunRdnmPosition
◆ fpGunSpecies
◆ fpGunTime
◆ fpGunType
◆ fpShoot
The documentation for this class was generated from the following files: