SourceXtractorPlusPlus  0.11
Please provide a description of the project.
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 
30 namespace SourceXtractor {
31 
37 class AutoPhotometryArray : public Property {
38 public:
39 
43  virtual ~AutoPhotometryArray() = default;
44 
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 
63  const std::vector<SeFloat> &getMags() const {
64  return m_mags;
65  }
66 
68  return m_mag_errors;
69  }
70 
71  const std::vector<Flags> &getFlags() const {
72  return m_flags;
73  }
74 
75 private:
81 };
82 
83 } // end SourceXtractor
84 
85 #endif // _SEIMPLEMENTATION_PLUGIN_AUTOPHOTOMETRY_AUTOPHOTOMETRYARRAY_H_
const std::vector< SeFloat > & getMags() const
const std::vector< SeFloat > & getMagErrors() const
virtual ~AutoPhotometryArray()=default
Destructor.
Base class for all Properties. (has no actual content)
Definition: Property.h:33
T push_back(T... args)
constexpr double m
const std::vector< SeFloat > & getFluxErrors() const
AutoPhotometryArray(const std::vector< AutoPhotometry > &measurements)
const std::vector< Flags > & getFlags() const
STL class.
const std::vector< SeFloat > & getFluxes() const