#include <F06PrimaryGeneratorAction.hh>
F06PrimaryGeneratorAction::F06PrimaryGeneratorAction |
( |
void |
| ) |
|
Definition at line 49 of file F06PrimaryGeneratorAction.cc.
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.;
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4GLOB_DLL std::ostream G4cout
static constexpr double eplus
static constexpr double c_squared
G4double GetPDGMass() const
static G4ParticleTable * GetParticleTable()
G4double GetPDGMagneticMoment() const
G4double GetPDGCharge() const
static constexpr double hbar_Planck
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
F06PrimaryGeneratorAction::~F06PrimaryGeneratorAction |
( |
| ) |
|
|
virtual |
void F06PrimaryGeneratorAction::GeneratePrimaries |
( |
G4Event * |
anEvent | ) |
|
|
virtual |
Implements G4VUserPrimaryGeneratorAction.
Definition at line 128 of file F06PrimaryGeneratorAction.cc.
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);
CLHEP::Hep3Vector G4ThreeVector
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
virtual void GeneratePrimaryVertex(G4Event *evt)
void SetParticlePolarization(G4ThreeVector aVal)
void SetParticlePosition(G4ThreeVector aPosition)
static constexpr double eV
void SetParticleEnergy(G4double aKineticEnergy)
static constexpr double pi
The documentation for this class was generated from the following files: