85 for (i=0; i<std::abs(nlmat); i++) {
90 G4String text =
"G4mixt: Total molecular weight in " +
name +
" = 0.";
94 for (i=0; i<std::abs(nlmat); i++) {
96 wmat[i] = wmat[i]*a[i]/aMol;
105 for (i=0; i<std::abs(nlmat); i++) {
109 material->AddElement(element, wmat[i]);
G3G4DLL_API G3EleTable G3Ele
G3G4DLL_API G3MatTable G3Mat
G3G4DLL_API G4int Ipar[1000]
void G3fillParams(G4String *tokens, const char *ptypes)
G3G4DLL_API G4double Rpar[1000]
G3G4DLL_API G4String Spar[1000]
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
static constexpr double cm3
static constexpr double g
void PG4gsmixt(G4String *tokens)
void G4gsmixt(G4int imate, G4String name, G4double *a, G4double *z, G4double dens, G4int nlmat, G4double *wmat)
G4Element * GetEle(G4double Z)
void put(G4int id, G4Material *material)
const char * name(G4int ptype)