LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
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
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
AngleUnit const radians
constant with units of radians
Definition: Angle.h:91
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: