59 :dataSet(0),dataGammaSet(0),dataAlphaSet(0)
67 ReadData(
keV,
"spec10");
75 dataGammaSet = normalization.
Normalize(minGamma, maxGamma, nBinsGamma,
120 #ifdef G4ANALYSIS_USE
123 XrayFluoAnalysisManager* analysis = XrayFluoAnalysisManager::getInstance();
125 analysis->InitializePlotter();
133 #ifdef G4ANALYSIS_USE
134 XrayFluoAnalysisManager* analysis = XrayFluoAnalysisManager::getInstance();
140 #ifdef G4ANALYSIS_USE
175 size_t size =
data->size();
176 for (
size_t i = 0; i <size; i++)
186 std::ostringstream ost;
188 ost << fileName <<
".dat";
193 if (!(getenv(
"XRAYDATA"))) {
195 path = getenv(
"PWD");
199 path = getenv(
"XRAYDATA");
204 name = pathString +
"/" +
name;
207 std::ifstream file(name);
208 std::filebuf* lsdp = file.rdbuf();
210 if (! (lsdp->is_open()) )
213 execp <<
"XrayFluoRunAction - data file: " + name +
" not found";
214 G4Exception(
"XrayFluoRunAction::ReadData()",
"example-xray_fluorescence04",
229 if (a == -1 || a == -2)
244 else if (k%nColumns == 0)
247 data->push_back(value);
std::ostringstream G4ExceptionDescription
const XrayFluoDataSet * dataAlphaSet
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)
void ReadData(G4double, G4String)
const XrayFluoDataSet * dataSet
const XrayFluoDataSet * GetAlphaSet()
G4DataVector * GetEnergies()
const XrayFluoDataSet * dataGammaSet
const XrayFluoDataSet * Normalize(G4double, G4double, G4int, G4String)
G4int ApplyCommand(const char *aCommand)
const XrayFluoDataSet * GetSet()