LSSTApplications  1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
Object.h
Go to the documentation of this file.
1 // -*- lsst-c++ -*-
2 
3 /*
4  * LSST Data Management System
5  * Copyright 2008, 2009, 2010 LSST Corporation.
6  *
7  * This product includes software developed by the
8  * LSST Project (http://www.lsst.org/).
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the LSST License Statement and
21  * the GNU General Public License along with this program. If not,
22  * see <http://www.lsstcorp.org/LegalNotices/>.
23  */
24 
25 
33 #ifndef LSST_AP_OBJECT_H
34 #define LSST_AP_OBJECT_H
35 
36 #include "lsst/daf/base/DateTime.h"
37 
38 #include "lsst/afw/image/Filter.h"
39 
40 #include "Common.h"
41 #include "Bitset.h"
42 
43 
44 namespace lsst { namespace ap {
45 
53 struct Object {
54  static int const NUM_FILTERS = 6;
55  boost::int64_t _objectId;
56  double _ra;
57  double _decl;
58  double _muRa;
59  double _muDecl;
60  double _parallax;
62  boost::int16_t _varProb[NUM_FILTERS];
63 
64  boost::int64_t getId() const {
65  return _objectId;
66  }
68  double getRa() const {
69  return _ra;
70  }
72  double getDec() const {
73  return _decl;
74  }
76  double getMuRa() const {
77  return _muRa;
78  }
80  double getMuDecl() const {
81  return _muDecl;
82  }
84  double getParallax() const {
85  return _parallax;
86  }
88  double getRadialVelocity() const {
89  return _radialVelocity;
90  }
100  double getEpoch() const {
101  // 51544.5 - 32.184/86400; this is JD 2451545.0 (TT) converted to MJD(TAI)
102  return 51544.4996275;
103  }
104 
105  boost::int16_t getVarProb(lsst::afw::image::Filter const & f) const {
106  return _varProb[f.getId()];
107  }
108 };
109 
110 bool operator==(Object const & o1, Object const & o2);
111 
112 inline bool operator!=(Object const & o1, Object const & o2) {
113  return !(o1 == o2);
114 }
115 
116 }} // end of namespace lsst::ap
117 
118 #endif // LSST_AP_OBJECT_H
A class for manipulating a fixed set of bits at the individual bit level.
double _ra
Definition: Object.h:56
boost::int64_t getId() const
Definition: Object.h:64
A partial representation of a full LSST Object containing only id, position, proper motions...
Definition: Object.h:53
boost::int64_t _objectId
Definition: Object.h:55
double getDec() const
Definition: Object.h:72
double getRa() const
Definition: Object.h:68
double _radialVelocity
Definition: Object.h:61
int getId() const
Definition: Filter.h:136
double _decl
Definition: Object.h:57
double _muRa
Definition: Object.h:58
bool operator==(Ellipse< DataT > const &a, Ellipse< DataT > const &b)
Definition: EllipseTypes.h:100
Holds an integer identifier for an LSST filter.
Definition: Filter.h:107
Interface for DateTime class.
double getRadialVelocity() const
Definition: Object.h:88
Master header file for the association pipeline.
double _parallax
Definition: Object.h:60
boost::int16_t getVarProb(lsst::afw::image::Filter const &f) const
Definition: Object.h:105
bool operator!=(Object const &o1, Object const &o2)
Definition: Object.h:112
double getMuDecl() const
Definition: Object.h:80
double _muDecl
Definition: Object.h:59
double getMuRa() const
Definition: Object.h:76
static int const NUM_FILTERS
Definition: Object.h:54
boost::int16_t _varProb[NUM_FILTERS]
Definition: Object.h:62
double getEpoch() const
Definition: Object.h:100
double getParallax() const
Definition: Object.h:84
Class encapsulating an identifier for an LSST filter.