66 void XrayFluoRunAction::Initialise()
79 ReadData(
keV,
"M_flare");
87 dataGammaSet = normalization.
Normalize(minGamma, maxGamma, nBinsGamma,
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)
238 energies->push_back(e);
243 else if (k%nColumns == 0)
246 data->push_back(value);
std::ostringstream G4ExceptionDescription
const XrayFluoDataSet * GetSet() const
static G4VVisManager * GetConcreteInstance()
std::vector< ExP01TrackerHit * > a
void EndOfRunAction(const G4Run *)
void BeginOfRunAction(const G4Run *)
const XrayFluoDataSet * GetAlphaSet() const
const XML_Char const XML_Char * data
static G4UImanager * GetUIpointer()
G4DataVector * GetEnergies() const
G4GLOB_DLL std::ostream G4cout
const XML_Char int const XML_Char * value
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
static constexpr double keV
const XrayFluoDataSet * Normalize(G4double, G4double, G4int, G4String)
G4int ApplyCommand(const char *aCommand)