SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
AutoPhotometryArray.h
Go to the documentation of this file.
1
17/*
18 * AutoPhotometryArray.h
19 *
20 * Created on: Nov 23, 2018
21 * Author: Alejandro Alvarez Ayllon
22 */
23
24#ifndef _SEIMPLEMENTATION_PLUGIN_AUTOPHOTOMETRY_AUTOPHOTOMETRYARRAY_H_
25#define _SEIMPLEMENTATION_PLUGIN_AUTOPHOTOMETRY_AUTOPHOTOMETRYARRAY_H_
26
27#include <vector>
29
30namespace SourceXtractor {
31
38public:
39
43 virtual ~AutoPhotometryArray() = default;
44
45 explicit AutoPhotometryArray(const std::vector<AutoPhotometry> &measurements) {
46 for (auto& m : measurements) {
47 m_fluxes.push_back(m.getFlux());
48 m_flux_errors.push_back(m.getFluxError());
49 m_mags.push_back(m.getMag());
50 m_mag_errors.push_back(m.getMagError());
51 m_flags.push_back(m.getFlags());
52 }
53 }
54
56 return m_fluxes;
57 }
58
60 return m_flux_errors;
61 }
62
64 return m_mags;
65 }
66
68 return m_mag_errors;
69 }
70
72 return m_flags;
73 }
74
75private:
81};
82
83} // end SourceXtractor
84
85#endif // _SEIMPLEMENTATION_PLUGIN_AUTOPHOTOMETRY_AUTOPHOTOMETRYARRAY_H_
virtual ~AutoPhotometryArray()=default
Destructor.
AutoPhotometryArray(const std::vector< AutoPhotometry > &measurements)
const std::vector< SeFloat > & getFluxErrors() const
const std::vector< Flags > & getFlags() const
const std::vector< SeFloat > & getMags() const
const std::vector< SeFloat > & getFluxes() const
const std::vector< SeFloat > & getMagErrors() const
Base class for all Properties. (has no actual content).
Definition Property.h:33