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);
void ReadData(G4double, G4String)
std::ostringstream G4ExceptionDescription
std::vector< ExP01TrackerHit * > a
static XrayFluoAnalysisManager * getInstance()
static constexpr double keV
G4int ApplyCommand(const char *aCommand)
const XrayFluoDataSet * GetAlphaSet() const
const XrayFluoDataSet * GetGammaSet() const
G4double GetDataSum() const
static G4UImanager * GetUIpointer()
static G4VVisManager * GetConcreteInstance()
const XML_Char const XML_Char * data
const XrayFluoDataSet * dataGammaSet
const XML_Char int const XML_Char * value
const XrayFluoDataSet * Normalize(G4double, G4double, G4int, G4String)
const XrayFluoDataSet * GetSet() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
const XrayFluoDataSet * dataAlphaSet
const XrayFluoDataSet * dataSet
void EndOfRunAction(const G4Run *)
void BeginOfRunAction(const G4Run *)
G4GLOB_DLL std::ostream G4cout
G4DataVector * GetData() const
G4DataVector * GetEnergies() const