SourceXtractorPlusPlus  0.19
SourceXtractor++, the next generation SExtractor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AssocModeConfig.h
Go to the documentation of this file.
1 
19 #ifndef _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODECONFIG_H_
20 #define _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODECONFIG_H_
21 
22 #include <boost/algorithm/string/split.hpp>
23 
25 #include "Table/TableReader.h"
26 
28 
29 namespace SourceXtractor {
30 
32 
33 public:
34 
35  enum class AssocMode {
36  UNKNOWN,
37  FIRST,
38  NEAREST,
39  MIN,
40  MAX,
41  MEAN,
42  MAG_MEAN,
43  SUM,
44  MAG_SUM
45  };
46 
47  enum class AssocFilter {
48  ALL,
49  MATCHED,
50  UNMATCHED
51  };
52 
53  struct CatalogEntry {
55  double weight;
57  };
58 
59 
60  explicit AssocModeConfig(long manager_id);
61  virtual ~AssocModeConfig() = default;
62 
64  void initialize(const UserValues& args) override;
65 
67  return m_assoc_mode;
68  }
69 
70  double getAssocRadius() const {
71  return m_assoc_radius;
72  }
73 
75  return m_catalogs;
76  }
77 
79  return m_columns_idx;
80  }
81 
82 private:
83  void readConfig(const UserValues& args);
84  void readCatalogs(const UserValues& args);
85 
87  const std::vector<int>& copy_columns, std::shared_ptr<CoordinateSystem> coordinate_system);
88 
91 
94 };
95 
96 } /* namespace SourceXtractor */
97 
98 
99 #endif /* _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODECONFIG_H_ */
std::vector< CatalogEntry > readTable(const Euclid::Table::Table &table, const std::vector< int > &columns, const std::vector< int > &copy_columns, std::shared_ptr< CoordinateSystem > coordinate_system)
const std::vector< int > & getColumnsIdx() const
void readConfig(const UserValues &args)
STL class.
std::map< std::string, OptionDescriptionList > getProgramOptions() override
std::vector< std::vector< CatalogEntry > > m_catalogs
void initialize(const UserValues &args) override
void readCatalogs(const UserValues &args)
const std::vector< std::vector< CatalogEntry > > & getCatalogs() const
std::vector< int > m_columns_idx
virtual ~AssocModeConfig()=default