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