SourceXtractorPlusPlus  0.13
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_ */
SourceXtractor::MoffatCriteria::m_max_distance
double m_max_distance
Definition: MoffatCriteria.h:53
SourceGrouping.h
SourceXtractor::GroupingCriteria
Criteria used by SourceGrouping to determine if two sources should be grouped together.
Definition: SourceGrouping.h:84
SourceXtractor::MoffatCriteria::~MoffatCriteria
virtual ~MoffatCriteria()
Definition: MoffatCriteria.h:43
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::MoffatCriteria::MoffatCriteria
MoffatCriteria(double threshold, double max_distance)
Definition: MoffatCriteria.h:42
SourceXtractor::MoffatCriteria::requiredProperties
std::set< PropertyId > requiredProperties() const override
Return a set of used properties so they can be pre-fetched.
Definition: MoffatCriteria.cpp:61
SourceXtractor::MoffatCriteria::shouldGroup
bool shouldGroup(const SourceInterface &, const SourceInterface &) const override
Determines if the two sources should be grouped together.
Definition: MoffatCriteria.cpp:57
SourceXtractor::MoffatCriteria::m_threshold
double m_threshold
Definition: MoffatCriteria.h:52
SourceXtractor::MoffatCriteria
Groups sources if their Moffat profile overlap.
Definition: MoffatCriteria.h:39
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition: SourceInterface.h:46
std::set
STL class.
SourceXtractor::MoffatCriteria::doesImpact
bool doesImpact(const SourceInterface &impactor, const SourceInterface &impactee) const
Definition: MoffatCriteria.cpp:35