63 if(compLength[i] > 0) {
64 for(
size_t j=0; j<compLength[i]; ++j) {
65 delete (compData[i])[j];
74 G4cout <<
"G4ElementData::InitialiseForElement ERROR for " << name
75 <<
" Z = " << Z <<
" is out of range!" <<
G4endl;
76 G4Exception(
"G4ElementData::InitialiseForElement()",
"mat601",
80 if(elmData[Z]) {
delete elmData[Z]; }
87 G4cout <<
"G4ElementData::InitialiseForComponent ERROR for " << name
88 <<
" Z = " << Z <<
" is out of range!" <<
G4endl;
89 G4Exception(
"G4ElementData::InitialiseForComponent()",
"mat602",
95 if(0 != compLength[Z]) {
return; }
98 (compData[Z]).reserve(nComponents);
99 (compID[Z]).reserve(nComponents);
106 G4cout <<
"G4ElementData::AddComponent ERROR for " << name
107 <<
" Z = " << Z <<
" is out of range!" <<
G4endl;
108 G4Exception(
"G4ElementData::AddComponent()",
"mat603",
112 (compData[Z]).push_back(v);
113 (compID[Z]).push_back(
id);
const G4int maxNumElements
G4DLLIMPORT std::ostream G4cout
void InitialiseForComponent(G4int Z, G4int nComponents=0)
void InitialiseForElement(G4int Z, G4PhysicsVector *v)
void AddComponent(G4int Z, G4int id, G4PhysicsVector *v)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)