68 G4cout <<
" magneticMoment: " << magneticMoment/muN <<
G4endl;
72 G4double g_factor = 2 * magneticMoment/muN;
78 G4double anomaly = (g_factor - 2.)/2.;
81 anomaly = (g_factor * (mass_neutron/mass_proton) - 2.)/2.;
85 g_factor = 2 * magneticMoment/muN;
87 anomaly = (g_factor - 2.)/2.;
99 G4cout <<
" magneticMoment: " << magneticMoment/muB <<
G4endl;
103 g_factor = magneticMoment/muB;
109 anomaly = (g_factor - 2.)/2.;
141 if (phi >
pi/2 && phi <
pi) phi =
pi-phi;
143 G4double z = std::sin(phi)*std::cos(theta);
144 G4double x = std::sin(phi)*std::sin(theta);
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4ParticleGun * fParticleGun
CLHEP::Hep3Vector G4ThreeVector
static constexpr double hbar_Planck
static G4ParticleTable * GetParticleTable()
G4double GetPDGCharge() const
void SetParticlePosition(G4ThreeVector aPosition)
G4double GetPDGMass() const
static constexpr double c_squared
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
virtual ~F06PrimaryGeneratorAction()
void SetParticlePolarization(G4ThreeVector aVal)
static constexpr double eV
Definition of the F06PrimaryGeneratorAction class.
G4double GetPDGMagneticMoment() const
F06PrimaryGeneratorAction(void)
virtual void GeneratePrimaryVertex(G4Event *evt)
G4GLOB_DLL std::ostream G4cout
virtual void GeneratePrimaries(G4Event *)
Definition of the F06DetectorConstruction class.
void SetParticleEnergy(G4double aKineticEnergy)
static constexpr double pi
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
static constexpr double eplus