59 particleGun( particleGun ), setParticle( NULL ), setOrigPosition( NULL ),
60 setOrigDirection( NULL ), setOrigMomentumAmp( NULL )
64 setParticle->
SetGuidance(
"Incident beam particle" );
72 setOrigPosition->
SetGuidance(
"Original position of the beam" );
81 setOrigDirection->
SetGuidance(
"Original direction of the beam" );
83 "DirectionZ",
false );
85 "DirectionX >= -1.0 && DirectionX <= 1.0 && "
86 "DirectionY >= -1.0 && DirectionY <= 1.0 && "
87 "DirectionZ >= -1.0 && DirectionZ <= 1.0" );
92 setOrigMomentumAmp->
SetGuidance(
"Original momentum of the beam" );
94 setOrigMomentumAmp->
SetRange(
"MomentumAmp > 0" );
104 delete setOrigPosition;
105 delete setOrigDirection;
106 delete setOrigMomentumAmp;
115 if ( cmd == setParticle )
120 if ( ! particleDefinition )
130 if ( cmd == setOrigPosition )
136 if ( cmd == setOrigDirection )
142 if ( cmd == setOrigMomentumAmp )
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultUnit(const char *defUnit)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
void SetNewValue(G4UIcommand *cmd, G4String value)
static G4double GetNewDoubleValue(const char *paramString)
void SetParameterName(const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false)
void SetOrigMomentumAmp(G4double momentumAmp, G4bool fromMessenger=true)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
const XML_Char int const XML_Char * value
void SetRange(const char *rs)
void SetGuidance(const char *aGuidance)
void BeamParticleChangeHook(void)
void AvailableForStates(G4ApplicationState s1)
static G4RunManager * GetRunManager()
void SetOrigPosition(const G4ThreeVector &position, G4bool fromMessenger=true)
static G4ParticleTable * GetParticleTable()
void SetDefaultValue(const char *defVal)
void SetDefaultUnit(const char *defUnit)
static G4String gunDirName
CexmcParticleGunMessenger(CexmcParticleGun *particleGun)
void SetBeamParticle(G4ParticleDefinition *particleDefinition, G4bool fromMessenger=true)
void SetCandidates(const char *candidateList)
void SetUnitCandidates(const char *candidateList)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
~CexmcParticleGunMessenger()
void SetOrigDirection(const G4ThreeVector &direction, G4bool fromMessenger=true)
void SetUnitCandidates(const char *candidateList)