#include <G4MoleculeGunMessenger.hh>
Definition at line 64 of file G4MoleculeGunMessenger.hh.
◆ G4MoleculeShootMessenger()
Definition at line 95 of file G4MoleculeGunMessenger.cc.
98 :
100{
104
106 tmp += "/species";
108
109 tmp = dir;
110 tmp += "/position";
112
113 tmp = dir;
114 tmp += "/time";
116
117 tmp = dir;
118 tmp += "/number";
120
121 tmp = dir;
122 tmp += "/rndmPosition";
124
125 tmp = dir;
126 tmp += "/type";
128
129
130}
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 |
( |
| ) |
|
|
override |
◆ GetCurrentValue()
Reimplemented from G4UImessenger.
Definition at line 180 of file G4MoleculeGunMessenger.cc.
181{
183 {
185 }
187 {
189 }
191 {
192 if(
fpShoot->fBoxSize !=
nullptr)
193 {
195 }
197 }
199 {
201 }
203 {
205 }
206 return "";
207}
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 144 of file G4MoleculeGunMessenger.cc.
145{
147 {
148 fpShoot->fMoleculeName = newValue;
149 }
151 {
153 }
155 {
157 }
159 {
161 }
162 else if (command ==
fpGunN)
163 {
165 }
167 {
168 if(newValue == "CM")
169 {
170
171
172
174 }
175 }
176}
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: