51 G4String Em10PrimaryGeneratorAction::thePrimaryParticleName=
"proton";
60 rndmFlag(
"off"),xvertex(0.),yvertex(0.),zvertex(0.),
135 return thePrimaryParticleName;
142 vertexdefined =
true;
144 G4cout <<
" Z coordinate of the primary vertex = " << zvertex/
mm <<
152 vertexdefined =
true;
154 G4cout <<
" X coordinate of the primary vertex = " << xvertex/
mm <<
162 vertexdefined =
true;
164 G4cout <<
" Y coordinate of the primary vertex = " << yvertex/
mm <<
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void Setxvertex(G4double x)
CLHEP::Hep3Vector G4ThreeVector
void GeneratePrimaries(G4Event *)
~Em10PrimaryGeneratorAction()
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
virtual void GeneratePrimaryVertex(G4Event *evt)
const G4String & GetParticleName() const
Definition of the Em10PrimaryGeneratorAction class.
void Setyvertex(G4double y)
Em10PrimaryGeneratorAction(Em10DetectorConstruction *)
void SetParticlePosition(G4ThreeVector aPosition)
G4GLOB_DLL std::ostream G4cout
void SetParticleEnergy(G4double aKineticEnergy)
Definition of the Em10PrimaryGeneratorMessenger class.
void Setzvertex(G4double z)
static G4ParticleTable * GetParticleTable()
Definition of the Em10DetectorConstruction class.
G4ParticleDefinition * GetParticleDefinition() const
static G4String GetPrimaryName()
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)