#include <PrimaryGeneratorAction4.hh>
Definition at line 47 of file PrimaryGeneratorAction4.hh.
PrimaryGeneratorAction4::PrimaryGeneratorAction4 |
( |
G4ParticleGun * |
gun | ) |
|
Definition at line 48 of file PrimaryGeneratorAction4.cc.
55 fRmin3 = Rmin*Rmin*Rmin;
56 fRmax3 = Rmax*Rmax*Rmax;
62 fCosAlphaMin = std::cos(alphaMin);
63 fCosAlphaMax = std::cos(alphaMax);
static constexpr double mm
static constexpr double deg
PrimaryGeneratorAction4::~PrimaryGeneratorAction4 |
( |
| ) |
|
void PrimaryGeneratorAction4::GeneratePrimaries |
( |
G4Event * |
anEvent | ) |
|
Definition at line 73 of file PrimaryGeneratorAction4.cc.
78 G4double sinTheta = std::sqrt(1. - cosTheta*cosTheta);
80 G4ThreeVector ur(sinTheta*std::cos(phi),sinTheta*std::sin(phi),cosTheta);
92 G4double sinAlpha = std::sqrt(1. - cosAlpha*cosAlpha);
94 G4ThreeVector dir(sinAlpha*std::cos(psi),sinAlpha*std::sin(psi),cosAlpha);
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
virtual void GeneratePrimaryVertex(G4Event *evt)
static constexpr double twopi
void SetParticlePosition(G4ThreeVector aPosition)
void SetParticleEnergy(G4double aKineticEnergy)
static constexpr double MeV
G4double PrimaryGeneratorAction4::GetCosAlphaMax |
( |
| ) |
|
|
inline |
G4double PrimaryGeneratorAction4::GetCosAlphaMin |
( |
| ) |
|
|
inline |
G4double PrimaryGeneratorAction4::GetRmax3 |
( |
| ) |
|
|
inline |
G4double PrimaryGeneratorAction4::GetRmin3 |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: