Class PhotoZ

Class Documentation

class PhotoZ

Class managing photo-z computation.

The PhotoZ class is the central executor of photo-z estimation : it manages most configuration parameters, reads synthetic magnitudes inputs and object catalogs, performs the fit, and is in charge of producing results and saving them to files.

Public Functions

PhotoZ(keymap &key_analysed)
inline virtual ~PhotoZ()
vector<double> compute_offsets(vector<onesource*>)
vector<double> run_autoadapt(vector<onesource*>)
void run_photoz(vector<onesource*> sources, const vector<double> &a0)
string prep_header(vector<string> outkeywords)
void write_outputs(vector<onesource*> sources, const time_t &ti1)
void read_lib(vector<SED*> &fullLib, int &ind, int nummodpre[3], const string libName, string &filtname, vector<int> emMod, int &babs)
void check_consistency(keymap &keys)
void readsource(onesource *oneObj, const string line)
inline onesource *yield(const int nobj, const string line)
vector<onesource*> read_autoadapt_sources()
vector<onesource*> read_photoz_sources()
void prep_data(vector<onesource*> sources)
void prep_data(onesource *oneObj)
vector<size_t> validLib(const double &redshift, const bool &ir = false)

Return the indexes over zlib vector on which to run the fit.

Parameters:
  • redshift – the selected redshift

  • ir – whether the selection is done on the main template library or on the IR one.

Returns:

Vector of indexes for templates set with redshift as redshift.

Public Members

vector<vector<double>> flux
vector<vector<double>> fluxIR
vector<double> zLib
vector<double> zLibIR
vector<SED*> fullLib
vector<SED*> fullLibIR
vector<SED*> lightLib
vector<flt> allFilters
vector<double> gridz
vector<string> outkeywords
vector<string> pdftype
int imagm
time_t ti1
string outputHeader
string outpara