#include <G4AugerTransition.hh>
Public Member Functions | |
G4AugerTransition (G4int finalShell, std::vector< G4int > transIds, const std::map< G4int, std::vector< G4int >, std::less< G4int > > *idMap, const std::map< G4int, G4DataVector, std::less< G4int > > *energyMap, const std::map< G4int, G4DataVector, std::less< G4int > > *probabilityMap) | |
~G4AugerTransition () | |
const std::vector< G4int > * | AugerOriginatingShellIds (G4int startShellId) const |
const std::vector< G4int > * | TransitionOriginatingShellIds () const |
const G4DataVector * | AugerTransitionEnergies (G4int startShellId) const |
const G4DataVector * | AugerTransitionProbabilities (G4int startShellId) const |
G4int | FinalShellId () const |
G4int | AugerOriginatingShellId (G4int index, G4int startShellId) const |
G4double | AugerTransitionEnergy (G4int index, G4int startShellId) const |
G4double | AugerTransitionProbability (G4int index, G4int startShellId) const |
G4int | TransitionOriginatingShellId (G4int index) const |
Definition at line 55 of file G4AugerTransition.hh.
G4AugerTransition::G4AugerTransition | ( | G4int | finalShell, | |
std::vector< G4int > | transIds, | |||
const std::map< G4int, std::vector< G4int >, std::less< G4int > > * | idMap, | |||
const std::map< G4int, G4DataVector, std::less< G4int > > * | energyMap, | |||
const std::map< G4int, G4DataVector, std::less< G4int > > * | probabilityMap | |||
) |
Definition at line 45 of file G4AugerTransition.cc.
00049 { 00050 finalShellId = finalShell; 00051 augerOriginatingShellIdsMap = *idMap; 00052 augerTransitionEnergiesMap = *energyMap; 00053 augerTransitionProbabilitiesMap = *probabilityMap; 00054 transitionOriginatingShellIds = transIds; 00055 00056 00057 }
G4AugerTransition::~G4AugerTransition | ( | ) |
Definition at line 148 of file G4AugerTransition.cc.
References AugerOriginatingShellIds(), and CLHEP::detail::n.
00149 { 00150 const std::vector<G4int>* ids = AugerOriginatingShellIds(startShellId); 00151 // G4int i = 00152 std::vector<G4int>::const_iterator pos = ids->begin(); 00153 G4int n = 0; 00154 n = *(pos+index); 00155 return n; 00156 }
const std::vector< G4int > * G4AugerTransition::AugerOriginatingShellIds | ( | G4int | startShellId | ) | const |
Definition at line 67 of file G4AugerTransition.cc.
References G4cout, and G4endl.
Referenced by AugerOriginatingShellId().
00068 { 00069 std::map<G4int,std::vector<G4int>,std::less<G4int> >::const_iterator shellId = augerOriginatingShellIdsMap.find(startShellId); 00070 00071 const std::vector<G4int>* dataSet = &(*shellId).second; 00072 //const std::vector<G4int>* dataOut = 0; 00073 00074 if (dataSet->size() == 0) {G4cout << "Error: no auger Id found"<< G4endl;} 00075 else { 00076 00077 // dataOut = &dataSet; 00078 00079 } 00080 00081 return dataSet; 00082 }
const G4DataVector * G4AugerTransition::AugerTransitionEnergies | ( | G4int | startShellId | ) | const |
Definition at line 96 of file G4AugerTransition.cc.
References G4Exception(), and JustWarning.
Referenced by AugerTransitionEnergy().
00097 { 00098 std::map<G4int,G4DataVector,std::less<G4int> >::const_iterator shellId = augerTransitionEnergiesMap.find(startShellId); 00099 00100 if (shellId == augerTransitionEnergiesMap.end() ) 00101 { 00102 G4Exception("G4AugerTransition::AugerTransitionEnergies()","de0002",JustWarning,"corresponding map element not found, energy deposited locally"); 00103 return 0; 00104 } 00105 00106 const G4DataVector* dataSet = &(*shellId).second; 00107 00108 00109 return dataSet; 00110 }
Definition at line 161 of file G4AugerTransition.cc.
References AugerTransitionEnergies().
00162 { 00163 const G4DataVector* energies = AugerTransitionEnergies(startShellId); 00164 G4double energy = 0; 00165 if (index < (G4int) energies->size()) { 00166 G4DataVector::const_iterator pos = energies->begin(); 00167 energy = *(pos+index); 00168 } 00169 return energy; 00170 }
const G4DataVector * G4AugerTransition::AugerTransitionProbabilities | ( | G4int | startShellId | ) | const |
Definition at line 115 of file G4AugerTransition.cc.
References G4Exception(), and JustWarning.
Referenced by AugerTransitionProbability().
00116 { 00117 00118 //debugging 00119 //if (startShellId == 1){G4cout <<"OI!!!"<< G4endl;} 00120 00121 std::map<G4int,G4DataVector,std::less<G4int> >::const_iterator shellId = augerTransitionProbabilitiesMap.find(startShellId); 00122 00123 if (shellId == augerTransitionProbabilitiesMap.end() ) 00124 { 00125 00126 G4Exception("G4AugerTransition::AugerTransitionProbabilities()","de0002",JustWarning,"corresponding map element not found, energy deposited locally"); 00127 return 0; 00128 } 00129 00130 const G4DataVector* dataSet = &(*shellId).second; 00131 // debugging purpose: 00132 /* G4cout << "id: " << shellId->first << G4endl; 00133 G4cout << "size:" << dataSet->size() << G4endl; 00134 for (G4int i = 0; i < dataSet->size(); i++){ 00135 G4cout << (dataSet[0])[i] << G4endl; 00136 }*/ 00137 return dataSet; 00138 }
Definition at line 175 of file G4AugerTransition.cc.
References AugerTransitionProbabilities().
00176 { 00177 00178 const G4DataVector *probabilities = AugerTransitionProbabilities(startShellId); 00179 G4DataVector::const_iterator pos = probabilities->begin(); 00180 00181 G4double probability = 0; 00182 probability = *(pos+index); 00183 00184 return probability; 00185 00186 }
G4int G4AugerTransition::FinalShellId | ( | ) | const |
const std::vector< G4int > * G4AugerTransition::TransitionOriginatingShellIds | ( | ) | const |
Definition at line 86 of file G4AugerTransition.cc.
00087 { 00088 00089 const std::vector<G4int>* dataSet = &transitionOriginatingShellIds; 00090 return dataSet; 00091 }