30 throw std::logic_error(
"Attempted to duplicate a singleton");
34 G4int nofParticles = 1;
35 fParticleGun = std::make_unique<G4ParticleGun>(nofParticles);
64 G4ThreeVector(cos(phi) * sin(theta), sin(phi) * sin(theta), cos(theta));
68 fParticleGun->SetParticleMomentumDirection(m_direction);
69 fParticleGun->SetParticlePosition(m_position);
71 fParticleGun->GeneratePrimaryVertex(anEvent);