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