109 G4cerr <<
"Error ! Optical photon energy (" << energy/
eV <<
" eV) out of limits set by material optical properties tables. \n"
110 <<
"Please check that photon wavelength is within the following interval: ["
111 << lambda_min/
nm <<
","
112 << lambda_max/
nm <<
"] nm"
118 G4Exception(
"UltraPrimaryGeneratorAction::GeneratePrimaries()",
"AirSh005",
G4GeneralParticleSource * particleGun
static G4RunManager * GetRunManager()
UltraPrimaryGeneratorAction()
void GeneratePrimaryVertex(G4Event *)
static constexpr double nm
void GeneratePrimaries(G4Event *anEvent)
const G4String & GetParticleName() const
G4SPSPosDistribution * GetPosDist() const
static constexpr double h_Planck
G4double GetParticleEnergy() const
G4double GetLambdaMin() const
G4String GetPosDisType() const
G4double GetLambdaMax() const
G4ParticleDefinition * GetParticleDefinition() const
G4SPSEneDistribution * GetEneDist() const
static constexpr double eV
G4GLOB_DLL std::ostream G4cerr
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
static constexpr double c_light
~UltraPrimaryGeneratorAction()
G4GLOB_DLL std::ostream G4cout
G4String GetEnergyDisType()
G4SingleParticleSource * GetCurrentSource() const