Skip to content
Snippets Groups Projects
Commit db5ebcee authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Refactor: moved some methods of IInterferenceFunctionStrategy to private

parent 9281bd05
No related branches found
No related tags found
No related merge requests found
......@@ -46,27 +46,36 @@ protected:
virtual double evaluateForList(const cvector_t& k_i,
const Bin1DCVector& k_f_bin,
const std::vector<complex_t> &ff_list) const=0;
//! Returns q-vector from k_i and the bin of k_f
cvector_t getQ(const cvector_t& k_i, const Bin1DCVector& k_f_bin) const;
SafePointerVector<FormFactorInfo> m_ff_infos; //!< form factor info
SafePointerVector<IInterferenceFunction> m_ifs; //!< interference functions
SimulationParameters m_sim_params; //!< simulation parameters
private:
//! Returns mean form factor, possibly including their position information
complex_t meanFormFactor(const cvector_t& k_i, const Bin1DCVector& k_f_bin,
Bin1D alpha_f_bin, bool use_position=false) const;
//! Returns mean squared form factor
double meanSquaredFormFactor(const cvector_t& k_i,
const Bin1DCVector& k_f_bin, Bin1D alpha_f_bin) const;
//! Constructs one list of evaluated form factors to be used in subsequent
//! calculations
void calculateFormFactorList(const cvector_t& k_i,
const Bin1DCVector& k_f_bin, Bin1D alpha_f_bin) const;
//! Constructs lists of evaluated form factors to be used in subsequent
//! calculations
void calculateFormFactorLists(const cvector_t& k_i,
const Bin1DCVector& k_f_bin, Bin1D alpha_f_bin, Bin1D phi_f_bin) const;
//! Clears the cached form factor lists
void clearFormFactorLists() const;
//! Returns q-vector from k_i and the bin of k_f
cvector_t getQ(const cvector_t& k_i, const Bin1DCVector& k_f_bin) const;
SafePointerVector<FormFactorInfo> m_ff_infos; //!< form factor info
SafePointerVector<IInterferenceFunction> m_ifs; //!< interference functions
SimulationParameters m_sim_params; //!< simulation parameters
//! cached form factor evaluations
mutable std::vector<complex_t> m_ff00, m_ff01, m_ff10, m_ff11;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment