EMAN2
Static Public Member Functions | Private Attributes | Static Private Attributes
ctf_store Class Reference

List of all members.

Static Public Member Functions

static void init (int winsize, const Ctf *ctf)
static float get_ctf (int r2, int i, int j)

Private Attributes

static int m_winsize2
static int m_vecsize

Static Private Attributes

static int m_winsize
static float m_cs
static float m_voltage
static float m_pixel
static float m_ampcont
static float m_bfactor
static float m_defocus
static float m_dza
static float m_azz

Detailed Description

Definition at line 1687 of file emdata_sparx.cpp.


Member Function Documentation

static float ctf_store::get_ctf ( int  r2,
int  i,
int  j 
) [inline, static]

Definition at line 1708 of file emdata_sparx.cpp.

References sqrt(), and tf().

                                                {
                float  ak = std::sqrt( r2/float(m_winsize2) )/m_pixel;
                if(m_dza == 0.0f)  return Util::tf( m_defocus, ak, m_voltage, m_cs, m_ampcont, m_bfactor, 1);
                else {
                        float az = atan2(float(j), float(i));
                        float dzz = m_defocus - m_dza/2.0f*sin(2*(az+m_azz*M_PI/180.0f));
                        return Util::tf( dzz, ak, m_voltage, m_cs, m_ampcont, m_bfactor, 1);
                }
        }
static void ctf_store::init ( int  winsize,
const Ctf ctf 
) [inline, static]

Definition at line 1691 of file emdata_sparx.cpp.

References EMAN::Ctf::to_dict().

Referenced by EMAN::EMData::nn_ctf(), EMAN::EMData::nn_ctf_applied(), EMAN::EMData::nn_ctfw(), and EMAN::EMData::nn_SSNR_ctf().

                                                    {
                Dict params = ctf->to_dict();

                m_winsize = winsize;

                m_voltage = params["voltage"];
                m_pixel   = params["apix"];
                m_cs      = params["cs"];
                m_ampcont = params["ampcont"];
                m_bfactor = params["bfactor"];
                m_defocus = params["defocus"];
                m_dza     = params["dfdiff"];
                m_azz     = params["dfang"];
                m_winsize2= m_winsize*m_winsize;
                m_vecsize = m_winsize2/4;
    }

Member Data Documentation

float ctf_store::m_ampcont [static, private]

Definition at line 1724 of file emdata_sparx.cpp.

float ctf_store::m_azz [static, private]

Definition at line 1728 of file emdata_sparx.cpp.

float ctf_store::m_bfactor [static, private]

Definition at line 1725 of file emdata_sparx.cpp.

float ctf_store::m_cs [static, private]

Definition at line 1721 of file emdata_sparx.cpp.

float ctf_store::m_defocus [static, private]

Definition at line 1726 of file emdata_sparx.cpp.

float ctf_store::m_dza [static, private]

Definition at line 1727 of file emdata_sparx.cpp.

float ctf_store::m_pixel [static, private]

Definition at line 1723 of file emdata_sparx.cpp.

int ctf_store::m_vecsize [private]

Definition at line 1720 of file emdata_sparx.cpp.

float ctf_store::m_voltage [static, private]

Definition at line 1722 of file emdata_sparx.cpp.

int ctf_store::m_winsize [static, private]

Definition at line 1720 of file emdata_sparx.cpp.

int ctf_store::m_winsize2 [private]

Definition at line 1720 of file emdata_sparx.cpp.


The documentation for this class was generated from the following file: