78 G4cout <<
"G4ElementData::InitialiseForElement ERROR for " <<
name
79 <<
" Z = " << Z <<
" is out of range!" <<
G4endl;
80 G4Exception(
"G4ElementData::InitialiseForElement()",
"mat601",
84 if(elmData[Z]) {
delete elmData[
Z]; }
91 G4cout <<
"G4ElementData::InitialiseForElement ERROR for " <<
name
92 <<
" Z = " << Z <<
" is out of range!" <<
G4endl;
93 G4Exception(
"G4ElementData::InitialiseForElement()",
"mat601",
97 if(elm2Data[Z]) {
delete elm2Data[
Z]; }
104 G4cout <<
"G4ElementData::InitialiseForComponent ERROR for " <<
name
105 <<
" Z = " << Z <<
" is out of range!" <<
G4endl;
106 G4Exception(
"G4ElementData::InitialiseForComponent()",
"mat602",
112 if(0 != compLength[Z]) {
return; }
115 (compData[
Z]).reserve(nComponents);
116 (compID[
Z]).reserve(nComponents);
123 G4cout <<
"G4ElementData::AddComponent ERROR for " <<
name
124 <<
" Z = " << Z <<
" is out of range!" <<
G4endl;
125 G4Exception(
"G4ElementData::AddComponent()",
"mat603",
129 (compData[
Z]).push_back(v);
130 (compID[
Z]).push_back(
id);
void AddComponent(G4int Z, G4int id, G4PhysicsVector *v)
const G4int maxNumElements
void InitialiseForElement(G4int Z, G4PhysicsVector *v)
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void InitialiseForComponent(G4int Z, G4int nComponents=0)