|
Alexandria
2.27.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. More... | |
| virtual | ~PhotometryCatalogConfig ()=default |
| Destructor. More... | |
| std::map< std::string, OptionDescriptionList > | getProgramOptions () override |
| Returns the program options defined by the PhotometryCatalogConfig. More... | |
| void | initialize (const UserValues &args) override |
| Adds the PhotometryAttributeFromRow handler to the CatalogConfig. More... | |
| bool | isMissingPhotometryEnabled () |
| bool | isUpperLimitEnabled () |
Public Member Functions inherited from Euclid::Configuration::Configuration | |
| Configuration (long manager_id) | |
| Constructs a new Configuration instance. More... | |
| virtual | ~Configuration ()=default |
| Destructor. More... | |
| virtual void | preInitialize (const UserValues &args) |
| Method which is called before the initialization phase. More... | |
| virtual void | postInitialize (const UserValues &args) |
| Method which is called after the initialization phase. More... | |
| const std::set< std::type_index > & | getDependencies () |
| Returns the dependencies of the configuration. More... | |
| State & | getCurrentState () |
| Returns the current state of the configuration. More... | |
| State | getCurrentState () const |
| Returns the current state of the configuration. More... | |
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 | State { State::CONSTRUCTED, State::PRE_INITIALIZED, State::INITIALIZED, State::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. More... | |
| template<typename T > | |
| T & | getDependency () |
| Returns a dependency. More... | |
| 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.
|
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 std::string::c_str(), 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(), Elements::Logging::info(), 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().
1.8.5