SourceXtractorPlusPlus
0.14
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SEImplementation
SEImplementation
Plugin
AutoPhotometry
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>
28
#include "
SEImplementation/Plugin/AutoPhotometry/AutoPhotometry.h
"
29
30
namespace
SourceXtractor {
31
37
class
AutoPhotometryArray
:
public
Property
{
38
public
:
39
43
virtual
~AutoPhotometryArray
() =
default
;
44
45
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
55
const
std::vector<SeFloat>
&
getFluxes
()
const
{
56
return
m_fluxes
;
57
}
58
59
const
std::vector<SeFloat>
&
getFluxErrors
()
const
{
60
return
m_flux_errors
;
61
}
62
63
const
std::vector<SeFloat>
&
getMags
()
const
{
64
return
m_mags
;
65
}
66
67
const
std::vector<SeFloat>
&
getMagErrors
()
const
{
68
return
m_mag_errors
;
69
}
70
71
const
std::vector<Flags>
&
getFlags
()
const
{
72
return
m_flags
;
73
}
74
75
private
:
76
std::vector<SeFloat>
m_fluxes
;
77
std::vector<SeFloat>
m_flux_errors
;
78
std::vector<SeFloat>
m_mags
;
79
std::vector<SeFloat>
m_mag_errors
;
80
std::vector<Flags>
m_flags
;
81
};
82
83
}
// end SourceXtractor
84
85
#endif // _SEIMPLEMENTATION_PLUGIN_AUTOPHOTOMETRY_AUTOPHOTOMETRYARRAY_H_
SourceXtractor::AutoPhotometryArray::getFluxes
const std::vector< SeFloat > & getFluxes() const
Definition:
AutoPhotometryArray.h:55
SourceXtractor::AutoPhotometryArray::~AutoPhotometryArray
virtual ~AutoPhotometryArray()=default
Destructor.
SourceXtractor::AutoPhotometryArray::getMags
const std::vector< SeFloat > & getMags() const
Definition:
AutoPhotometryArray.h:63
AutoPhotometry.h
SourceXtractor::AutoPhotometryArray::m_flags
std::vector< Flags > m_flags
Definition:
AutoPhotometryArray.h:80
SourceXtractor::AutoPhotometryArray::getMagErrors
const std::vector< SeFloat > & getMagErrors() const
Definition:
AutoPhotometryArray.h:67
SourceXtractor::Property
Base class for all Properties. (has no actual content)
Definition:
Property.h:33
std::vector::push_back
T push_back(T...args)
SourceXtractor::AutoPhotometryArray
Definition:
AutoPhotometryArray.h:37
m
constexpr double m
SourceXtractor::AutoPhotometryArray::getFlags
const std::vector< Flags > & getFlags() const
Definition:
AutoPhotometryArray.h:71
SourceXtractor::AutoPhotometryArray::AutoPhotometryArray
AutoPhotometryArray(const std::vector< AutoPhotometry > &measurements)
Definition:
AutoPhotometryArray.h:45
SourceXtractor::AutoPhotometryArray::m_mags
std::vector< SeFloat > m_mags
Definition:
AutoPhotometryArray.h:78
SourceXtractor::AutoPhotometryArray::m_fluxes
std::vector< SeFloat > m_fluxes
Definition:
AutoPhotometryArray.h:76
std::vector
STL class.
SourceXtractor::AutoPhotometryArray::getFluxErrors
const std::vector< SeFloat > & getFluxErrors() const
Definition:
AutoPhotometryArray.h:59
SourceXtractor::AutoPhotometryArray::m_mag_errors
std::vector< SeFloat > m_mag_errors
Definition:
AutoPhotometryArray.h:79
SourceXtractor::AutoPhotometryArray::m_flux_errors
std::vector< SeFloat > m_flux_errors
Definition:
AutoPhotometryArray.h:77
Generated by
1.8.5