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);
std::ostringstream G4ExceptionDescription
static G4VVisManager * GetConcreteInstance()
void EndOfRunAction(const G4Run *)
void BeginOfRunAction(const G4Run *)
const XrayFluoDataSet * GetGammaSet()
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const XML_Char int const XML_Char * value
const XrayFluoDataSet * GetAlphaSet()
G4DataVector * GetEnergies()
const XML_Char const XML_Char * data
const XrayFluoDataSet * Normalize(G4double, G4double, G4int, G4String)
G4int ApplyCommand(const char *aCommand)
const XrayFluoDataSet * GetSet()