46 if(!theNew->
Init(aDataFile))
57 for(
G4int i=0;i<nGammas;i++) buffer[i] = theGammas[i];
61 theGammas[nGammas] = theNew;
73 for(i=0; i<nGammas; i++)
76 if(std::abs(currentE-nextE)>epsilon)
nLevels++;
91 G4int levelCounter=-1;
92 for(i=0; i<nGammas; i++)
95 if(std::abs(currentE-nextE)>epsilon)
115 G4double levelE, gammaE, currentLevelE;
117 for(i=0; i<nGammas; i++)
122 min = currentLevelE-gammaE-
epsilon;
126 if(std::abs(currentLevelE-(levelE+gammaE))<min)
128 min = std::abs(currentLevelE-(levelE+gammaE));
void Init(std::istream &aDataFile)
static constexpr double keV
G4double GetLevelEnergy()
G4bool Init(std::istream &aDataFile)
G4ParticleHPLevel * theLevels
G4double GetLevelEnergy(G4int aLevel)
G4double GetGammaEnergy()
double epsilon(double density, double temperature)
void SetNumberOfGammas(G4int aGammas)
void SetGamma(G4int i, G4ParticleHPGamma *aGamma)
void SetNext(G4ParticleHPLevel *aLevel)
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
G4double GetLevelEnergy()