LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
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