128 Theta = defaultTheta;
165 particleGun -> SetParticleEnergy ( kineticEnergy );
204 condizione = std::sqrt(Mx*Mx + My*My + Mz*Mz);
207 if (condizione < 1) {
213 if (Mx > std::cos(
Theta)) {
IORTPrimaryGeneratorMessenger * gunMessenger
CLHEP::Hep3Vector G4ThreeVector
void startNewEvent()
Tell the analysis manager that a new event is starting.
static G4ParticleTable * GetParticleTable()
void SetXposition(G4double)
void SetZposition(G4double)
G4ParticleGun * particleGun
G4double GetmeanKineticEnergy(void)
G4double meanKineticEnergy
void SetsigmaEnergy(G4double)
void SetYposition(G4double)
~IORTPrimaryGeneratorAction()
static constexpr double MeV
void SetDefaultPrimaryParticle()
ThreeVector shoot(const G4int Ap, const G4int Af)
void SetmeanKineticEnergy(G4double)
static IORTAnalysisManager * GetInstance()
static constexpr double mm
static constexpr double deg
void GeneratePrimaries(G4Event *)
IORTPrimaryGeneratorAction()
static constexpr double keV