SourceXtractorPlusPlus  0.10
Please provide a description of the project.
CoreThresholdPartitionTaskFactory.h
Go to the documentation of this file.
1 
23 #ifndef _SEIMPLEMENTATION_PLUGIN_CORETHRESHOLDTASKFACTORY_H_
24 #define _SEIMPLEMENTATION_PLUGIN_CORETHRESHOLDTASKFACTORY_H_
25 
29 
30 namespace SourceXtractor {
32 public:
34  virtual ~CoreThresholdPartitionTaskFactory() = default;
35 
38  };
39 
41  auto snr_level_config = manager.getConfiguration<CoreThresholdPartitionConfig>();
42  m_core_threshold = snr_level_config.getCoreThreshold();
43  };
44 
45  // TaskFactory implementation
46  virtual std::shared_ptr<Task> createTask(const PropertyId& property_id) const {
47  if (property_id == PropertyId::create<NCorePixel>()) {
48  return std::make_shared<CoreThresholdPartitionTask>(m_core_threshold);
49  }
50  else{
51  return nullptr;
52  }
53  }
54 
55 private:
57 }; // end of CoreThresholdPartitionTaskFactory class
58 } // namespace SExtractor
59 #endif /* _SEIMPLEMENTATION_PLUGIN_CORETHRESHOLDTASKFACTORY_H_ */
TaskFactory.h
Euclid::Configuration::ConfigManager::registerConfiguration
void registerConfiguration()
std::shared_ptr
STL class.
SourceXtractor::CoreThresholdPartitionTaskFactory::CoreThresholdPartitionTaskFactory
CoreThresholdPartitionTaskFactory()
Definition: CoreThresholdPartitionTaskFactory.h:33
SourceXtractor::TaskFactory
Creates a Task for computing a given property.
Definition: TaskFactory.h:42
Euclid::Configuration::ConfigManager
SourceXtractor::CoreThresholdPartitionTaskFactory::~CoreThresholdPartitionTaskFactory
virtual ~CoreThresholdPartitionTaskFactory()=default
SourceXtractor::CoreThresholdPartitionTaskFactory::reportConfigDependencies
void reportConfigDependencies(Euclid::Configuration::ConfigManager &manager) const
Registers all the Configuration dependencies.
Definition: CoreThresholdPartitionTaskFactory.h:36
Euclid::Configuration::ConfigManager::getConfiguration
T & getConfiguration()
SourceXtractor::PropertyId
Identifier used to set and retrieve properties.
Definition: PropertyId.h:40
SourceXtractor::CoreThresholdPartitionTaskFactory
Definition: CoreThresholdPartitionTaskFactory.h:31
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::CoreThresholdPartitionTaskFactory::m_core_threshold
double m_core_threshold
Definition: CoreThresholdPartitionTaskFactory.h:56
CoreThresholdPartitionTask.h
SourceXtractor::CoreThresholdPartitionConfig
Definition: CoreThresholdPartitionConfig.h:31
CoreThresholdPartitionConfig.h
SourceXtractor::CoreThresholdPartitionTaskFactory::configure
void configure(Euclid::Configuration::ConfigManager &manager)
Method which should initialize the object.
Definition: CoreThresholdPartitionTaskFactory.h:40
SourceXtractor::CoreThresholdPartitionTaskFactory::createTask
virtual std::shared_ptr< Task > createTask(const PropertyId &property_id) const
Returns a Task producing a Property corresponding to the given PropertyId.
Definition: CoreThresholdPartitionTaskFactory.h:46