171 for (
size_t i = 0; i <
data->size(); i++)
182 G4cout <<
"Reading data...";
183 std::ostringstream ost;
185 ost << fileName <<
".dat";
190 if (!(std::getenv(
"XRAYDATA"))) {
192 path = std::getenv(
"PWD");
196 path = std::getenv(
"XRAYDATA");
201 name = pathString +
"/" +
name;
204 std::ifstream
file(name);
205 std::filebuf* lsdp = file.rdbuf();
207 if (! (lsdp->is_open()) )
210 execp <<
"XrayFluoRunAction - data file: " + name +
" not found";
211 G4Exception(
"XrayFluoRunAction::ReadData()",
"example-xray_fluorescence04",
226 if (a == -1 || a == -2)
241 else if (k%nColumns == 0)
244 data->push_back(value);