95 G4int id =
Z*100 + parameterIndex;
102 if(shellIndex < nShells) {
108 G4cout <<
"WARNING: G4IonisationParameters::FindParameter "
109 <<
"has no parameters for shell= " << shellIndex
114 G4cout <<
"WARNING: G4IonisationParameters::Parameter "
115 <<
"did not find ID = "
135 G4cout <<
"WARNING: G4IonisationParameters::Excitation "
136 <<
"did not find ID = "
154 if (materialTable ==
nullptr)
160 for (
G4int mLocal=0; mLocal<nMaterials; mLocal++) {
164 const size_t nElements =
material->GetNumberOfElements();
166 for (
size_t iEl=0; iEl<nElements; iEl++) {
167 G4double Z = (*elementVector)[iEl]->GetZ();
174 char* path = std::getenv(
"G4LEDATA");
177 G4Exception(
"G4BremsstrahlungParameters::LoadData",
190 for (
size_t i=0; i<nZ; i++) {
193 std::ostringstream ost;
194 ost << pathString <<
Z <<
".dat";
198 std::filebuf* lsdp =
file.rdbuf();
200 if (! (lsdp->is_open()) ) {
218 std::vector<G4VEMDataSet*> p;
219 for (
size_t k=0; k<
length; k++)
223 p.push_back(composite);
227 std::vector<G4DataVector*> a;
236 G4String excep(
"invalid data file");
249 for (
size_t j=0; j<
length; ++j) {
254 a[0]->push_back(sum);
255 for (
size_t j=1; j<
length; ++j) {
258 a[j]->push_back(qRead);
264 for (
size_t k=0; k<
length; k++) {
271 size_t eSize = e.size();
272 for (
size_t sLocal=0; sLocal<eSize; sLocal++) {
273 eVector->push_back(e[sLocal]);
277 p[k]->AddComponent(set);
288 for (
size_t kk=0; kk<
length; kk++)
297 std::ifstream file_a(name_a);
298 std::filebuf* lsdp_a = file_a.rdbuf();
301 std::ifstream file_b(name_b);
302 std::filebuf* lsdp_b = file_b.rdbuf();
304 if (! (lsdp_a->is_open()) ) {
310 if (! (lsdp_b->is_open()) ) {
332 file_a >> ener >> sig;
333 file_b >> ener1 >> sig1;
336 G4cout <<
"G4eIonisationParameters: problem in excitation data "
338 <<
" ener1= " << ener1
347 }
else if (ener == -1) {
358 size_t eSize = e.size();
359 for (
size_t sLocal2=0; sLocal2<eSize; sLocal2++) {
360 eVector->push_back(e[sLocal2]);
361 dVector->push_back(d[sLocal2]);
371 e.push_back(ener*
MeV);
372 d.push_back(sig1*sig*
barn*
MeV);
374 }
while (ener != -2);
385 G4cout <<
"===== G4eIonisationParameters =====" <<
G4endl;
389 std::map<G4int,G4VEMDataSet*,std::less<G4int> >::const_iterator
pos;
391 for (
size_t i=0; i<nZ; i++) {
394 for (
size_t j=0; j<
length; j++) {
403 for (
size_t k=0; k<nShells; k++) {
405 G4cout <<
"===== Z= " <<
Z <<
" shell= " << k
406 <<
" parameter[" << j <<
"] ====="
414 G4cout <<
"====================================" <<
G4endl;
static const G4double pos
std::vector< const G4Element * > G4ElementVector
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::vector< G4Material * > G4MaterialTable
static constexpr double barn
static constexpr double MeV
G4GLOB_DLL std::ostream G4cout
G4bool contains(const G4double &) const
static size_t GetNumberOfMaterials()
static G4MaterialTable * GetMaterialTable()
virtual const G4VEMDataSet * GetComponent(G4int componentId) const =0
virtual const G4DataVector & GetEnergies(G4int componentId) const =0
virtual G4double FindValue(G4double x, G4int componentId=0) const =0
virtual size_t NumberOfComponents(void) const =0
virtual void PrintData(void) const =0
G4eIonisationParameters()
std::map< G4int, G4VEMDataSet *, std::less< G4int > > param
G4double Excitation(G4int Z, G4double e) const
~G4eIonisationParameters()
G4double Parameter(G4int Z, G4int shellIndex, G4int parameterIndex, G4double e) const
std::map< G4int, G4VEMDataSet *, std::less< G4int > > excit
G4double energy(const ThreeVector &p, const G4double m)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
const char * name(G4int ptype)