114 if (materialTable == 0)
115 G4Exception(
"G4BremsstrahlungParameters::LoadData",
121 for (
G4int mmLocal=0; mmLocal<100; mmLocal++) {
125 for (
G4int mLocal=0; mLocal<nMaterials; mLocal++) {
131 for (
G4int iEl=0; iEl<nElements; iEl++) {
132 G4Element* element = (*elementVector)[iEl];
147 char* path = getenv(
"G4LEDATA");
150 G4Exception(
"G4BremsstrahlungParameters::LoadData",
157 std::ifstream file_a(name_a);
158 std::filebuf* lsdp_a = file_a.rdbuf();
160 if (! (lsdp_a->is_open()) )
162 G4String stringConversion2(
"G4BremsstrahlungParameters::LoadData");
163 G4String excep = stringConversion2 + name_a;
164 G4Exception(
"G4BremsstrahlungParameters::LoadData",
178 std::vector<G4DataVector*>
a;
187 file_a >> ener >> sum;
194 }
else if (ener == (
G4double)(-1)) {
202 for (
size_t k=0; k<
length; ++k) {
204 G4int id = z*length + k;
207 size_t eSize = e.size();
208 for (
size_t sLocal=0; sLocal<eSize; sLocal++) {
209 eVector->push_back(e[sLocal]);
215 for (
size_t j=0; j<
length; j++) {
226 for (
size_t j=0; j<
length; ++j) {
231 if(ener > 1000.) ener = 1000.;
233 a[length-1]->push_back(sum);
235 for (
size_t j=0; j<length-1; j++) {
238 a[j]->push_back(qRead);
std::vector< G4Element * > G4ElementVector
static G4MaterialTable * GetMaterialTable()
std::vector< G4Material * > G4MaterialTable
float electron_Compton_length
static size_t GetNumberOfMaterials()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
int classic_electr_radius
G4bool contains(const G4double &) const
size_t GetNumberOfElements() const
const G4ElementVector * GetElementVector() const
G4double GetTotNbOfElectPerVolume() const
std::map< G4int, G4VEMDataSet *, std::less< G4int > > param