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
G4UIcmdWithAString * fpGunNewGunType
virtual G4String GetCurrentValue(G4UIcommand *command)
G4MoleculeGunMessenger(G4MoleculeGun *)
virtual ~G4MoleculeGunMessenger()
G4MoleculeGun * fpMoleculeGun
virtual void SetNewValue(G4UIcommand *command, G4String newValue)
virtual ~G4MoleculeShootMessenger()
G4UIcmdWithAString * fpGunType
virtual void SetNewValue(G4UIcommand *command, G4String newValue)
virtual G4String GetCurrentValue(G4UIcommand *command)
G4UIcmdWithADoubleAndUnit * fpGunTime
G4MoleculeShootMessenger(const G4String &name, G4MoleculeGunMessenger *, G4shared_ptr< G4MoleculeShoot >)
G4UIcmdWith3VectorAndUnit * fpGunRdnmPosition
G4UIcmdWith3VectorAndUnit * fpGunPosition
G4shared_ptr< G4MoleculeShoot > fpShoot
G4UIcmdWithAString * fpGunSpecies
G4UIcmdWithAnInteger * fpGunN
G4String ConvertToStringWithBestUnit(G4ThreeVector vec)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
static G4double GetNewDoubleValue(const char *paramString)
G4String ConvertToStringWithBestUnit(G4double val)
static G4int GetNewIntValue(const char *paramString)
static G4String ConvertToString(G4bool boolVal)
void CreateDirectory(const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)