SourceXtractorPlusPlus  0.11
Please provide a description of the project.
GrowthCurveTaskFactory.cpp
Go to the documentation of this file.
1 
26 
27 namespace SourceXtractor {
28 
30  if (property_id.getTypeId() == typeid(GrowthCurve)) {
31  return std::make_shared<GrowthCurveTask>(property_id.getIndex(), m_use_symmetry);
32  }
33  else if (property_id.getTypeId() == typeid(GrowthCurveResampled)) {
34  return std::make_shared<GrowthCurveResampledTask>(m_images, m_nsamples);
35  }
36  return nullptr;
37 }
38 
43 }
44 
47  m_use_symmetry = manager.getConfiguration<WeightImageConfig>().symmetryUsage();
48 
49  auto& measurement_config = manager.getConfiguration<MeasurementImageConfig>();
50  const auto& image_infos = measurement_config.getImageInfos();
51 
53 
54  for (size_t i = 0; i < image_infos.size(); ++i) {
55  m_images.push_back(image_infos[i].m_id);
56  }
57 }
58 
59 } // end of namespace SourceXtractor
Euclid::Configuration::ConfigManager::registerConfiguration
void registerConfiguration()
std::shared_ptr
STL class.
GrowthCurveResampled.h
Euclid::Configuration::ConfigManager
SourceXtractor::MeasurementImageConfig
Definition: MeasurementImageConfig.h:37
SourceXtractor::WeightImageConfig
Definition: WeightImageConfig.h:32
SourceXtractor::PropertyId::getTypeId
std::type_index getTypeId() const
Definition: PropertyId.h:66
Euclid::Configuration::ConfigManager::getConfiguration
T & getConfiguration()
WeightImageConfig.h
SourceXtractor::GrowthCurveResampled
Definition: GrowthCurveResampled.h:31
SourceXtractor::GrowthCurveTaskFactory::m_images
std::vector< unsigned > m_images
Definition: GrowthCurveTaskFactory.h:38
SourceXtractor::MeasurementImageConfig::getImageInfos
const std::vector< MeasurementImageInfo > & getImageInfos() const
Definition: MeasurementImageConfig.h:70
std::vector::push_back
T push_back(T... args)
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition: PropertyId.h:40
SourceXtractor
Definition: Aperture.h:30
GrowthCurveTaskFactory.h
SourceXtractor::GrowthCurveTaskFactory::configure
void configure(Euclid::Configuration::ConfigManager &manager) override
Method which should initialize the object.
Definition: GrowthCurveTaskFactory.cpp:45
MeasurementImageConfig.h
std::map
STL class.
GrowthCurveResampledTask.h
SourceXtractor::GrowthCurveTaskFactory::m_nsamples
int m_nsamples
Definition: GrowthCurveTaskFactory.h:36
GrowthCurve.h
SourceXtractor::PropertyId::getIndex
unsigned int getIndex() const
Definition: PropertyId.h:70
SourceXtractor::GrowthCurve
Definition: GrowthCurve.h:30
SourceXtractor::GrowthCurveConfig
Definition: GrowthCurveConfig.h:28
SourceXtractor::GrowthCurveTaskFactory::reportConfigDependencies
void reportConfigDependencies(Euclid::Configuration::ConfigManager &manager) const override
Registers all the Configuration dependencies.
Definition: GrowthCurveTaskFactory.cpp:39
GrowthCurveTask.h
SourceXtractor::GrowthCurveTaskFactory::m_use_symmetry
bool m_use_symmetry
Definition: GrowthCurveTaskFactory.h:37
GrowthCurveConfig.h
SourceXtractor::GrowthCurveTaskFactory::createTask
std::shared_ptr< Task > createTask(const PropertyId &property_id) const override
Returns a Task producing a Property corresponding to the given PropertyId.
Definition: GrowthCurveTaskFactory.cpp:29