#include #include #include #include #include #include #include #include #include #include #include"meyer.h" void GFunctions(double*,double*, const double tau); meyer GET; int main() { // DECLARATION OF MEYER's PARAMETERS /* Meyer's p255: "We consider a beam of initially parallel particles with mass m1 and atomic number Z1 which penetrates a material layer of thickness t with N atoms per unit volume of mass m2 and atomic number Z2. We assume that each scattering centre will be effective according to the scattering cross section dsigma/dŋ=¶a²f(ŋ)/ŋ² within a spherical volume of radius r0 */ double a, a0, N; // screnqing parameter a double Z1, Z2, D; // charges numbers Z double epsilon, b; // reduced energy epsilon double mass1, mass2; // masses of incident & target particles double v; // velocity of incident particle double eta, theta; // eta = epsilon*sin(theta/2), (theta, scatt. angle) // cross section variable by Lindhard, Nielsen and Scharff double eSquare = 1.44E-10; // squared electric charge of electron in keV*cm double tau,thetaSchlange, thick; double Energy; std::cout<< "thickness? in µm/cm²" << std::endl; std::cin>>thick; thick=thick*1.0e-6/2;// density= 2g/cm³, // we want the conversion of thick in centimeter! std::cout<<"Enter energy in keV: "; std::cin>>Energy; // meyer's functions double g1,g2; double f1,f2; // EXPRESSION OF MEYER's PARAMETERS // The screening parameter // (Z1 = 1, Z2 = 6, ScreeningPar = 2.5764E-9) Z1 = 1; Z2 = 6; a0=0.529e-8;//unit centimeter D= exp(2/3*log(Z1))+exp(2/3*log(Z2)); a=0.885*a0/sqrt(D);//the screening parameter // The reduced energy mass1=1/9; mass2=12; // b= 2*Z1*Z2*eSquare*(mass1+mass2)/(mass1*mass2*v*v); //b= Z1*Z2 * e²[keV*cm] * (m1+m2)/m2 * 1/Energy[keV] b= Z1*Z2*eSquare*(mass1+mass2)/(mass2*Energy); epsilon = a/b; std::cout<<"\n€: "<>thetaSchlange; GET.GFunctions(&g1,&g2,tau); std::cout<< "g1("<