46 #include "PrimaryGeneratorMessenger.hh"
47 #include "PrimaryGeneratorAction.hh"
58 G4cout <<
"PrimaryGeneratorMessenger: Construct " <<
G4endl;
61 fBeamXCmd->
SetGuidance(
"Set X position of the center of the beam.");
67 fBeamYCmd->
SetGuidance(
"Set Y position of the center of the beam.");
73 fBeamZCmd->
SetGuidance(
"Set Z of the entry point of the beam.");
79 fSigmaXCmd->
SetGuidance(
"Set the beam Gussian width for X");
85 fSigmaYCmd->
SetGuidance(
"Set the beam Gussian width for Y");
91 fSigmaZCmd->
SetGuidance(
"Set the beam Gussian width for Y");
97 fSigmaECmd->
SetGuidance(
"Set the beam Gussian width for energy");
103 fBeamECmd->
SetGuidance(
"Set the beam kinetic energy");
109 fRandCmd->
SetGuidance(
"Set the name of the random distribution (gauss,flat)");
114 fMaxThetaCmd->
SetGuidance(
"Set the beam maxTheta in degrees.");
120 fThetaCmd->
SetGuidance(
"Set the beam sigmaTheta in degrees.");
150 G4cout <<
"PrimaryGeneratorMessenger: Next command value = "
154 if(command == fBeamXCmd)
156 if(command == fBeamYCmd)
158 if(command == fBeamZCmd)
160 if(command == fSigmaXCmd)
162 if(command == fSigmaYCmd)
164 if(command == fSigmaZCmd)
166 if(command == fSigmaECmd)
168 if(command == fBeamECmd) {
174 if(command == fMaxThetaCmd)
176 if(command == fThetaCmd)
178 if(command == fRandCmd)
183 {
G4cout <<
"PrimaryGeneratorMessenger: O'K " <<
G4endl;}
void SetBeamSigmaY(G4double val)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetBeamMinCosTheta(G4double val)
void SetBeamSigmaX(G4double val)
static Histo * GetPointer()
G4double GetMaxEnergy() const
void SetBeamZ(G4double val)
void SetBeamY(G4double val)
void SetBeamSigmaZ(G4double val)
void SetUnitCategory(const char *unitCategory)
static G4double GetNewDoubleValue(const char *paramString)
void SetSigmaTheta(G4double val)
G4GLOB_DLL std::ostream G4cout
void SetGuidance(const char *aGuidance)
void SetNewValue(G4UIcommand *, G4String)
void AvailableForStates(G4ApplicationState s1)
void SetRandom(const G4String &type)
void SetBeamX(G4double val)
void SetBeamSigmaE(G4double val)
void SetMaxEnergy(G4double val)
~PrimaryGeneratorMessenger()
void SetBeamEnergy(G4double val)
PrimaryGeneratorMessenger(PrimaryGeneratorAction *)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)