82 fgPrimaryParticle = particle;
124 if (fRndmFlag ==
"on")
128 x0 = r0*std::cos(phi0);
129 y0 = r0*std::sin(phi0);
147 fVertexDefined =
true;
149 G4cout <<
" Z coordinate of the primary vertex = " << fZVertex/
mm <<
157 fVertexDefined =
true;
159 G4cout <<
" X coordinate of the primary vertex = " << fXVertex/
mm <<
167 fVertexDefined =
true;
169 G4cout <<
" Y coordinate of the primary vertex = " << fYVertex/
mm <<
G4double GetAbsorberRadius()
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
CLHEP::Hep3Vector G4ThreeVector
Definition of the F01PrimaryGeneratorAction class.
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
virtual void GeneratePrimaries(G4Event *)
virtual void GeneratePrimaryVertex(G4Event *evt)
virtual ~F01PrimaryGeneratorAction()
const G4String & GetParticleName() const
void SetXVertex(G4double x)
Definition of the F01PrimaryGeneratorMessenger class.
G4double GetAbsorberThickness()
G4double GetAbsorberZpos()
Definition of the F01DetectorConstruction class.
void SetParticlePosition(G4ThreeVector aPosition)
G4GLOB_DLL std::ostream G4cout
static G4String GetPrimaryName()
F01PrimaryGeneratorAction(F01DetectorConstruction *)
void SetParticleEnergy(G4double aKineticEnergy)
static G4ParticleTable * GetParticleTable()
G4ParticleDefinition * GetParticleDefinition() const
void SetZVertex(G4double z)
void SetYVertex(G4double y)
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)