SourceXtractorPlusPlus  0.14
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FluxRadiusTaskFactory.cpp
Go to the documentation of this file.
1 
23 
24 namespace SourceXtractor {
25 
27  if (property_id == PropertyId::create<FluxRadius>()) {
28  return std::make_shared<FluxRadiusTask>(m_images, m_flux_fraction);
29  }
30  return nullptr;
31 }
32 
36 }
37 
39  m_flux_fraction = manager.getConfiguration<FluxRadiusConfig>().getFluxFraction();
40 
41  auto& measurement_config = manager.getConfiguration<MeasurementImageConfig>();
42  const auto& image_infos = measurement_config.getImageInfos();
43 
45 
46  for (size_t i = 0; i < image_infos.size(); ++i) {
47  m_images.push_back(image_infos[i].m_id);
48  }
49 }
50 
51 } // end of namespace SourceXtractor
STL class.
T push_back(T...args)
const std::vector< MeasurementImageInfo > & getImageInfos() const
void configure(Euclid::Configuration::ConfigManager &manager) override
Method which should initialize the object.
void reportConfigDependencies(Euclid::Configuration::ConfigManager &manager) const override
Registers all the Configuration dependencies.
Identifier used to set and retrieve properties.
Definition: PropertyId.h:40
std::shared_ptr< Task > createTask(const PropertyId &property_id) const override
Returns a Task producing a Property corresponding to the given PropertyId.