Function wt::spectrum::response_spectrum_from_db

Function Documentation

inline auto wt::spectrum::response_spectrum_from_db(const wt_context_t &ctx, const std::string &name, const std::uint16_t channels, const bool bin = true)

Loads a response (QE) spectrum from database file “sensitivity/{name}”.

Parameters:

bin – Should convert the piecewise-linear spectrum to a binned (equal-spaced) spectrum?