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
Public Types | Public Member Functions | Public Attributes | List of all members
lsst::ap::ZoneEntry< ChunkT > Struct Template Reference

Contains spatial information for a single point used during cross-matching. More...

#include <ZoneTypes.h>

Public Types

typedef ChunkT Chunk
 
typedef ChunkT::Entry Data
 

Public Member Functions

 ZoneEntry (double const ra, double const dec, Data *const data, Chunk *const chunk, int const index)
 

Public Attributes

Data_data
 Pointer to the corresponding data object. More...
 
boost::uint32_t _ra
 scaled right ascension of entity position More...
 
boost::int32_t _dec
 scaled declination of entity position More...
 
boost::uint32_t _flags
 Reserved. More...
 
boost::int32_t _index
 Index of the data object in the chunk. More...
 
Chunk_chunk
 Pointer to chunk containing the data object. More...
 
double _x
 unit vector x coordinate of entity position More...
 
double _y
 unit vector y coordinate of entity position More...
 
double _z
 unit vector z coordinate of entity position More...
 

Detailed Description

template<typename ChunkT>
struct lsst::ap::ZoneEntry< ChunkT >

Contains spatial information for a single point used during cross-matching.

A pointer to the underlying data object gives access to ancillary fields (e.g. colors, magnitudes, etc...).

Definition at line 54 of file ZoneTypes.h.

Member Typedef Documentation

template<typename ChunkT>
typedef ChunkT lsst::ap::ZoneEntry< ChunkT >::Chunk

Definition at line 55 of file ZoneTypes.h.

template<typename ChunkT>
typedef ChunkT::Entry lsst::ap::ZoneEntry< ChunkT >::Data

Definition at line 56 of file ZoneTypes.h.

Constructor & Destructor Documentation

template<typename ChunkT >
lsst::ap::ZoneEntry< ChunkT >::ZoneEntry ( double const  ra,
double const  dec,
Data *const  data,
Chunk *const  chunk,
int const  index 
)
inline

Definition at line 58 of file ZoneTypes.cc.

64  :
65  _data(data),
66  _flags(0),
67  _index(index),
68  _chunk(chunk)
69 {
70  _ra = raToScaledInteger(ra);
71  _dec = decToScaledInteger(dec);
72  double raRad = radians(ra);
73  double decRad = radians(dec);
74  double cosDec = std::cos(decRad);
75  _x = std::cos(raRad)*cosDec;
76  _y = std::sin(raRad)*cosDec;
77  _z = std::sin(decRad);
78 }
double _z
unit vector z coordinate of entity position
Definition: ZoneTypes.h:66
boost::uint32_t _flags
Reserved.
Definition: ZoneTypes.h:61
AngleUnit const radians
constant with units of radians
Definition: Angle.h:91
boost::int32_t _dec
scaled declination of entity position
Definition: ZoneTypes.h:60
boost::uint32_t raToScaledInteger(double const ra)
Definition: SpatialUtil.h:251
boost::int32_t decToScaledInteger(double const dec)
Definition: SpatialUtil.h:264
Data * _data
Pointer to the corresponding data object.
Definition: ZoneTypes.h:58
double _y
unit vector y coordinate of entity position
Definition: ZoneTypes.h:65
boost::int32_t _index
Index of the data object in the chunk.
Definition: ZoneTypes.h:62
Chunk * _chunk
Pointer to chunk containing the data object.
Definition: ZoneTypes.h:63
boost::uint32_t _ra
scaled right ascension of entity position
Definition: ZoneTypes.h:59
double _x
unit vector x coordinate of entity position
Definition: ZoneTypes.h:64

Member Data Documentation

template<typename ChunkT>
Chunk* lsst::ap::ZoneEntry< ChunkT >::_chunk

Pointer to chunk containing the data object.

Definition at line 63 of file ZoneTypes.h.

template<typename ChunkT>
Data* lsst::ap::ZoneEntry< ChunkT >::_data

Pointer to the corresponding data object.

Definition at line 58 of file ZoneTypes.h.

template<typename ChunkT>
boost::int32_t lsst::ap::ZoneEntry< ChunkT >::_dec

scaled declination of entity position

Definition at line 60 of file ZoneTypes.h.

template<typename ChunkT>
boost::uint32_t lsst::ap::ZoneEntry< ChunkT >::_flags

Reserved.

Definition at line 61 of file ZoneTypes.h.

template<typename ChunkT>
boost::int32_t lsst::ap::ZoneEntry< ChunkT >::_index

Index of the data object in the chunk.

Definition at line 62 of file ZoneTypes.h.

template<typename ChunkT>
boost::uint32_t lsst::ap::ZoneEntry< ChunkT >::_ra

scaled right ascension of entity position

Definition at line 59 of file ZoneTypes.h.

template<typename ChunkT>
double lsst::ap::ZoneEntry< ChunkT >::_x

unit vector x coordinate of entity position

Definition at line 64 of file ZoneTypes.h.

template<typename ChunkT>
double lsst::ap::ZoneEntry< ChunkT >::_y

unit vector y coordinate of entity position

Definition at line 65 of file ZoneTypes.h.

template<typename ChunkT>
double lsst::ap::ZoneEntry< ChunkT >::_z

unit vector z coordinate of entity position

Definition at line 66 of file ZoneTypes.h.


The documentation for this struct was generated from the following files: