19 mZ0(0.0), mThickness(0.0)
32 if (mlayer->
GetZ0() >
z2)
break;
34 double z0 = mlayer->
GetZ0() < z1 ? z1 : mlayer->
GetZ0();
81 for(
int el=0; el<material->GetNelements(); el++) {
84 material->GetElementProp(ad, zd, wd, el);
92 G3DRELX(ad, zd, wd*material->GetDensity(), e0_kin, pgroup->
mass, de_dx);
95 de_sum += wd * de_dx * material->GetDensity() * mslice->
GetThickness();
102 if (material->nlmat > 1 || material->A[0])
104 double de_dx_ionization, de_dx_bremsstrahlung;
106 GDRELE(e0_kin, charge, material->POTL, material->FAC,
107 material->C, material->X0, material->X1, material->AA,
111 GBRELA(material->nlmat, material->wmat, material->A, material->Z,
114 material->AAVG, material->ZAVG, material->_density, e0_kin,
115 charge, de_dx_bremsstrahlung);
119 de_sum += (de_dx_ionization + de_dx_bremsstrahlung)*
120 material->_density*mslice->thickness;