82 fgPrimaryParticle = particle;
123 if (fRndmFlag ==
"on")
127 x0 = r0*std::cos(phi0);
128 y0 = r0*std::sin(phi0);
146 fVertexDefined =
true;
148 G4cout <<
" X coordinate of the primary vertex = " << fXVertex/
mm <<
156 fVertexDefined =
true;
158 G4cout <<
" Y coordinate of the primary vertex = " << fYVertex/
mm <<
166 fVertexDefined =
true;
168 G4cout <<
" Z coordinate of the primary vertex = " << fZVertex/
mm <<
void SetZVertex(G4double z)
G4double GetAbsorberThickness()
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
CLHEP::Hep3Vector G4ThreeVector
Definition of the F03PrimaryGeneratorAction class.
G4double GetAbsorberRadius()
void SetXVertex(G4double x)
Definition of the F03PrimaryGeneratorMessenger class.
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
virtual void GeneratePrimaryVertex(G4Event *evt)
const G4String & GetParticleName() const
Definition of the F03DetectorConstruction class.
F03PrimaryGeneratorAction(F03DetectorConstruction *)
void SetParticlePosition(G4ThreeVector aPosition)
G4GLOB_DLL std::ostream G4cout
void SetYVertex(G4double y)
virtual ~F03PrimaryGeneratorAction()
void SetParticleEnergy(G4double aKineticEnergy)
G4double GetAbsorberZpos()
static G4ParticleTable * GetParticleTable()
G4ParticleDefinition * GetParticleDefinition() const
virtual void GeneratePrimaries(G4Event *)
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
static G4String GetPrimaryName()