57 for (pos = 0 ; pos < 100; pos++)
124 {
G4Exception(
"G4RDAugerData::VacancyId()",
"OutOfRange",
129 {
G4Exception(
"G4RDAugerData::VacancyId()",
"NoDataFound",
131 std::vector<G4RDAugerTransition> dataSet = (*element).second;
132 n = (
G4int) dataSet[vacancyIndex].FinalShellId();
147 {
G4Exception(
"G4RDAugerData::NumberOfTransitions()",
"OutOfRange",
152 {
G4Exception(
"G4RDAugerData::NumberOfTransitions()",
"NoDataFound",
154 std::vector<G4RDAugerTransition> dataSet = (*element).second;
155 n = (
G4int)dataSet[vacancyIndex].TransitionOriginatingShellIds()->size();
166 {
G4Exception(
"G4RDAugerData::NumberOfAuger()",
"OutOfRange",
171 {
G4Exception(
"G4RDAugerData::NumberOfAuger()",
"NoDataFound",
173 std::vector<G4RDAugerTransition> dataSet = (*element).second;
174 const std::vector<G4int>* temp = dataSet[initIndex].AugerOriginatingShellIds(vacancyId);
184 {
G4Exception(
"G4RDAugerData::AugerShellId()",
"OutOfRange",
189 {
G4Exception(
"G4RDAugerData::AugerShellId()",
"NoDataFound",
191 std::vector<G4RDAugerTransition> dataSet = (*element).second;
192 n = dataSet[vacancyIndex].AugerOriginatingShellId(augerIndex,transId);
202 {
G4Exception(
"G4RDAugerData::StartShellId()",
"OutOfRange",
207 {
G4Exception(
"G4RDAugerData::StartShellId()",
"NoDataFound",
209 std::vector<G4RDAugerTransition> dataSet = (*element).second;
210 n = dataSet[vacancyIndex].TransitionOriginatingShellId(transitionShellIndex);
222 {
G4Exception(
"G4RDAugerData::StartShellEnergy()",
"OutOfRange",
227 {
G4Exception(
"G4RDAugerData::StartShellEnergy()",
"NoDataFound",
229 std::vector<G4RDAugerTransition> dataSet = (*element).second;
230 energy = dataSet[vacancyIndex].AugerTransitionEnergy(augerIndex,transitionId);
242 {
G4Exception(
"G4RDAugerData::StartShellProb()",
"OutOfRange",
247 {
G4Exception(
"G4RDAugerData::StartShellProb()",
"NoDataFound",
249 std::vector<G4RDAugerTransition> dataSet = (*element).second;
250 prob = dataSet[vacancyIndex].AugerTransitionProbability(augerIndex, transitionId);
262 std::ostringstream ost;
264 ost <<
"au-tr-pr-"<< Z <<
".dat";
267 ost <<
"au-tr-pr-"<<
".dat";
271 char* path = getenv(
"G4LEDATA");
274 G4String excep =
"G4LEDATA environment variable not set";
275 G4Exception(
"G4RDAugerData::LoadData()",
"InvalidSetup",
281 std::ifstream
file(dirFile);
282 std::filebuf* lsdp = file.rdbuf();
284 if (! (lsdp->is_open()) )
286 G4String excep =
"Data file: " + dirFile +
" not found!";
287 G4Exception(
"G4RDAugerData::LoadData()",
"DataNotFound",
297 std::vector<G4int>* initIds =
new std::vector<G4int>;
298 std::vector<G4int>* newIds =
new std::vector<G4int>;
301 std::vector<G4RDAugerTransition> augerTransitionVector;
302 std::map<G4int,std::vector<G4int>,std::less<G4int> >* newIdMap =
303 new std::map<G4int,std::vector<G4int>,std::less<G4int> >;
304 std::map<G4int,G4DataVector,std::less<G4int> >* newEnergyMap =
305 new std::map<G4int,G4DataVector,std::less<G4int> >;
306 std::map<G4int,G4DataVector,std::less<G4int> >* newProbabilityMap =
307 new std::map<G4int,G4DataVector,std::less<G4int> >;
327 std::vector<G4int>::iterator vectorIndex = initIds->begin();
329 vacId = *vectorIndex;
335 std::vector<G4int> identifiers;
336 for (vectorIndex = initIds->begin()+1 ; vectorIndex != initIds->end(); ++vectorIndex){
338 identifiers.push_back(*vectorIndex);
341 vectorIndex = (initIds->end())-1;
343 G4int augerShellId = *(vectorIndex);
346 (*newIdMap)[augerShellId] = *newIds;
347 (*newEnergyMap)[augerShellId] = *transEnergies;
348 (*newProbabilityMap)[augerShellId] = *transProbabilities;
350 augerTransitionVector.push_back(
G4RDAugerTransition(vacId, identifiers, newIdMap, newEnergyMap, newProbabilityMap));
356 delete newProbabilityMap;
358 G4int n = initIds->size();
363 delete transEnergies;
364 delete transProbabilities;
365 initIds =
new std::vector<G4int>;
366 newIds =
new std::vector<G4int>;
369 newIdMap =
new std::map<G4int,std::vector<G4int>,std::less<G4int> >;
370 newEnergyMap =
new std::map<G4int,G4DataVector,std::less<G4int> >;
371 newProbabilityMap =
new std::map<G4int,G4DataVector,std::less<G4int> >;
388 delete transEnergies;
389 delete transProbabilities;
392 delete newProbabilityMap;
397 if (k%nColumns == 3){
399 transProbabilities->push_back(a);
402 else if(k%nColumns == 2){
408 newIds->push_back(l);
413 else if (k%nColumns == 1)
417 if(initIds->size() == 0) {
422 initIds->push_back((
G4int)a);
432 if((
G4int)a != initIds->back()){
435 if((initIds->size()) == 1) {
436 initIds->push_back((
G4int)a);
441 G4int augerShellId = 0;
442 augerShellId = initIds->back();
444 (*newIdMap)[augerShellId] = *newIds;
445 (*newEnergyMap)[augerShellId] = *transEnergies;
446 (*newProbabilityMap)[augerShellId] = *transProbabilities;
448 delete transEnergies;
449 delete transProbabilities;
450 newIds =
new std::vector<G4int>;
453 initIds->push_back((
G4int)a);
461 else if (k%nColumns == 0)
466 transEnergies->push_back(e);
476 return augerTransitionVector;
492 for (
G4int m=0;
m<nMaterials;
m++) {
498 for (
size_t iEl=0; iEl<nElements; iEl++) {
499 G4Element* element = (*elementVector)[iEl];
502 activeZ.push_back(Z);
508 for (
G4int element = 6; element < 101; element++)
510 if(nMaterials == 0 || activeZ.
contains(element)) {
513 G4cout <<
"G4RDAugerData for Element no. " << element <<
" are loaded" <<
G4endl;
526 G4cout <<
"---- TransitionData for the vacancy nb "
528 <<
" of the atomic number elemnt "
543 G4cout <<
" Auger Originatig Shell Id :"<< augerId <<
G4endl;
544 G4cout <<
" - Transition energy = " << e <<
" MeV "<<
G4endl;
548 G4cout <<
"-------------------------------------------------"
555 std::vector<G4RDAugerTransition>::iterator vectorIndex = dataSet->begin() + vacancyShellIndex;
558 return augerTransition;
std::vector< ExP01TrackerHit * > a
static const G4double pos
static size_t GetNumberOfMaterials()
static constexpr double MeV
G4double StartShellEnergy(G4int Z, G4int vacancyIndex, G4int transitionId, G4int augerIndex) const
size_t NumberOfAuger(G4int Z, G4int initIndex, G4int vacancyId) const
G4int StartShellId(G4int Z, G4int initialVacancyIndex, G4int transitionShellIndex) const
static G4MaterialTable * GetMaterialTable()
trans_Table augerTransitionTable
G4int VacancyId(G4int Z, G4int vacancyIndex) const
G4bool contains(const G4double &) const
const G4ElementVector * GetElementVector() const
std::vector< G4int > nInitShells
static constexpr double m
size_t NumberOfTransitions(G4int Z, G4int vacancyIndex) const
size_t AugerShellId(G4int Z, G4int vacancyIndex, G4int transId, G4int augerIndex) const
void BuildAugerTransitionTable()
std::vector< G4Material * > G4MaterialTable
G4double StartShellProb(G4int Z, G4int vacancyIndex, G4int transitionId, G4int augerIndex) const
std::vector< G4int > numberOfVacancies
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::vector< G4Element * > G4ElementVector
G4GLOB_DLL std::ostream G4cout
size_t NumberOfVacancies(G4int Z) const
G4RDAugerTransition * GetAugerTransition(G4int Z, G4int vacancyShellIndex)
std::vector< G4RDAugerTransition > LoadData(G4int Z)
size_t GetNumberOfElements() const
std::vector< G4RDAugerTransition > * GetAugerTransitions(G4int Z)