SourceXtractorPlusPlus  0.16
Please provide a description of the project.
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_catalog;
76  }
77 
78 private:
79 
80  void readTable(const Euclid::Table::Table& table,
81  const std::vector<int>& columns, const std::vector<int>& copy_columns);
82 
85 
87 };
88 
89 } /* namespace SourceXtractor */
90 
91 
92 #endif /* _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODECONFIG_H_ */
std::map< std::string, OptionDescriptionList > getProgramOptions() override
void initialize(const UserValues &args) override
const std::vector< CatalogEntry > & getCatalog() const
std::vector< CatalogEntry > m_catalog
void readTable(const Euclid::Table::Table &table, const std::vector< int > &columns, const std::vector< int > &copy_columns)
virtual ~AssocModeConfig()=default