#include <F04PrimaryGeneratorAction.hh>
Definition at line 52 of file F04PrimaryGeneratorAction.cc.
53 : fDetector(detectorConstruction), fRndmFlag(
"off"), fFirst(
false),
54 fXvertex(0.), fYvertex(0.), fZvertex(0.),
66 FindParticle(particleName=
"proton"));
CLHEP::Hep3Vector G4ThreeVector
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
void SetParticlePosition(G4ThreeVector aPosition)
void SetParticleEnergy(G4double aKineticEnergy)
static G4ParticleTable * GetParticleTable()
static constexpr double MeV
G4double GetTargetThickness()
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
F04PrimaryGeneratorAction::~F04PrimaryGeneratorAction |
( |
| ) |
|
|
virtual |
void F04PrimaryGeneratorAction::GeneratePrimaries |
( |
G4Event * |
anEvent | ) |
|
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 85 of file F04PrimaryGeneratorAction.cc.
95 GetNavigatorForTracking();
105 CreateTouchableHistoryHandle();
134 if (fRndmFlag ==
"on")
138 x0 = r0*std::cos(phi0);
139 y0 = r0*std::sin(phi0);
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
virtual void GeneratePrimaryVertex(G4Event *evt)
static constexpr double twopi
void SetParticlePosition(G4ThreeVector aPosition)
G4double GetTargetRadius()
static G4TransportationManager * GetTransportationManager()
void SetWorldVolume(G4VPhysicalVolume *pWorld)
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=0, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
const G4AffineTransform & GetTopTransform() const
const G4NavigationHistory * GetHistory() const
G4double GetTargetThickness()
G4VPhysicalVolume * GetWorldVolume() const
Definition at line 152 of file F04PrimaryGeneratorAction.cc.
154 fVertexdefined =
true;
156 G4cout <<
" X coordinate of the primary vertex = " << fXvertex/
mm <<
static constexpr double mm
G4GLOB_DLL std::ostream G4cout
Definition at line 162 of file F04PrimaryGeneratorAction.cc.
164 fVertexdefined =
true;
166 G4cout <<
" Y coordinate of the primary vertex = " << fYvertex/
mm <<
static constexpr double mm
G4GLOB_DLL std::ostream G4cout
Definition at line 172 of file F04PrimaryGeneratorAction.cc.
174 fVertexdefined =
true;
176 G4cout <<
" Z coordinate of the primary vertex = " << fZvertex/
mm <<
static constexpr double mm
G4GLOB_DLL std::ostream G4cout
The documentation for this class was generated from the following files: