#include <G4eIonisationParameters.hh>
Definition at line 61 of file G4eIonisationParameters.hh.
◆ G4eIonisationParameters()
G4eIonisationParameters::G4eIonisationParameters |
( |
G4int |
minZ = 1 , |
|
|
G4int |
maxZ = 99 |
|
) |
| |
◆ ~G4eIonisationParameters()
G4eIonisationParameters::~G4eIonisationParameters |
( |
| ) |
|
Definition at line 71 of file G4eIonisationParameters.cc.
72{
73
74 std::map<G4int,G4VEMDataSet*,std::less<G4int> >::iterator pos;
75
76 for (pos = param.begin(); pos != param.end(); ++pos)
77 {
79 delete dataSet;
80 }
81
82 for (pos = excit.begin(); pos != excit.end(); ++pos)
83 {
85 delete dataSet;
86 }
87
88 activeZ.clear();
89}
◆ Excitation()
Definition at line 125 of file G4eIonisationParameters.cc.
126{
128 std::map<G4int,G4VEMDataSet*,std::less<G4int> >::const_iterator pos;
129
130 pos = excit.find(Z);
131 if (pos!= excit.end()) {
133
135 G4double ee = std::max(ener.front(),std::min(ener.back(),e));
137 } else {
138 G4cout <<
"WARNING: G4IonisationParameters::Excitation "
139 << "did not find ID = "
141 }
142
143 return value;
144}
G4DLLIMPORT std::ostream G4cout
virtual const G4DataVector & GetEnergies(G4int componentId) const =0
virtual G4double FindValue(G4double x, G4int componentId=0) const =0
Referenced by G4eIonisationSpectrum::Excitation().
◆ Parameter()
Definition at line 92 of file G4eIonisationParameters.cc.
95{
97 G4int id = Z*100 + parameterIndex;
98 std::map<G4int,G4VEMDataSet*,std::less<G4int> >::const_iterator pos;
99
100 pos = param.find(id);
101 if (pos!= param.end()) {
104
105 if(shellIndex < nShells) {
108 G4double ee = std::max(ener.front(),std::min(ener.back(),e));
110 } else {
111 G4cout <<
"WARNING: G4IonisationParameters::FindParameter "
112 << "has no parameters for shell= " << shellIndex
113 << "; Z= " << Z
115 }
116 } else {
117 G4cout <<
"WARNING: G4IonisationParameters::Parameter "
118 << "did not find ID = "
120 }
121
122 return value;
123}
virtual const G4VEMDataSet * GetComponent(G4int componentId) const =0
virtual size_t NumberOfComponents(void) const =0
Referenced by G4eIonisationSpectrum::AverageEnergy(), G4eIonisationSpectrum::Probability(), and G4eIonisationSpectrum::SampleEnergy().
◆ PrintData()
void G4eIonisationParameters::PrintData |
( |
| ) |
const |
Definition at line 384 of file G4eIonisationParameters.cc.
385{
387 G4cout <<
"===== G4eIonisationParameters =====" <<
G4endl;
389
390 size_t nZ = activeZ.size();
391 std::map<G4int,G4VEMDataSet*,std::less<G4int> >::const_iterator pos;
392
393 for (size_t i=0; i<nZ; i++) {
395
396 for (size_t j=0; j<length; j++) {
397
398 G4int index = Z*100 + j;
399
400 pos = param.find(index);
401 if (pos!= param.end()) {
404
405 for (size_t k=0; k<nShells; k++) {
406
407 G4cout <<
"===== Z= " << Z <<
" shell= " << k
408 << " parameter[" << j << "] ====="
412 }
413 }
414 }
415 }
416 G4cout <<
"====================================" <<
G4endl;
417}
virtual void PrintData(void) const =0
Referenced by G4eIonisationSpectrum::PrintData().
The documentation for this class was generated from the following files: