63 algorithm(argAlgorithm),
64 unitEnergies(argUnitEnergies),
65 unitData(argUnitData),
70 G4Exception(
"G4CompositeEMDataSet::G4CompositeEMDataSet",
80 if (algorithm)
delete algorithm;
88 if (component)
return component->
FindValue(argEnergy);
90 std::ostringstream message;
91 message <<
"G4CompositeEMDataSet::FindValue - component " << argComponentId <<
" not found";
103 G4cout <<
"The data set has " << n <<
" components" <<
G4endl;
126 std::ostringstream message;
127 message <<
"G4CompositeEMDataSet::SetEnergiesData - component " << argComponentId <<
" not found";
129 G4Exception(
"G4CompositeEMDataSet::SetEnergiesData",
137 G4int argComponentId)
147 std::ostringstream message;
148 message <<
"G4CompositeEMDataSet::SetEnergiesData - component " << argComponentId <<
" not found";
150 G4Exception(
"G4CompositeEMDataSet::SetLogEnergiesData",
162 if (!component->
LoadData(argFileName))
199 std::ostringstream message;
200 message <<
"G4CompositeEMDataSet::SaveData - component " << (
z-minZ) <<
" not found";
206 if (!component->
SaveData(argFileName))
213 void G4CompositeEMDataSet::CleanUpComponents(
void)
215 while (!components.empty())
217 if (components.back())
218 delete components.back();
219 components.pop_back();
227 if (componentId >= 0 && componentId < (
G4int)components.size())