#include #include #include #include #include #include #include "catima/catima.h" using std::cout; using std::endl; using catima::LN10; double logEmax = catima::logEmax-0.01; double logEmin = catima::logEmin+0.001; template struct EnergyTable{ constexpr EnergyTable():values(),num(N){ for(auto i=0;i0) cout << "\033[1;32mpassed\033[0m "< rel. dif = "<> projectiles = {{1,1},{4,2},{12,6},{238,92}}; bool fwrite = false; double eps = 0.005; comp_dedx(p,c_target,eps,fwrite,"dedx_p_c.dat"); comp_dedx(p,h_target,eps,fwrite,"dedx_p_h.dat"); comp_dedx(p,water,eps,fwrite,"dedx_p_water.dat"); comp_dedx(p,pb_target,eps,fwrite,"dedx_p_pb.dat"); comp_dedx(c,c_target,eps,fwrite,"dedx_c_c.dat"); comp_dedx(c,h_target,eps,fwrite,"dedx_c_h.dat"); comp_dedx(c,water,eps,fwrite,"dedx_c_water.dat"); comp_dedx(c,pb_target,eps,fwrite,"dedx_c_pb.dat"); comp_dedx(u,c_target,eps,fwrite,"dedx_u_c.dat"); comp_dedx(u,h_target,eps,fwrite,"dedx_u_h.dat"); comp_dedx(u,water,eps,fwrite,"dedx_u_water.dat"); comp_dedx(u,pb_target,eps,fwrite,"dedx_u_pb.dat"); return 0; }