76 : fName(
name), fSymbol(symbol)
81 ed <<
"Failed to create G4Element " <<
name
82 <<
" Z= " << zeff <<
" < 1 !";
87 ed <<
"G4Element Warning: " <<
name <<
" Z= " << zeff
102 ed <<
"Failed to create G4Element " <<
name
103 <<
" with Z= " << zeff <<
" N= " <<
fNeff
104 <<
" N < Z is not allowed" <<
G4endl;
129 : fName(
name),fSymbol(symbol)
133 size_t n = size_t(nIsotopes);
137 ed <<
"Failed to create G4Element " <<
name
138 <<
" <" << symbol <<
"> with " << nIsotopes
155 ed <<
"Failed to add Isotope to G4Element " <<
fName
168 ed <<
"Failed to add Isotope Z= " << iz <<
" to G4Element " <<
fName
180 ed <<
"Failed to add Isotope Z= " << iz <<
" to G4Element " <<
fName
181 <<
" - more isotopes than declared.";
194 if(wtSum > 0.0) {
fAeff /= wtSum; }
245 : fZeff(0), fNeff(0), fAeff(0)
291 static const G4double k1 = 0.0083 , k2 = 0.20206 ,k3 = 0.0020 , k4 = 0.0369 ;
296 fCoulomb = (k1*az4 + k2 + 1./(1.+az2))*az2 - (k3*az4 + k4)*az4;
307 static const G4double Lrad_light[] = {5.31 , 4.79 , 4.74 , 4.71} ;
308 static const G4double Lprad_light[] = {6.144 , 5.621 , 5.805 , 5.924} ;
316 if (iz <= 3) { Lrad = Lrad_light[iz] ; Lprad = Lprad_light[iz] ; }
317 else { Lrad = log184 - logZ3 ; Lprad = log1194 - 2*logZ3;}
332 const std::vector<G4String> elmnames =
339 for(
G4int i=0; i<
n; ++i) {
346 for(
G4int i=0; i<
n; ++i) {
350 std::ostringstream strm;
352 (*theIsotopeVector)[idx] =
new G4Isotope(strm.str(),
Z, N, 0.0, 0);
358 if(xsum != 0.0 && xsum != 1.0) {
370 ed <<
"Invalid argument " << i <<
" in for G4Element " <<
fName
371 <<
" with Z= " <<
fZeff
385 ed <<
"Invalid argument " << i <<
" for G4Element " <<
fName
386 <<
" with Z= " <<
fZeff
388 G4Exception(
"G4Element::GetNbOfShellElectrons()",
"mat016",
422 G4cout <<
"\n---> warning from G4Element::GetElement(). The element: "
423 << elementName <<
" does not exist in the table. Return NULL pointer."
433 std::ios::fmtflags mode = flux.flags();
434 flux.setf(std::ios::fixed,std::ios::floatfield);
438 <<
" Element: " << element->
fName <<
" (" << element->
fSymbol <<
")"
439 <<
" Z = " << std::setw(4) << std::setprecision(1) << element->
fZeff
440 <<
" N = " << std::setw(5) << std::setprecision(1)
442 <<
" A = " << std::setw(6) << std::setprecision(3)
448 <<
" abundance: " << std::setw(6) << std::setprecision(3)
451 flux.precision(
prec);
452 flux.setf(mode,std::ios::floatfield);
469 flux <<
"\n***** Table : Nb of elements = " << ElementTable.size()
472 for (
size_t i=0; i<ElementTable.size(); i++) flux << ElementTable[i]
483 flux <<
"\n***** Vector : Nb of elements = " << ElementVector.size()
486 for (
size_t i=0; i<ElementVector.size(); i++) flux << ElementVector[i]
std::vector< G4Element * > G4ElementTable
std::vector< const G4Element * > G4ElementVector
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
static const G4double aeff[]
std::vector< G4Isotope * > G4IsotopeVector
G4double G4Log(G4double x)
static constexpr double perCent
static constexpr double mole
static constexpr double perMillion
static constexpr double g
G4GLOB_DLL std::ostream G4cout
static G4int GetNumberOfElectrons(G4int Z, G4int SubshellNb)
static G4double GetBindingEnergy(G4int Z, G4int SubshellNb)
static G4int GetNumberOfShells(G4int Z)
static G4ElementTable * GetElementTable()
G4int * fNbOfShellElectrons
static size_t GetNumberOfElements()
G4IonisParamElm * fIonisation
G4IsotopeVector * theIsotopeVector
G4double * fRelativeAbundanceVector
void AddIsotope(G4Isotope *isotope, G4double RelativeAbundance)
void ComputeLradTsaiFactor()
G4Element(const G4String &name, const G4String &symbol, G4double Zeff, G4double Aeff)
void ComputeCoulombFactor()
const G4String & GetName() const
void ComputeDerivedQuantities()
void InitializePointers()
G4int GetNbOfShellElectrons(G4int index) const
static G4ElementTable theElementTable
void AddNaturalIsotopes()
G4double GetAtomicShell(G4int index) const
static G4Element * GetElement(G4String name, G4bool warning=true)
G4int GetNumberOfNistIsotopes(G4int Z) const
const std::vector< G4String > & GetNistElementNames() const
G4int GetNistFirstIsotopeN(G4int Z) const
static G4NistManager * Instance()
G4double GetIsotopeAbundance(G4int Z, G4int N) const
std::ostream & operator<<(std::ostream &, const BasicVector3D< float > &)
const char * name(G4int ptype)