28#include "ElementsKernel/Logging.h"
49 return {{
"Input catalog options",
51 "The value passed in the flux indicating that the photometry is missing, if the flag is not provided "
52 "the functionality is disabled"},
54 "Define if the catalog contains flux upper limit (YES/NO by default NO)"},
56 "Define a flag (in the flux error column) telling that the sigma has to be computed from "
57 "the flux and the Upper Limit threshold defined for each filter (must be <0 to trigger upper limit "
58 "functionality, by default -99)"}}}};
67 double upper_limit_threshold_flag = -99.;
72 logger.info() <<
"Upper limit threshold flag is " << upper_limit_threshold_flag;
75 double missing_photo_flag = -99.;
97 throw Elements::Exception() <<
"isMissingPhotometryEnabled() call to uninitialized PhotometryCatalogConfig";
106 throw Elements::Exception() <<
"isUpperLimitEnabled() call to uninitialized PhotometryCatalogConfig";
static Logging getLogger(const std::string &name="")
void declareDependency()
Declares a Configuration as dependency.
Configuration(long manager_id)
Constructs a new Configuration instance.
State & getCurrentState()
Returns the current state of the configuration.
std::map< std::string, boost::program_options::variable_value > UserValues
@ INITIALIZED
The initialize() method has been called.
T & getDependency()
Returns a dependency.
bool m_missing_photometry_enabled
void initialize(const UserValues &args) override
Adds the PhotometryAttributeFromRow handler to the CatalogConfig.
bool isMissingPhotometryEnabled()
bool m_upper_limit_enabled
PhotometryCatalogConfig(long manager_id)
Constructs a new PhotometryCatalogConfig object.
std::map< std::string, OptionDescriptionList > getProgramOptions() override
Returns the program options defined by the PhotometryCatalogConfig.
bool isUpperLimitEnabled()
Implementation of the AttributeFromRow for a photometry attribute. This class implements the createAt...
static const std::string MISSING_PHOTOMETRY_FLAG
static Elements::Logging logger
static const std::string UPPER_LIMIT_USE_THRESHOLD_FLAG
static const std::string ENABLE_UPPER_LIMIT