53 : fDetector(detectorConstruction), fRndmFlag(
"off"), fFirst(false),
54 fXvertex(0.), fYvertex(0.), fZvertex(0.),
66 FindParticle(particleName=
"proton"));
95 GetNavigatorForTracking();
105 CreateTouchableHistoryHandle();
138 x0 = r0*std::cos(phi0);
139 y0 = r0*std::sin(phi0);
CLHEP::Hep3Vector G4ThreeVector
static G4ParticleTable * GetParticleTable()
static constexpr double MeV
virtual void GeneratePrimaries(G4Event *)
static constexpr double mm
G4AffineTransform fGlobal2local
void SetParticlePosition(G4ThreeVector aPosition)
F04PrimaryGeneratorAction(F04DetectorConstruction *)
Definition of the F04DetectorConstruction class.
G4double GetTargetThickness()
const G4NavigationHistory * GetHistory() const
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
F04DetectorConstruction * fDetector
void SetWorldVolume(G4VPhysicalVolume *pWorld)
static constexpr double twopi
const G4AffineTransform & GetTopTransform() const
void SetZvertex(G4double z)
Definition of the F04PrimaryGeneratorAction class.
static G4TransportationManager * GetTransportationManager()
G4double GetTargetRadius()
void SetYvertex(G4double y)
G4ParticleGun * fParticleGun
Definition of the F04PrimaryGeneratorMessenger class.
virtual void GeneratePrimaryVertex(G4Event *evt)
G4GLOB_DLL std::ostream G4cout
void SetParticleEnergy(G4double aKineticEnergy)
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=0, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
virtual ~F04PrimaryGeneratorAction()
G4VPhysicalVolume * GetWorldVolume() const
F04PrimaryGeneratorMessenger * fGunMessenger
void SetXvertex(G4double x)
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)