72{
73 const G4int arrayDim = 980;
74
75
76 betaArray[0] = 0.02;
77
78 betaArray[1] = 0.001;
79
80 betaArray[2] = arrayDim - 1;
81
82
83 for(
G4int level = 0; level < 2; level++){
84
85 char nameChar0[100] = "ftab0.dat";
86 char nameChar1[100] = "ftab1.dat";
87
89 if(level == 0) filename = nameChar0;
90 if(level == 1) filename = nameChar1;
91
92 char* path = getenv("G4LEDATA");
93 if (!path)
94 {
95 G4String excep =
"G4EMDataSet - G4LEDATA environment variable not set";
96 G4Exception(
"G4PhotoElectricAngularGeneratorPolarized::G4PhotoElectricAngularGeneratorPolarized",
98 return;
99 }
100
102 G4String dirFile = pathString +
"/photoelectric_angular/" + filename;
103 std::ifstream infile(dirFile);
104 if (!infile.is_open())
105 {
106 G4String excep =
"data file: " + dirFile +
" not found";
107 G4Exception(
"G4PhotoElectricAngularGeneratorPolarized::G4PhotoElectricAngularGeneratorPolarized",
109 return;
110 }
111
112
113 G4float aRead=0,cRead=0, beta=0;
114 for(
G4int i=0 ; i<arrayDim ;i++){
115
116 infile >> beta >> aRead >> cRead;
117 aMajorantSurfaceParameterTable[i][level] = aRead;
118 cMajorantSurfaceParameterTable[i][level] = cRead;
119 }
120 infile.close();
121 }
122}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)