77 std::istringstream iss (newValue);
85 if(shootType ==
"" || shootType.empty())
87 CreateNewType<G4Track>(shootName);
91 CreateNewType<G4ContinuousMedium>(shootName);
100 G4shared_ptr<G4MoleculeShoot>
125 tmp +=
"/rndmPosition";
151 fpShoot->fMoleculeName = newValue;
165 else if (command ==
fpGunN)
205 else if (command ==
fpGunN)
CLHEP::Hep3Vector G4ThreeVector
G4MoleculeGun * fpMoleculeGun
void CreateDirectory(const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
G4UIcmdWith3VectorAndUnit * fpGunRdnmPosition
G4UIcmdWith3VectorAndUnit * fpGunPosition
G4String ConvertToStringWithBestUnit(G4ThreeVector vec)
virtual G4String GetCurrentValue(G4UIcommand *command)
static G4double GetNewDoubleValue(const char *paramString)
virtual ~G4MoleculeGunMessenger()
G4UIcmdWithADoubleAndUnit * fpGunTime
ThreeVector shoot(const G4int Ap, const G4int Af)
G4MoleculeShootMessenger(const G4String &name, G4MoleculeGunMessenger *, G4shared_ptr< G4MoleculeShoot >)
G4MoleculeGunMessenger(G4MoleculeGun *)
static G4String ConvertToString(G4bool boolVal)
G4UIcmdWithAString * fpGunNewGunType
virtual G4String GetCurrentValue(G4UIcommand *command)
static G4int GetNewIntValue(const char *paramString)
G4UIcmdWithAString * fpGunType
G4shared_ptr< G4MoleculeShoot > fpShoot
virtual void SetNewValue(G4UIcommand *command, G4String newValue)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
G4String ConvertToStringWithBestUnit(G4double val)
G4UIcmdWithAnInteger * fpGunN
virtual ~G4MoleculeShootMessenger()
G4UIcmdWithAString * fpGunSpecies
virtual void SetNewValue(G4UIcommand *command, G4String newValue)