173 for (
size_t i = 0; i <
data->size(); i++)
184 G4cout <<
"Reading data...";
185 std::ostringstream ost;
187 ost << fileName <<
".dat";
192 if (!(getenv(
"XRAYDATA"))) {
194 path = getenv(
"PWD");
198 path = getenv(
"XRAYDATA");
203 name = pathString +
"/" +
name;
206 std::ifstream file(name);
207 std::filebuf* lsdp = file.rdbuf();
209 if (! (lsdp->is_open()) )
212 execp <<
"XrayFluoRunAction - data file: " + name +
" not found";
213 G4Exception(
"XrayFluoRunAction::ReadData()",
"example-xray_fluorescence04",
228 if (a == -1 || a == -2)
243 else if (k%nColumns == 0)
246 data->push_back(value);
std::ostringstream G4ExceptionDescription
const XrayFluoDataSet * GetSet() const
const XrayFluoDataSet * dataAlphaSet
static G4VVisManager * GetConcreteInstance()
void EndOfRunAction(const G4Run *)
void BeginOfRunAction(const G4Run *)
const XrayFluoDataSet * GetAlphaSet() const
static G4UImanager * GetUIpointer()
G4DataVector * GetEnergies() const
G4GLOB_DLL std::ostream G4cout
static XrayFluoAnalysisManager * getInstance()
const XrayFluoDataSet * GetGammaSet() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4DataVector * GetData() const
G4double GetDataSum() const
void ReadData(G4double, G4String)
const XrayFluoDataSet * dataSet
const XrayFluoDataSet * dataGammaSet
G4bool isInitialized()
Check if the generator is initialized.
const XrayFluoDataSet * Normalize(G4double, G4double, G4int, G4String)
G4int ApplyCommand(const char *aCommand)