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",
G4SPSEneDistribution * GetEneDist() const
G4SPSPosDistribution * GetPosDist() const
void GeneratePrimaryVertex(G4Event *)
~UltraPrimaryGeneratorAction()
const G4String & GetParticleName() const
UltraPrimaryGeneratorAction()
G4GLOB_DLL std::ostream G4cout
G4String GetEnergyDisType()
G4double GetLambdaMax() const
static constexpr double eV
G4ParticleDefinition * GetParticleDefinition() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double GetLambdaMin() const
static G4RunManager * GetRunManager()
static constexpr double nm
G4double energy(const ThreeVector &p, const G4double m)
void GeneratePrimaries(G4Event *anEvent)
G4double GetParticleEnergy() const
G4String GetPosDisType() const
G4SingleParticleSource * GetCurrentSource() const
G4GLOB_DLL std::ostream G4cerr