Alexandria  2.27.0
SDC-CH common library for the Euclid project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Euclid::Configuration::PhotometryCatalogConfig Class Reference

Configuration class for enabling photometric catalog input. More...

#include <PhotometryCatalogConfig.h>

Inheritance diagram for Euclid::Configuration::PhotometryCatalogConfig:
Inheritance graph
[legend]
Collaboration diagram for Euclid::Configuration::PhotometryCatalogConfig:
Collaboration graph
[legend]

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
 

Detailed Description

Configuration class for enabling photometric catalog input.

Definition at line 42 of file PhotometryCatalogConfig.h.

Constructor & Destructor Documentation

Euclid::Configuration::PhotometryCatalogConfig::PhotometryCatalogConfig ( long  manager_id)
explicit

Constructs a new PhotometryCatalogConfig object.

Definition at line 43 of file PhotometryCatalogConfig.cpp.

virtual Euclid::Configuration::PhotometryCatalogConfig::~PhotometryCatalogConfig ( )
virtualdefault

Destructor.

Member Function Documentation

auto Euclid::Configuration::PhotometryCatalogConfig::getProgramOptions ( )
overridevirtual

Returns the program options defined by the PhotometryCatalogConfig.

These options are:

  • missing-photometry-flag : The flux value to indicate missing photometry data If not provided the functionality is disabled
  • enable-upper-limit : Define if the catalog contains flux upper limit (YES/NO by default NO)

All options are in a group called "Input catalog options". They are all optional. The missing-photometr-flag defaults to the value -99.

Returns
The map with the option descriptions

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.

Here is the call graph for this function:

void Euclid::Configuration::PhotometryCatalogConfig::initialize ( const UserValues &  args)
overridevirtual
bool Euclid::Configuration::PhotometryCatalogConfig::isMissingPhotometryEnabled ( )
Returns
True if the flag to recognize missing photometry values is enabled

Definition at line 94 of file PhotometryCatalogConfig.cpp.

References Euclid::Configuration::Configuration::getCurrentState(), Euclid::Configuration::Configuration::INITIALIZED, and m_missing_photometry_enabled.

Here is the call graph for this function:

bool Euclid::Configuration::PhotometryCatalogConfig::isUpperLimitEnabled ( )
Returns
True if the upper limit is enabled

Definition at line 103 of file PhotometryCatalogConfig.cpp.

References Euclid::Configuration::Configuration::getCurrentState(), Euclid::Configuration::Configuration::INITIALIZED, and m_upper_limit_enabled.

Here is the call graph for this function:

Member Data Documentation

bool Euclid::Configuration::PhotometryCatalogConfig::m_missing_photometry_enabled {false}
private

Definition at line 91 of file PhotometryCatalogConfig.h.

Referenced by initialize(), and isMissingPhotometryEnabled().

bool Euclid::Configuration::PhotometryCatalogConfig::m_upper_limit_enabled {false}
private

Definition at line 92 of file PhotometryCatalogConfig.h.

Referenced by initialize(), and isUpperLimitEnabled().


The documentation for this class was generated from the following files: