81 "G4ParticleGun : Copy constructor should not be used."); }
86 "G4ParticleGun : Equal operator should not be used.");
92 "G4ParticleGun : == operator should not be used.");
98 "G4ParticleGun : != operator should not be used.");
104 if(!aParticleDefinition)
106 G4Exception(
"G4ParticleGun::SetParticleDefinition()",
"Event0101",
114 ED <<
"G4ParticleGun does not support shooting a short-lived particle without a valid decay table." <<
G4endl;
115 ED <<
"G4ParticleGun::SetParticleDefinition for "
117 G4Exception(
"G4ParticleGun::SetParticleDefinition()",
"Event0102",
142 G4cout <<
" was defined in terms of Momentum: "
144 G4cout <<
" is now defined in terms of KineticEnergy: "
159 G4cout <<
" was defined in terms of KineticEnergy: "
161 G4cout <<
" is now defined in terms Momentum: "
162 << aMomentum/GeV <<
"GeV/c" <<
G4endl;
166 G4cout <<
"Particle Definition not defined yet for G4ParticleGun"<<
G4endl;
189 G4cout <<
" was defined in terms of KineticEnergy: "
191 G4cout <<
" is now defined in terms Momentum: "
192 << aMomentum.
mag()/GeV <<
"GeV/c" <<
G4endl;
196 G4cout <<
"Particle Definition not defined yet for G4ParticleGun"<<
G4endl;
G4ThreeVector G4ParticleMomentum
G4DLLIMPORT std::ostream G4cout
void AddPrimaryVertex(G4PrimaryVertex *aPrimaryVertex)
G4bool IsShortLived() const
G4double GetPDGMass() const
G4double GetPDGCharge() const
G4DecayTable * GetDecayTable() const
const G4String & GetParticleName() const
G4double particle_momentum
virtual void SetInitialValues()
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
G4ThreeVector particle_polarization
G4ParticleMomentum particle_momentum_direction
G4int NumberOfParticlesToBeGenerated
void SetParticleEnergy(G4double aKineticEnergy)
G4ParticleDefinition * particle_definition
virtual void GeneratePrimaryVertex(G4Event *evt)
void SetParticleMomentum(G4double aMomentum)
void SetCharge(G4double chg)
void SetPolarization(const G4ThreeVector &pol)
void SetKineticEnergy(G4double eKin)
void SetMomentumDirection(const G4ThreeVector &p)
void SetMass(G4double mas)
void SetPrimary(G4PrimaryParticle *pp)
G4ThreeVector particle_position
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::ostringstream G4ExceptionDescription