57 :dataSet(0),dataGammaSet(0),dataAlphaSet(0)
65 ReadData(
keV,
"spec10");
73 dataGammaSet = normalization.
Normalize(minGamma, maxGamma, nBinsGamma,
138 #ifdef G4ANALYSIS_USE
141 XrayFluoAnalysisManager* analysis = XrayFluoAnalysisManager::getInstance();
143 analysis->InitializePlotter();
151 #ifdef G4ANALYSIS_USE
152 XrayFluoAnalysisManager* analysis = XrayFluoAnalysisManager::getInstance();
158 #ifdef G4ANALYSIS_USE
193 size_t size =
data->size();
194 for (
size_t i = 0; i <size; i++)
204 std::ostringstream ost;
206 ost << fileName <<
".dat";
211 if (!(getenv(
"XRAYDATA"))) {
213 path = getenv(
"PWD");
217 path = getenv(
"XRAYDATA");
222 name = pathString +
"/" +
name;
225 std::ifstream
file(name);
226 std::filebuf* lsdp =
file.rdbuf();
228 if (! (lsdp->is_open()) )
231 execp <<
"XrayFluoRunAction - data file: " + name +
" not found";
232 G4Exception(
"XrayFluoRunAction::ReadData()",
"example-xray_fluorescence04",
247 if (a == -1 || a == -2)
257 energies->push_back(e);
262 else if (k%nColumns == 0)
265 data->push_back(value);