SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
MagnitudeConfig.cpp
Go to the documentation of this file.
1
17/*
18 * MagnitudeConfig.cpp
19 *
20 * Created on: Sep 29, 2016
21 * Author: mschefer
22 */
23
25
26using namespace Euclid::Configuration;
27namespace po = boost::program_options;
28
29namespace SourceXtractor {
30
31static const std::string MAG_ZEROPOINT {"magnitude-zero-point"};
32
34 Configuration(manager_id),
36}
37
39 return { {"Magnitude", {
40 {MAG_ZEROPOINT.c_str(), po::value<double>()->default_value(0.0), "Magnitude zero point calibration"}
41 }}};
42}
43
45 if (args.count(MAG_ZEROPOINT) != 0) {
46 m_magnitude_zero_point = SeFloat(args.at(MAG_ZEROPOINT).as<double>());
47 }
48}
49
50}
51
T at(T... args)
std::map< std::string, boost::program_options::variable_value > UserValues
std::map< std::string, OptionDescriptionList > getProgramOptions() override
void initialize(const UserValues &args) override
T count(T... args)
SeFloat32 SeFloat
Definition Types.h:32
static const std::string MAG_ZEROPOINT