56 G4Exception(
"G4RDShellEMDataSet::G4RDShellEMDataSet()",
"InvalidSetup",
73 std::vector<G4RDVEMDataSet *>::const_iterator i(
components.begin());
74 std::vector<G4RDVEMDataSet *>::const_iterator end(
components.end());
78 value += (*i)->FindValue(energy);
90 G4cout <<
"The data set has " << n <<
" components" <<
G4endl;
117 message <<
"Component " << componentId <<
" not found";
119 G4Exception(
"G4RDShellEMDataSet::SetEnergiesData()",
"DataNotFound",
129 std::ifstream
in(fullFileName);
134 message += fullFileName;
135 message +=
"\" not found";
136 G4Exception(
"G4RDShellEMDataSet::LoadData()",
"DataNotFound",
144 G4int shellIndex = 0;
145 bool energyColumn =
true;
153 if (energyColumn && energies!=0)
160 energyColumn = (!energyColumn);
175 energyColumn = (!energyColumn);
187 std::ofstream out(fullFileName);
192 message += fullFileName;
194 G4Exception(
"G4RDEMDataSet::SaveData()",
"CannotOpenFile",
210 G4DataVector::const_iterator i = energies.begin();
211 G4DataVector::const_iterator endI = energies.end();
212 G4DataVector::const_iterator j = data.begin();
224 out << ((*j)/
unitData) << std::endl;
238 out << -1.f << std::endl;
251 out << -2.f << std::endl;
269 char* path = std::getenv(
"G4LEDATA");
271 G4Exception(
"G4RDShellEMDataSet::FullFileName()",
"InvalidSetup",
274 std::ostringstream fullFileName;
276 fullFileName << path <<
'/' << fileName <<
z <<
".dat";
278 return G4String(fullFileName.str().c_str());