26#ifndef SPECTROSCOPICATTRIBUTEFROMROW_H_
27#define SPECTROSCOPICATTRIBUTEFROMROW_H_
33#include "ElementsKernel/Logging.h"
79 if (specz_value_column_index_ptr ==
nullptr) {
80 throw Elements::Exception() <<
"Column info does not have the spectroscopic redshift value column!";
84 if (specz_error_column_index_ptr ==
nullptr) {
85 throw Elements::Exception() <<
"Column info does not have the spectroscopic redshift error column!";
114 if (specz_value_column_index_ptr ==
nullptr) {
115 throw Elements::Exception() <<
"Column info does not have the spectroscopic redshift value column!";
123 logger.warn() <<
"specz error values are set to zero by default! ";
static Logging getLogger(const std::string &name="")
Interface for building a source Attribute from a table Row.
size_t m_value_column_index
std::unique_ptr< Attribute > createAttribute(const Euclid::Table::Row &row) override
Create a photometricAttribute from a Table row.
size_t m_error_column_index
SpectroscopicRedshiftAttributeFromRow(std::shared_ptr< Euclid::Table::ColumnInfo > column_info_ptr, const std::string &specz_value_column_name)
Create a SpectroscopicRedshiftAttributeFromRow object.
~SpectroscopicRedshiftAttributeFromRow() override=default
SpectroscopicRedshiftAttributeFromRow(std::shared_ptr< Euclid::Table::ColumnInfo > column_info_ptr, const std::string &specz_value_column_name, const std::string &specz_error_column_name)
Create a SpectroscopicRedshiftAttributeFromRow object.
Store the spectroscopic redshift of a source.
Represents one row of a Table.
static Elements::Logging logger