87 "vacancyIndex outside boundaries");
109 "vacancyIndex outside boundaries, energy deposited locally");
131 "vacancyIndex outside boundaries");
135 auto pos =
idMap.find(vacancyIndex);
139 G4int nData = dataSet.size();
142 if (initIndex >= 0 && initIndex < nData)
144 n = (
G4int) dataSet[initIndex+1];
159 "vacancyIndex outside boundaries");}
166 G4int nData = dataSet.size();
167 if (initIndex >= 0 && initIndex < nData)
169 n = dataSet[initIndex];
184 "vacancyIndex outside boundaries, energy deposited locally");
193 G4int nData = dataSet.size();
194 if (initIndex >= 0 && initIndex < nData)
196 n = dataSet[initIndex];
207 std::ostringstream ost;
209 ost <<
"/fl-tr-pr-"<<
Z <<
".dat";
212 ost <<
"/fl-tr-pr-"<<
".dat";
217 char* path = std::getenv(
"G4LEDATA");
220 G4String excep(
"G4FluoData::LoadData()");
232 std::ifstream
file(dirFile);
233 std::filebuf* lsdp =
file.rdbuf();
235 if (! (lsdp->is_open()) )
237 G4String excep =
"G4FluoData::LoadData()";
238 G4String msg =
"data file: " + dirFile +
" not found";
260 idMap[vacIndex] = initIds;
264 G4int n = initIds->size();
275 if (sLocal == nColumns)
295 if (a != -1) transProbabilities->push_back(a);
299 else if (k%nColumns == 1)
304 if(initIds->size() == 0) {
305 if (a != -1) initIds->push_back((
G4int)a);
311 if (a != -1) initIds->push_back(a);
315 else if (k%nColumns == 0)
321 transEnergies->push_back(e);}
330 delete transEnergies;
331 delete transProbabilities;
340 G4cout <<
"---- TransitionData for the vacancy nb "
353 G4cout <<
" - Transition energy = " << e <<
" MeV "<<
G4endl;
357 G4cout <<
"-------------------------------------------------"
static const G4double pos
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
static constexpr double MeV
G4GLOB_DLL std::ostream G4cout
std::map< G4int, G4DataVector *, std::less< G4int > > energyMap
std::vector< G4int > nInitShells
G4double StartShellEnergy(G4int initIndex, G4int vacancyIndex) const
std::map< G4int, G4DataVector *, std::less< G4int > > idMap
size_t NumberOfTransitions(G4int vacancyIndex) const
std::map< G4int, G4DataVector *, std::less< G4int > > probabilityMap
G4int VacancyId(G4int vacancyIndex) const
Given the index of the vacancy returns its identity.
size_t NumberOfVacancies() const
G4FluoData(const G4String &dir)
G4int StartShellId(G4int initIndex, G4int vacancyIndex) const
G4double StartShellProb(G4int initIndex, G4int vacancyIndex) const
const char * name(G4int ptype)