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 <<
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
F02PrimaryGeneratorAction(F02DetectorConstruction *)
Definition of the F02PrimaryGeneratorAction class.
CLHEP::Hep3Vector G4ThreeVector
void SetXVertex(G4double x)
static G4String GetPrimaryName()
virtual ~F02PrimaryGeneratorAction()
Definition of the F02PrimaryGeneratorMessenger class.
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
virtual void GeneratePrimaryVertex(G4Event *evt)
const G4String & GetParticleName() const
virtual void GeneratePrimaries(G4Event *)
Definition of the F02DetectorConstruction class.
void SetParticlePosition(G4ThreeVector aPosition)
G4GLOB_DLL std::ostream G4cout
G4double GetAbsorberRadius()
void SetParticleEnergy(G4double aKineticEnergy)
static G4ParticleTable * GetParticleTable()
G4ParticleDefinition * GetParticleDefinition() const
void SetZVertex(G4double z)
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
void SetYVertex(G4double y)