54 nRecycling->
SetGuidance(
"number of identical particles generated in the primary generator");
56 calculatedPhaseSpaceFileIN=
new G4UIcmdWithAString(
"/primaryParticleData/calculatedPhaseSpaceFileIN",
this);
58 calculatedPhaseSpaceFileIN->
SetGuidance(
"full path and file name of the phase space file to be used as particle generator");
62 sourceTypeName->
SetGuidance(
"type of particle generator source (randomTarget, phaseSpace)");
64 nMaxParticlesInRamPhaseSpace=
new G4UIcmdWithAnInteger(
"/primaryParticleData/nMaxParticlesInRamPhaseSpace",
this);
66 nMaxParticlesInRamPhaseSpace->
SetGuidance(
"maximum particle number loaded from the phase space file each time");
71 GunMeanEnegy->
SetGuidance(
"mean energy of the primary particles");
76 GunStdEnegy->
SetGuidance(
"std energy of the primary particles");
81 GunRadious->
SetGuidance(
"radious primary particles beam");
87 delete nMaxParticlesInRamPhaseSpace;
91 delete calculatedPhaseSpaceFileIN;
92 delete sourceTypeName;
96 if (cmd==GunMeanEnegy)
102 if (cmd==GunStdEnegy)
115 if (cmd==nMaxParticlesInRamPhaseSpace)
124 if (cmd==calculatedPhaseSpaceFileIN)
127 if (cmd==sourceTypeName)
void setNRecycling(G4int val)
void SetDefaultValue(G4double defVal)
void setGunStdEnergy(G4double val)
static G4int GetNewIntValue(const char *paramString)
static G4double GetNewDoubleValue(const char *paramString)
void SetGuidance(const char *aGuidance)
void setGunRadious(G4double val)
~CML2PrimaryGenerationActionMessenger(void)
void SetNewValue(G4UIcommand *cmd, G4String newValue)
void setCalculatedPhaseSpaceFileIN(G4String val)
void setSourceTypeName(G4String val)
void SetDefaultValue(const char *defVal)
void SetDefaultUnit(const char *defUnit)
CML2PrimaryGenerationActionMessenger(CML2PrimaryGenerationAction *PML2PrimaryGenerationAction)
void setGunMeanEnergy(G4double val)
void SetDefaultValue(G4int defVal)
static G4double GetNewUnitValue(const char *paramString)
void setNMaxParticlesInRamPhaseSpace(G4int val)