LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
PotentialStar.h
Go to the documentation of this file.
1 #ifndef MeasAlgoShapeletPotentialStar_H
2 #define MeasAlgoShapeletPotentialStar_H
3 
5 #include <string>
6 
7 namespace lsst {
8 namespace meas {
9 namespace algorithms {
10 namespace shapelet {
11 
12  class PotentialStar {
13 
14  public:
15  PotentialStar(Position pos, double mag, double size, long index,
16  const std::string& line) :
17  _pos(pos), _mag(mag), _size(size), _index(index), _line(line)
18  {}
19 
21 
22  const Position& getPos() const { return _pos; }
23 
24  double getMag() const { return _mag; }
25 
26  double getSize() const { return _size; }
27 
28  long getIndex() const { return _index; }
29 
30  const std::string& getLine() const { return _line; }
31 
32  void setSize(double newsize) { _size = newsize; }
33 
34  bool isBrighterThan(const PotentialStar* rhs) const
35  { return _mag < rhs->_mag; }
36 
37  bool isSmallerThan(const PotentialStar* rhs) const
38  { return _size < rhs->_size; }
39 
40  private:
41 
43  double _mag;
44  double _size;
45  long _index;
46  std::string _line;
47 
48  };
49 
50 }}}}
51 
52 #endif
53 
bool isBrighterThan(const PotentialStar *rhs) const
Definition: PotentialStar.h:34
bool isSmallerThan(const PotentialStar *rhs) const
Definition: PotentialStar.h:37
PotentialStar(Position pos, double mag, double size, long index, const std::string &line)
Definition: PotentialStar.h:15