#include <Doxymodules_field.h>
Definition at line 138 of file Doxymodules_field.h.
◆ F05PrimaryGeneratorAction()
F05PrimaryGeneratorAction::F05PrimaryGeneratorAction |
( |
| ) |
|
◆ ~F05PrimaryGeneratorAction()
F05PrimaryGeneratorAction::~F05PrimaryGeneratorAction |
( |
| ) |
|
|
override |
◆ GeneratePrimaries()
void F05PrimaryGeneratorAction::GeneratePrimaries |
( |
G4Event * |
anEvent | ) |
|
|
override |
Definition at line 67 of file F05PrimaryGeneratorAction.cc.
68{
69
70
71
72 G4double Pmu = 517.6*MeV;
73 G4double mu_mass = 105.658*MeV;
74 G4double Emu = std::sqrt(Pmu*Pmu + mu_mass*mu_mass);
75 G4double Kmu = Emu - mu_mass;
76
77 G4double x0 = -6.99*m;
78 G4double y0 = 0.00*m;
79 G4double z0 = 0.00*m;
80
82 fParticleGun->SetParticlePosition(G4ThreeVector(x0,y0,z0));
83 fParticleGun->SetParticlePolarization(G4ThreeVector(0.,1.,0.));
84 fParticleGun->SetParticleMomentumDirection(G4ThreeVector(0.,1.,0.));
85
87}
◆ fParticleGun
The documentation for this class was generated from the following files: