SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
AutoPhotometryTaskFactory.cpp
Go to the documentation of this file.
1
17/*
18 * AutoPhotometryTaskFactory.cpp
19 *
20 * Created on: Jul 18, 2016
21 * Author: mkuemmel@usm.lmu.de
22 */
23
24#include <iostream>
25#include <sstream>
26
29
43
44
45namespace SourceXtractor {
46
47AutoPhotometryTaskFactory::AutoPhotometryTaskFactory() : m_magnitude_zero_point(0), m_kron_factor(0), m_kron_minrad(0),
48 m_symmetry_usage(false) {}
49
51 manager.registerConfiguration<MagnitudeConfig>();
52 manager.registerConfiguration<AutoPhotometryConfig>();
53 manager.registerConfiguration<WeightImageConfig>();
54 manager.registerConfiguration<CheckImagesConfig>();
55 manager.registerConfiguration<MeasurementImageConfig>();
56}
57
59 m_magnitude_zero_point = manager.getConfiguration<MagnitudeConfig>().getMagnitudeZeroPoint();
60 m_kron_factor = manager.getConfiguration<AutoPhotometryConfig>().getAutoKronFactor();
61 m_kron_minrad = manager.getConfiguration<AutoPhotometryConfig>().getAutoKronMinrad();
62 m_symmetry_usage = manager.getConfiguration<WeightImageConfig>().symmetryUsage();
63
64 auto& measurement_config = manager.getConfiguration<MeasurementImageConfig>();
65 const auto& image_infos = measurement_config.getImageInfos();
66
68
69 for (unsigned int i = 0; i < image_infos.size(); ++i) {
72 }
73}
74
78
80 if (property_id.getTypeId() == typeid(AutoPhotometry)) {
83 } else if (property_id == PropertyId::create<AutoPhotometryFlag>()) {
85 } else if (property_id == PropertyId::create<AutoPhotometryArray>()) {
87 } else {
88 return nullptr;
89 }
90}
91
92}
std::vector< std::pair< std::string, unsigned int > > m_auto_names
void registerPropertyInstances(OutputRegistry &) override
std::shared_ptr< Task > createTask(const PropertyId &property_id) const override
Returns a Task producing a Property corresponding to the given PropertyId.
void reportConfigDependencies(Euclid::Configuration::ConfigManager &manager) const override
Registers all the Configuration dependencies.
void configure(Euclid::Configuration::ConfigManager &manager) override
Method which should initialize the object.
Auto photometry flux and magnitude.
void registerPropertyInstances(const std::vector< std::pair< std::string, unsigned int > > &instance_names)
Identifier used to set and retrieve properties.
Definition PropertyId.h:40
T emplace_back(T... args)
T make_pair(T... args)
T push_back(T... args)
T to_string(T... args)