diff --git a/catima.pyx b/catima.pyx index 3679721..f07df73 100644 --- a/catima.pyx +++ b/catima.pyx @@ -449,6 +449,12 @@ def energy_out(Projectile projectile, Material material, energy = None, Config c energy = projectile.T() return catimac.energy_out(projectile.cbase, energy, material.cbase, config.cbase) +def sezi_dedx_e(Projectile projectile, Target t): + return catimac.sezi_dedx_e(projectile.cbase, t.cbase) + +def bethek_dedx_e(Projectile projectile, Target t, Config c = default_config, Ipot=0.0): + return catimac.bethek_dedx_e(projectile.cbase, t.cbase,c.cbase,Ipot) + def lindhard(Projectile projectile): return catimac.bethek_lindhard(projectile.cbase); diff --git a/catimac.pxd b/catimac.pxd index 0e2b93f..149bfcf 100644 --- a/catimac.pxd +++ b/catimac.pxd @@ -88,6 +88,8 @@ cdef extern from "catima/catima.h" namespace "catima": cdef extern from "catima/calculations.h" namespace "catima": cdef double bethek_lindhard(const Projectile &p); cdef double bethek_lindhard_X(const Projectile &p); + cdef double bethek_dedx_e(Projectile &p,const Target &t, const Config &c, double I); + cdef double sezi_dedx_e(const Projectile &p, const Target &t); cdef double z_effective(const Projectile &p, const Target &t, const Config &c); cdef double z_eff_Pierce_Blann(double z, double beta); cdef double z_eff_Anthony_Landford(double pz, double beta, double tz);