51 "======================================================================="
54 "====== Crystal lattice data ========"
57 "======================================================================="
63 if (lattice.compare(0,1,
"(")==0)
66 filename = filename +
"_planes_";
70 else if (lattice.compare(0,1,
"<")==0)
73 filename = filename +
"_axes_";
79 filename = filename + lattice.substr(1,(lattice.length())-2) +
".dat";
84 filename =
"/" + filename;
90 filename = filePath + filename;
104 std::ifstream vfilein;
105 vfilein.open(filename);
107 if(!vfilein.is_open())
109 G4String outputMessage=
"Input file " +
122 fN0.push_back(var/cm3);
129 fU1.push_back(var*cm);
138 vfilein >> fNpointsx;
146 vfilein >> fDx >> fDy;
150 vfilein >> fNpointsx >> fNpointsy;
184 for(
G4int i=0; i<fNpointsx; i++)
187 vfilein >> ai >> bi >> ci >> di;
191 ci*unitIF, di*unitIF, i);
194 vfilein >> ai >> bi >> ci >> di;
198 ci*unitIF, di*unitIF, i);
201 vfilein >> ai >> bi >> ci >> di;
205 ci*unitIF, di*unitIF, i);
208 vfilein >> ai >> bi >> ci >> di;
212 ci*unitIF, di*unitIF, i);
217 vfilein >> ai >> bi >> ci >> di;
221 ci*unitIF, di*unitIF, i);
228 for(
G4int j=0; j<fNpointsy; j++)
230 for(
G4int i=0; i<fNpointsx+1; i++)
232 for(
G4int k=0; k<2; k++)
235 vfilein >> ai3D >> bi3D >> ci3D;
242 vfilein >> ai3D >> bi3D >> ci3D;
245 fElectricFieldX->SetCoefficients2D(ai3D*unitIF, bi3D*unitIF, ci3D*unitIF,
249 vfilein >> ai3D >> bi3D >> ci3D;
252 fElectricFieldY->SetCoefficients2D(ai3D*unitIF, bi3D*unitIF, ci3D*unitIF,
256 vfilein >> ai3D >> bi3D >> ci3D;
259 fNucleiDensity[0]->SetCoefficients2D(ai3D*unitIF, bi3D*unitIF, ci3D*unitIF,
263 vfilein >> ai3D >> bi3D >> ci3D;
272 vfilein >> ai3D >> bi3D >> ci3D;
288 G4double alphahbarc2=std::pow(CLHEP::fine_structure_const*CLHEP::hbarc ,2.);
289 fK30=2.*CLHEP::pi*alphahbarc2/CLHEP::electron_mass_c2;
293 fRF.push_back((std::pow(9*CLHEP::pi*CLHEP::pi/128/fZ1[i],1/3.))
294 *0.5291772109217*angstrom);
296 fTetamax0.push_back(CLHEP::hbarc/(fR0*std::pow(fAN[i],1./3.)));
298 fPu11.push_back(std::pow(fU1[i]/CLHEP::hbarc,2.));
300 fK20.push_back(alphahbarc2*4*CLHEP::pi*fN0[i]*fZ1[i]*fZ1[i]);
302 fK40.push_back(3.76*std::pow(CLHEP::fine_structure_const*fZ1[i],2.));
304 fKD.push_back(
fK30*fZ1[i]*fN0[i]);