56 for (pos = 0 ; pos < 100; pos++)
132 std::vector<G4AugerTransition> dataSet = (*element).second;
133 n = (
G4int) dataSet[vacancyIndex].FinalShellId();
157 std::vector<G4AugerTransition> dataSet = (*element).second;
158 n = (
G4int)dataSet[vacancyIndex].TransitionOriginatingShellIds()->size();
179 std::vector<G4AugerTransition> dataSet = (*element).second;
180 const std::vector<G4int>* temp = dataSet[initIndex].AugerOriginatingShellIds(vacancyId);
200 std::vector<G4AugerTransition> dataSet = (*element).second;
201 n = dataSet[vacancyIndex].AugerOriginatingShellId(augerIndex,transId);
221 std::vector<G4AugerTransition> dataSet = (*element).second;
222 n = dataSet[vacancyIndex].TransitionOriginatingShellId(transitionShellIndex);
244 std::vector<G4AugerTransition> dataSet = (*element).second;
245 energy = dataSet[vacancyIndex].AugerTransitionEnergy(augerIndex,transitionId);
267 std::vector<G4AugerTransition> dataSet = (*element).second;
268 prob = dataSet[vacancyIndex].AugerTransitionProbability(augerIndex, transitionId);
280 std::ostringstream ost;
282 ost <<
"au-tr-pr-"<< Z <<
".dat";
285 ost <<
"au-tr-pr-"<<
".dat";
289 char* path = getenv(
"G4LEDATA");
292 G4String excep =
"G4AugerData::LoadData";
294 std::vector<G4AugerTransition>
a;
300 std::ifstream file(dirFile);
301 std::filebuf* lsdp = file.rdbuf();
303 if (! (lsdp->is_open()) )
305 G4String excep =
"G4AugerData::LoadData";
316 std::vector<G4int>* initIds =
new std::vector<G4int>;
317 std::vector<G4int>* newIds =
new std::vector<G4int>;
320 std::vector<G4AugerTransition> augerTransitionVector;
321 std::map<G4int,std::vector<G4int>,std::less<G4int> >* newIdMap =
322 new std::map<G4int,std::vector<G4int>,std::less<G4int> >;
323 std::map<G4int,G4DataVector,std::less<G4int> >* newEnergyMap =
324 new std::map<G4int,G4DataVector,std::less<G4int> >;
325 std::map<G4int,G4DataVector,std::less<G4int> >* newProbabilityMap =
326 new std::map<G4int,G4DataVector,std::less<G4int> >;
346 std::vector<G4int>::iterator vectorIndex = initIds->begin();
348 vacId = *vectorIndex;
354 std::vector<G4int> identifiers;
355 for (vectorIndex = initIds->begin()+1 ; vectorIndex != initIds->end(); ++vectorIndex){
357 identifiers.push_back(*vectorIndex);
360 vectorIndex = (initIds->end())-1;
362 G4int augerShellId = *(vectorIndex);
365 (*newIdMap)[augerShellId] = *newIds;
366 (*newEnergyMap)[augerShellId] = *transEnergies;
367 (*newProbabilityMap)[augerShellId] = *transProbabilities;
369 augerTransitionVector.push_back(
G4AugerTransition(vacId, identifiers, newIdMap, newEnergyMap, newProbabilityMap));
375 delete newProbabilityMap;
377 G4int n = initIds->size();
382 delete transEnergies;
383 delete transProbabilities;
384 initIds =
new std::vector<G4int>;
385 newIds =
new std::vector<G4int>;
388 newIdMap =
new std::map<G4int,std::vector<G4int>,std::less<G4int> >;
389 newEnergyMap =
new std::map<G4int,G4DataVector,std::less<G4int> >;
390 newProbabilityMap =
new std::map<G4int,G4DataVector,std::less<G4int> >;
396 if (sLocal == nColumns)
418 if (k%nColumns == 3){
420 transProbabilities->push_back(a);
423 else if(k%nColumns == 2){
429 newIds->push_back(l);
434 else if (k%nColumns == 1)
438 if(initIds->size() == 0) {
443 initIds->push_back((
G4int)a);
453 if((
G4int)a != initIds->back()){
456 if((initIds->size()) == 1) {
457 initIds->push_back((
G4int)a);
462 G4int augerShellId = 0;
463 augerShellId = initIds->back();
465 (*newIdMap)[augerShellId] = *newIds;
466 (*newEnergyMap)[augerShellId] = *transEnergies;
467 (*newProbabilityMap)[augerShellId] = *transProbabilities;
469 delete transEnergies;
470 delete transProbabilities;
471 newIds =
new std::vector<G4int>;
474 initIds->push_back((
G4int)a);
482 else if (k%nColumns == 0)
487 transEnergies->push_back(e);
499 delete transEnergies;
500 delete transProbabilities;
503 delete newProbabilityMap;
504 return augerTransitionVector;
520 for (
G4int mLocal=0; mLocal<nMaterials; mLocal++) {
522 const G4Material* material= (*materialTable)[mLocal];
526 for (
size_t iEl=0; iEl<nElements; iEl++) {
527 G4Element* element = (*elementVector)[iEl];
530 activeZ.push_back(Z);
536 for (
G4int element = 6; element < 100; element++)
551 G4cout <<
"---- TransitionData for the vacancy nb "
553 <<
" of the atomic number elemnt "
568 G4cout <<
" Auger Originatig Shell Id :"<< augerId <<
G4endl;
569 G4cout <<
" - Transition energy = " << e <<
" MeV "<<
G4endl;
573 G4cout <<
"-------------------------------------------------"
580 std::vector<G4AugerTransition>::iterator vectorIndex = dataSet->begin() + vacancyShellIndex;
583 return augerTransition;
std::vector< G4AugerTransition > LoadData(G4int Z)
G4double StartShellProb(G4int Z, G4int vacancyIndex, G4int transitionId, G4int augerIndex) const
G4double StartShellEnergy(G4int Z, G4int vacancyIndex, G4int transitionId, G4int augerIndex) const
std::vector< G4Element * > G4ElementVector
std::vector< G4int > numberOfVacancies
static G4MaterialTable * GetMaterialTable()
std::vector< G4Material * > G4MaterialTable
size_t AugerShellId(G4int Z, G4int vacancyIndex, G4int transId, G4int augerIndex) const
const G4ElementVector * GetElementVector() const
size_t NumberOfAuger(G4int Z, G4int initIndex, G4int vacancyId) const
std::vector< G4AugerTransition > * GetAugerTransitions(G4int Z)
void BuildAugerTransitionTable()
G4int StartShellId(G4int Z, G4int initialVacancyIndex, G4int transitionShellIndex) const
G4GLOB_DLL std::ostream G4cout
static size_t GetNumberOfMaterials()
trans_Table augerTransitionTable
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double energy(const ThreeVector &p, const G4double m)
size_t NumberOfTransitions(G4int Z, G4int vacancyIndex) const
G4int VacancyId(G4int Z, G4int vacancyIndex) const
std::vector< G4int > nInitShells
size_t GetNumberOfElements() const
G4AugerTransition * GetAugerTransition(G4int Z, G4int vacancyShellIndex)
G4bool contains(const G4double &) const
size_t NumberOfVacancies(G4int Z) const
static const G4double pos