SourceXtractorPlusPlus  0.16
Please provide a description of the project.
MoffatCriteria.h
Go to the documentation of this file.
1 
17 /*
18  * MoffatCritteria.h
19  *
20  * Created on: 2019 M01 25
21  * Author: mschefer
22  */
23 
24 #ifndef _SEIMPLEMENTATION_GROUPING_MOFFATCRITERIA_H_
25 #define _SEIMPLEMENTATION_GROUPING_MOFFATCRITERIA_H_
26 
28 
29 namespace SourceXtractor {
30 
31 class MoffatModelFitting;
32 
40 public:
41 
42  MoffatCriteria(double threshold, double max_distance) : m_threshold(threshold), m_max_distance(max_distance) {}
43  virtual ~MoffatCriteria() {}
44 
45  bool shouldGroup(const SourceInterface&, const SourceInterface&) const override;
46 
48 
49 private:
50  bool doesImpact(const SourceInterface& impactor, const SourceInterface& impactee) const;
51 
52  double m_threshold;
54 };
55 
56 } /* namespace SourceXtractor */
57 
58 #endif /* _SEIMPLEMENTATION_GROUPING_MOFFATCRITERIA_H_ */
Criteria used by SourceGrouping to determine if two sources should be grouped together.
Groups sources if their Moffat profile overlap.
bool shouldGroup(const SourceInterface &, const SourceInterface &) const override
Determines if the two sources should be grouped together.
bool doesImpact(const SourceInterface &impactor, const SourceInterface &impactee) const
std::set< PropertyId > requiredProperties() const override
Return a set of used properties so they can be pre-fetched.
MoffatCriteria(double threshold, double max_distance)
The SourceInterface is an abstract "source" that has properties attached to it.