58 G4Exception(
"G4CompositeDataSet::G4CompositeDataSet",
61 "Interpolation == 0");
69 if (algorithm)
delete algorithm;
77 if (component)
return component->
FindValue(energy);
79 std::ostringstream message;
80 message <<
"G4CompositeDataSet::FindValue - component " << componentId <<
" not found";
85 message.str().c_str());
94 G4cout <<
"The data set has " << n <<
" components" <<
G4endl;
109 G4IDataSet * component(components[componentId]);
117 std::ostringstream message;
118 message <<
"G4CompositeDataSet::SetEnergiesData - component " << componentId <<
" not found";
123 message.str().c_str());
134 if (!component->
LoadData(argFileName))
154 std::ostringstream message;
155 message <<
"G4CompositeDataSet::SaveData - component " << (
z-minZ) <<
" not found";
159 message.str().c_str());
162 if (!component->
SaveData(argFileName))
169 void G4CompositeDataSet::CleanUpComponents(
void)
171 while (!components.empty())
173 if (components.back())
174 delete components.back();
175 components.pop_back();
183 if (componentId >= 0 && componentId < (
G4int)components.size())