|
Alexandria 2.32.0
SDC-CH common library for the Euclid project
|
Configuration class for enabling photometric catalog input. More...
#include <PhotometryCatalogConfig.h>


Public Member Functions | |
| PhotometryCatalogConfig (long manager_id) | |
| Constructs a new PhotometryCatalogConfig object. | |
| virtual | ~PhotometryCatalogConfig ()=default |
| Destructor. | |
| std::map< std::string, OptionDescriptionList > | getProgramOptions () override |
| Returns the program options defined by the PhotometryCatalogConfig. | |
| void | initialize (const UserValues &args) override |
| Adds the PhotometryAttributeFromRow handler to the CatalogConfig. | |
| bool | isMissingPhotometryEnabled () |
| bool | isUpperLimitEnabled () |
| Public Member Functions inherited from Euclid::Configuration::Configuration | |
| Configuration (long manager_id) | |
| Constructs a new Configuration instance. | |
| virtual | ~Configuration ()=default |
| Destructor. | |
| virtual void | preInitialize (const UserValues &args) |
| Method which is called before the initialization phase. | |
| virtual void | postInitialize (const UserValues &args) |
| Method which is called after the initialization phase. | |
| const std::set< std::type_index > & | getDependencies () |
| Returns the dependencies of the configuration. | |
| State & | getCurrentState () |
| Returns the current state of the configuration. | |
| State | getCurrentState () const |
| Returns the current state of the configuration. | |
Private Attributes | |
| bool | m_missing_photometry_enabled {false} |
| bool | m_upper_limit_enabled {false} |
Additional Inherited Members | |
| Public Types inherited from Euclid::Configuration::Configuration | |
| enum class | State { CONSTRUCTED , PRE_INITIALIZED , INITIALIZED , FINAL } |
| Defines the different states the configuration object can be in. More... | |
| using | OptionDescriptionList = std::vector<boost::program_options::option_description> |
| using | UserValues = std::map<std::string, boost::program_options::variable_value> |
| Protected Member Functions inherited from Euclid::Configuration::Configuration | |
| template<typename T> | |
| void | declareDependency () |
| Declares a Configuration as dependency. | |
| template<typename T> | |
| T & | getDependency () |
| Returns a dependency. | |
| template<typename T> | |
| const T & | getDependency () const |
Configuration class for enabling photometric catalog input.
Definition at line 42 of file PhotometryCatalogConfig.h.
|
explicit |
Constructs a new PhotometryCatalogConfig object.
Definition at line 43 of file PhotometryCatalogConfig.cpp.
References Euclid::Configuration::Configuration::Configuration(), and Euclid::Configuration::Configuration::declareDependency().

|
virtualdefault |
Destructor.
|
overridevirtual |
Returns the program options defined by the PhotometryCatalogConfig.
These options are:
All options are in a group called "Input catalog options". They are all optional. The missing-photometr-flag defaults to the value -99.
Reimplemented from Euclid::Configuration::Configuration.
Definition at line 48 of file PhotometryCatalogConfig.cpp.
References Euclid::Configuration::ENABLE_UPPER_LIMIT, Euclid::Configuration::MISSING_PHOTOMETRY_FLAG, and Euclid::Configuration::UPPER_LIMIT_USE_THRESHOLD_FLAG.
|
overridevirtual |
Adds the PhotometryAttributeFromRow handler to the CatalogConfig.
| args | The user parameters |
Reimplemented from Euclid::Configuration::Configuration.
Definition at line 61 of file PhotometryCatalogConfig.cpp.
References std::map< K, T >::at(), Euclid::Configuration::ENABLE_UPPER_LIMIT, std::map< K, T >::end(), std::map< K, T >::find(), Euclid::Configuration::Configuration::getDependency(), Euclid::Configuration::logger, m_missing_photometry_enabled, m_upper_limit_enabled, Euclid::Configuration::MISSING_PHOTOMETRY_FLAG, std::move(), and Euclid::Configuration::UPPER_LIMIT_USE_THRESHOLD_FLAG.

| bool Euclid::Configuration::PhotometryCatalogConfig::isMissingPhotometryEnabled | ( | ) |
Definition at line 94 of file PhotometryCatalogConfig.cpp.
References Euclid::Configuration::Configuration::getCurrentState(), Euclid::Configuration::Configuration::INITIALIZED, and m_missing_photometry_enabled.

| bool Euclid::Configuration::PhotometryCatalogConfig::isUpperLimitEnabled | ( | ) |
Definition at line 103 of file PhotometryCatalogConfig.cpp.
References Euclid::Configuration::Configuration::getCurrentState(), Euclid::Configuration::Configuration::INITIALIZED, and m_upper_limit_enabled.

|
private |
Definition at line 91 of file PhotometryCatalogConfig.h.
Referenced by initialize(), and isMissingPhotometryEnabled().
|
private |
Definition at line 92 of file PhotometryCatalogConfig.h.
Referenced by initialize(), and isUpperLimitEnabled().