SourceXtractorPlusPlus
0.13
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
src
lib
Plugin
AutoPhotometry
AutoPhotometryConfig.cpp
Go to the documentation of this file.
1
17
/*
18
* AperturePhotometryConfig.cpp
19
*
20
* Created on: Jul 18, 2018
21
* Author: mkuemmel@usm.lmu.de
22
*/
23
24
#include "
SEUtils/Types.h
"
25
26
#include "
Configuration/ProgramOptionsHelper.h
"
27
#include "
SEImplementation/Plugin/AutoPhotometry/AutoPhotometryConfig.h
"
28
29
namespace
po = boost::program_options;
30
using
poh
=
Euclid::Configuration::ProgramOptionsHelper
;
31
32
namespace
SourceXtractor {
33
34
namespace
{
35
const
std::string
AUTO_KRON_FACTOR {
"auto-kron-factor"
};
36
const
std::string
AUTO_KRON_MINRAD {
"auto-kron-min-radius"
};
37
}
38
39
auto
AutoPhotometryConfig::getProgramOptions
() ->
std::map<std::string, OptionDescriptionList>
{
40
return
{{
"Auto (Kron) photometry options"
, {
41
{AUTO_KRON_FACTOR.c_str(), po::value<double>()->default_value(2.5),
"Scale factor for AUTO (Kron) photometry"
},
42
{AUTO_KRON_MINRAD.c_str(), po::value<double>()->default_value(3.5),
"Minimum radius for AUTO (Kron) photometry"
},
43
}}};
44
}
45
46
void
AutoPhotometryConfig::initialize
(
const
UserValues& args) {
47
m_kron_factor
=
SeFloat
(args.at(AUTO_KRON_FACTOR).as<
double
>());;
48
m_kron_minrad
=
SeFloat
(args.at(AUTO_KRON_MINRAD).as<
double
>());;
49
}
50
51
SeFloat
AutoPhotometryConfig::getAutoKronFactor
()
const
{
52
return
m_kron_factor
;
53
}
54
SeFloat
AutoPhotometryConfig::getAutoKronMinrad
()
const
{
55
return
m_kron_minrad
;
56
}
57
58
}
// SourceXtractor namespace
SourceXtractor::AutoPhotometryConfig::initialize
void initialize(const UserValues &args) override
Definition:
AutoPhotometryConfig.cpp:46
Types.h
SourceXtractor::AutoPhotometryConfig::getProgramOptions
std::map< std::string, OptionDescriptionList > getProgramOptions() override
Definition:
AutoPhotometryConfig.cpp:39
Euclid::Configuration::ProgramOptionsHelper
SourceXtractor::AutoPhotometryConfig::getAutoKronFactor
SeFloat getAutoKronFactor() const
Definition:
AutoPhotometryConfig.cpp:51
SourceXtractor::SeFloat
SeFloat32 SeFloat
Definition:
Types.h:32
std::map
STL class.
std::string
STL class.
AutoPhotometryConfig.h
SourceXtractor::AutoPhotometryConfig::m_kron_factor
SeFloat m_kron_factor
Definition:
AutoPhotometryConfig.h:49
ProgramOptionsHelper.h
SourceXtractor::AutoPhotometryConfig::getAutoKronMinrad
SeFloat getAutoKronMinrad() const
Definition:
AutoPhotometryConfig.cpp:54
SourceXtractor::AutoPhotometryConfig::m_kron_minrad
SeFloat m_kron_minrad
Definition:
AutoPhotometryConfig.h:50
Generated by
1.8.5