68 for(
size_t j=0; j<
n; ++j) {
79 G4cout <<
"G4ElementData::InitialiseForElement ERROR for " <<
name
80 <<
" Z = " << Z <<
" is out of range!" <<
G4endl;
81 G4Exception(
"G4ElementData::InitialiseForElement()",
"mat601",
92 G4cout <<
"G4ElementData::InitialiseForElement ERROR for " <<
name
93 <<
" Z = " << Z <<
" is out of range!" <<
G4endl;
94 G4Exception(
"G4ElementData::InitialiseForElement()",
"mat601",
105 G4cout <<
"G4ElementData::InitialiseForComponent ERROR for " <<
name
106 <<
" Z = " << Z <<
" is out of range!" <<
G4endl;
107 G4Exception(
"G4ElementData::InitialiseForComponent()",
"mat602",
115 for(
size_t i=0; i<
n; ++i) {
delete (
compData[Z])[i]; }
120 (
compID[Z]).reserve(nComponents);
127 G4cout <<
"G4ElementData::AddComponent ERROR for " <<
name
128 <<
" Z = " << Z <<
" is out of range!" <<
G4endl;
129 G4Exception(
"G4ElementData::AddComponent()",
"mat603",
134 (
compID[Z]).push_back(
id);
void AddComponent(G4int Z, G4int id, G4PhysicsVector *v)
std::vector< G4PhysicsVector * > compData[maxNumElements]
const G4int maxNumElements
void InitialiseForElement(G4int Z, G4PhysicsVector *v)
G4GLOB_DLL std::ostream G4cout
size_t compLength[maxNumElements]
G4PhysicsVector * elmData[maxNumElements]
std::vector< G4int > compID[maxNumElements]
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4Physics2DVector * elm2Data[maxNumElements]
void InitialiseForComponent(G4int Z, G4int nComponents=0)