58 "C" ,
"N" ,
"O" ,
"F" ,
"Ne",
"Na",
"Mg",
"Al",
"Si",
"P" ,
"S",
"Cl",
"Ar",
"K" ,
"Ca",
"Sc",
59 "Ti",
"V" ,
"Cr",
"Mn",
"Fe",
"Co",
"Ni",
"Cu",
"Zn",
"Ga",
"Ge",
"As",
"Se",
"Br",
"Kr",
"Rb",
60 "Sr",
"Y" ,
"Zr",
"Nb",
"Mo",
"Tc",
"Ru",
"Rh",
"Pd",
"Ag",
"Cd",
"In",
"Sn",
"Sb",
"Te",
"I" ,
61 "Xe",
"Cs",
"Ba",
"La",
"Ce",
"Pr",
"Nd",
"Pm",
"Sm",
"Eu",
"Gd",
"Tb",
"Dy",
"Ho",
"Er",
"Tm",
62 "Yb",
"Lu",
"Hf",
"Ta",
"W" ,
"Re",
"Os",
"Ir",
"Pt",
"Au",
"Hg",
"Tl",
"Pb",
"Bi",
"Po",
"At",
63 "Rn",
"Fr",
"Ra",
"Ac",
"Th",
"Pa",
"U" ,
"Np",
"Pu",
"Am",
"Cm",
"Bk",
"Cf"};
84 G4int ekinIndxLow = 0;
91 ekinIndxLow = (
G4int)remRfaction;
92 remRfaction -= ekinIndxLow;
96 ekinIndxLow = (
G4int)remRfaction;
97 remRfaction -= ekinIndxLow;
104 if (remRfaction>0.) {
131 for (
size_t imc=0; imc<numMatCuts; ++imc) {
139 size_t numElems = elemVect->size();
140 for (
size_t ielem=0; ielem<numElems; ++ielem) {
141 const G4Element *elem = (*elemVect)[ielem];
163 for (
size_t imc=0; imc<numMatCuts; ++imc) {
184 char* tmppath = getenv(
"G4LEDATA");
186 G4Exception(
"G4GSPWACorrection::LoadDataElement()",
"em0006",
188 "Environment variable G4LEDATA not defined");
191 std::string path(tmppath);
193 path +=
"/msc_GS/PWACor/el/";
195 path +=
"/msc_GS/PWACor/pos/";
199 if (!infile.is_open()) {
200 std::string msg =
" Problem while trying to read " + fname +
" data file.\n";
224 constexpr
G4double finstrc2 = 5.325135453E-5;
227 constFactor *= constFactor;
249 for (
G4int ielem=0; ielem<numElems; ++ielem) {
250 G4double zet = (*elemVect)[ielem]->GetZ();
254 G4double iwa = (*elemVect)[ielem]->GetN();
255 G4double ipz = nbAtomsPerVolVect[ielem]/totNbAtomsPerVol;
258 ze += dum*(-2.0/3.0)*
G4Log(zet);
259 zx += dum*
G4Log(1.0+3.34*finstrc2*zet*zet);
264 moliereBc = const1*density*zs/sa*
G4Exp(ze/zs)/
G4Exp(zx/zs);
265 moliereXc2 = const2*density*zs/sa;
281 for (
G4int ielem=0; ielem<numElems; ++ielem) {
282 const G4Element *elem = (*elemVect)[ielem];
292 G4double nZZPlus1 = nbAtomsPerVolVect[ielem]*zet*(zet+1.0)/totNbAtomsPerVol;
304 mcScrCF *= constFactor*Z23/(4.*pt2);
322 if (ielem==numElems-1) {
327 perMat->
fCorScreening[iek] = constFactor*dumScr*moliereBc/moliereXc2;
331 G4double scrCorTed = constFactor*dumScr/(4.*pt2);
337 G4double G2PerG1 = 3.*(1.+scrCorTed)*((1.+2.*scrCorTed)*dum0-2.)/((1.+scrCorTed)*dum0-1.);
static constexpr G4double gMaxBeta2
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
static size_t GetNumberOfMaterials()
static constexpr double cm3
G4GSPWACorrections(G4bool iselectron=true)
std::vector< G4double > fCorScreening
static constexpr double g
const G4ElementVector * GetElementVector() const
std::vector< DataPerMaterial * > fDataPerMaterial
static constexpr G4double gMinEkin
const G4double * GetVecNbOfAtomsPerVolume() const
void GetPWACorrectionFactors(G4double logekin, G4double beta2, G4int matindx, G4double &corToScr, G4double &corToQ1, G4double &corToG2PerG1)
G4double G4Log(G4double x)
static constexpr G4int gMaxZet
const XML_Char const XML_Char * data
static constexpr double cm
static constexpr double electron_mass_c2
static constexpr double MeV
void ClearDataPerMaterial()
static constexpr G4int gNumBeta2
size_t GetTableSize() const
static constexpr G4int gNumEkin
static G4ProductionCutsTable * GetProductionCutsTable()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::vector< G4double > fCorSecondMoment
void InitDataPerElement()
std::vector< G4Element * > G4ElementVector
void ClearDataPerElement()
void LoadDataElement(const G4Element *)
static const std::string gElemSymbols[]
std::vector< G4double > fCorFirstMoment
void InitDataMaterial(const G4Material *)
const G4MaterialCutsCouple * GetMaterialCutsCouple(G4int i) const
const G4Material * GetMaterial() const
G4double GetTotNbOfAtomsPerVolume() const
static constexpr double fine_structure_const
void InitDataPerMaterials()
size_t GetNumberOfElements() const
static constexpr G4double gMidEkin
G4double GetDensity() const
std::vector< DataPerMaterial * > fDataPerElement