|
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
|
Namespaces | |
| cluster | |
| detail | |
| @ endcond | |
| io | |
| match | |
| pipeline | |
| SqlAppendTables | |
| SqlDropTables | |
| SqlStoreOutputs | |
| tasks | |
| utils | |
| version | |
Classes | |
| class | Bitset |
| A fixed size set of bits. More... | |
| struct | BinChunkHeader |
| Simple header for binary chunk files – allows some sanity checking at read time. More... | |
| class | ChunkDescriptor |
| A generic descriptor containing state for different kinds of chunks. More... | |
| class | SharedObjectChunkManager |
| A manager for Object chunks that exist in shared memory. More... | |
| class | CircularRegion |
| A circular region of the unit sphere (sky). More... | |
| class | Condition |
| Encapsulates a POSIX condition variable. More... | |
| struct | DataTraits |
| Provides basic chunk parameters at compile time. More... | |
| struct | DataTraits< Object > |
| class | Ellipse |
| Contains spatial information for a single ellipse on the unit sphere (sky). More... | |
| struct | EllipsePtrLessThan |
| Comparison functor for Ellipse pointers that orders ellipses by minimum overlapping zone. More... | |
| class | EllipseList |
| A list of ellipses, implemented using std::vector. More... | |
| class | Fifo |
| A First In, First Out (FIFO) queue of fixed capacity. More... | |
| struct | PassthroughFilter |
| A default "let everything through" filter implementation. More... | |
| struct | MatchWithDistance |
| Contains a pointer to a match and an associated distance. More... | |
| struct | MatchWithoutDistance |
| Contains a pointer to a match. More... | |
| struct | EmptyMatchListProcessor |
| A default "do nothing" match list processing implementation. More... | |
| struct | EmptyMatchPairProcessor |
| A default "do nothing" match pair processing implementation. More... | |
| class | ScopedLock |
| Grants access to a mutex, enforcing the RAII principle. More... | |
| class | Mutex |
| A wrapper for a process private POSIX mutual exclusion lock. More... | |
| class | SharedMutex |
| A wrapper for a POSIX process shared mutual exclusion lock. More... | |
| struct | Object |
| A partial representation of a full LSST Object containing only id, position, proper motions, and per-filter variability probabilities. More... | |
| struct | Point |
| A point on the unit sphere (sky), specified in spherical polar coordinates. More... | |
| class | RectangularRegion |
| A rectangular region (in right ascension and declination) of the unit sphere. More... | |
| class | MatchPair |
| Holds a pair of ids and the distance between the corresponding positions on the unit sphere. More... | |
| class | PersistableMatchPairVector |
| A persistable wrapper for a MatchPairVector. More... | |
| class | PersistableIdPairVector |
| A persistable wrapper for an IdPairVector. More... | |
| class | PersistableIdVector |
| A persistable wrapper for an IdVector. More... | |
| class | ScopeGuard |
| Utility class for automatically invoking a function when leaving a scope. More... | |
| class | ZoneStripeChunkDecomposition |
| A decomposition of the unit sphere into zones, stripes, and chunks. More... | |
| struct | DiaSourceChunk |
| class | VisitProcessingContext |
| Container for inter-stage association pipeline state. More... | |
| class | TimeSpec |
| Wraps the C library timespec struct. More... | |
| class | Stopwatch |
| Utility class for profiling. More... | |
| struct | ZoneEntry |
| Contains spatial information for a single point used during cross-matching. More... | |
| struct | ZoneEntryArray |
| Stores entries inside a single zone (a narrow declination stripe) in a sorted array. More... | |
| class | ZoneIndex |
| Container for a sequence of adjacent zones. More... | |
Typedefs | |
| typedef unsigned char | ChunkEntryFlag |
| typedef std::pair < boost::int64_t, boost::int64_t > | IdPair |
| Holds a pair of ids. More... | |
| typedef std::vector< MatchPair > | MatchPairVector |
| A list of MatchPair instances. More... | |
| typedef std::vector< IdPair > | IdPairVector |
| A list of IdPair instances. More... | |
| typedef std::vector < boost::int64_t > | IdVector |
| A list of integer ids. More... | |
Functions | |
| void | initialize (std::string const &runId) |
| void | registerVisit (VisitProcessingContext &context) |
| void | loadSliceObjects (VisitProcessingContext &context) |
| void | buildObjectIndex (VisitProcessingContext &context) |
| void | matchDiaSources (MatchPairVector &matches, VisitProcessingContext &context) |
| void | matchMops (MatchPairVector &matches, IdPairVector &newObjects, VisitProcessingContext &context, lsst::mops::MovingObjectPredictionVector &predictions) |
| void | storeSliceObjects (VisitProcessingContext &context) |
| void | failVisit (VisitProcessingContext &context) |
| bool | endVisit (VisitProcessingContext &context, bool const rollback) |
| std::ostream & | operator<< (std::ostream &os, Stopwatch const &watch) |
| template<typename DataT > | |
| void | swap (Ellipse< DataT > &a, Ellipse< DataT > &b) |
| template<typename DataT > | |
| bool | operator< (Ellipse< DataT > const &a, Ellipse< DataT > const &b) |
| template<typename DataT > | |
| bool | operator== (Ellipse< DataT > const &a, Ellipse< DataT > const &b) |
| template<typename DataT > | |
| bool | operator< (int32_t const a, Ellipse< DataT > const &b) |
| template<typename DataT > | |
| bool | operator< (Ellipse< DataT > const &a, int32_t const b) |
| template<typename DataT > | |
| bool | operator== (int32_t const a, Ellipse< DataT > const &b) |
| template<typename DataT > | |
| bool | operator== (Ellipse< DataT > const &a, int32_t const b) |
| template<typename FirstEntryT , typename SecondEntryT , typename FirstFilterT , typename SecondFilterT , typename MatchListProcessorT > | |
| std::size_t | distanceMatch (ZoneIndex< FirstEntryT > &first, ZoneIndex< SecondEntryT > &second, double const radius, FirstFilterT &firstFilter, SecondFilterT &secondFilter, MatchListProcessorT &matchListProcessor) |
| template<typename FirstEntryT , typename SecondEntryT , typename FirstFilterT , typename SecondFilterT , typename MatchPairProcessorT > | |
| std::size_t | ellipseMatch (EllipseList< FirstEntryT > &first, ZoneIndex< SecondEntryT > &second, FirstFilterT &firstFilter, SecondFilterT &secondFilter, MatchPairProcessorT &matchPairProcessor) |
| template<typename FirstEntryT , typename SecondEntryT , typename FirstFilterT , typename SecondFilterT , typename MatchListProcessorT > | |
| std::size_t | ellipseGroupedMatch (EllipseList< FirstEntryT > &first, ZoneIndex< SecondEntryT > &second, FirstFilterT &firstFilter, SecondFilterT &secondFilter, MatchListProcessorT &matchListProcessor) |
| bool | operator== (Object const &o1, Object const &o2) |
| bool | operator!= (Object const &o1, Object const &o2) |
| void | swap (ZoneStripeChunkDecomposition &a, ZoneStripeChunkDecomposition &b) |
| double | alpha (double const theta, double const centerDec, double const dec) |
| double | maxAlpha (double const theta, double const centerDec) |
| void | computeChunkIds (std::vector< int > &chunkIds, CircularRegion const ®ion, ZoneStripeChunkDecomposition const &zsc, int const workerId=0, int const numWorkers=1) |
| void | computeChunkIds (std::vector< int > &chunkIds, RectangularRegion const ®ion, ZoneStripeChunkDecomposition const &zsc, int const workerId=0, int const numWorkers=1) |
| boost::uint32_t | raToScaledInteger (double const ra) |
| boost::uint32_t | deltaRaToScaledInteger (double const delta) |
| boost::int32_t | decToScaledInteger (double const dec) |
| boost::int32_t | deltaDecToScaledInteger (double const delta) |
| double | clampDec (double const dec) |
| void | verifyPathName (std::string const &name) |
| template<typename ChunkT > | |
| bool | operator< (ZoneEntry< ChunkT > const &a, ZoneEntry< ChunkT > const &b) |
| template<typename ChunkT > | |
| bool | operator== (ZoneEntry< ChunkT > const &a, ZoneEntry< ChunkT > const &b) |
| template<typename ChunkT > | |
| bool | operator< (boost::uint32_t const a, ZoneEntry< ChunkT > const &b) |
| template<typename ChunkT > | |
| bool | operator< (ZoneEntry< ChunkT > const &a, boost::uint32_t const b) |
| template<typename ChunkT > | |
| bool | operator== (boost::uint32_t const a, ZoneEntry< ChunkT > const &b) |
| template<typename ChunkT > | |
| bool | operator== (ZoneEntry< ChunkT > const &a, boost::uint32_t const b) |
| typedef unsigned char lsst::ap::ChunkEntryFlag |
| typedef std::pair<boost::int64_t, boost::int64_t> lsst::ap::IdPair |
| typedef std::vector<IdPair> lsst::ap::IdPairVector |
| typedef std::vector<boost::int64_t> lsst::ap::IdVector |
| typedef std::vector<MatchPair> lsst::ap::MatchPairVector |
| double lsst::ap::alpha | ( | double const | theta, |
| double const | centerDec, | ||
| double const | dec | ||
| ) |
Intersects the plane given by z = sin(dec) with the circle of radius theta and center (0, centerDec) on the unit sphere, then returns the right ascension alpha giving the two resulting points: (-alpha, dec) and (alpha, dec).
| [in] | theta | the radius of the input circle |
| [in] | centerDec | the declination of the circle center |
| [in] | dec | the declination of the horizontal plane to intersect with the input circle |
Definition at line 248 of file SpatialUtil.cc.
| void lsst::ap::buildObjectIndex | ( | VisitProcessingContext & | context | ) |
|
inline |
Clamps the given declination value to [-90,90].
Definition at line 276 of file SpatialUtil.h.
| void lsst::ap::computeChunkIds | ( | std::vector< int > & | chunkIds, |
| CircularRegion const & | region, | ||
| ZoneStripeChunkDecomposition const & | zsc, | ||
| int const | workerId = 0, |
||
| int const | numWorkers = 1 |
||
| ) |
Computes identifiers for all chunks in the given ZoneStripeChunkDecomposition that overlap the given region and belong to the specified worker. Chunks belonging to a stripe s such that the euclidian remainder of s/numWorkers is workerId belong to the worker identified by workerId.
| [out] | chunkIds | The list in which to store the computed chunk identifiers. |
| [in] | region | The region for which overlapping chunks are to be computed. |
| [in] | zsc | A decomposition of the unit sphere into stripes, chunks, and zones. |
| [in] | workerId | The integer id of the current worker (in a set of numWorkers parallel workers). |
| [in] | numWorkers | The number of parallel workers. |
Definition at line 308 of file SpatialUtil.cc.
| void lsst::ap::computeChunkIds | ( | std::vector< int > & | chunkIds, |
| RectangularRegion const & | region, | ||
| ZoneStripeChunkDecomposition const & | zsc, | ||
| int const | workerId = 0, |
||
| int const | numWorkers = 1 |
||
| ) |
Computes identifiers for all chunks in the given ZoneStripeChunkDecomposition that overlap the given region and belong to the specified worker. Chunks belonging to a stripe s such that the euclidian remainder of s/numWorkers is workerId belong to the worker identified by workerId.
| [out] | chunkIds | The list in which to store the computed chunk identifiers. |
| [in] | region | The region for which overlapping chunks are to be computed. |
| [in] | zsc | A decomposition of the unit sphere into stripes, chunks, and zones. |
| [in] | workerId | The integer id of the current worker (in a set of numWorkers parallel workers). |
| [in] | numWorkers | The number of parallel workers. |
Definition at line 393 of file SpatialUtil.cc.
|
inline |
Converts a declination (in degrees) to an integer between -2^30 and 2^30
Definition at line 264 of file SpatialUtil.h.
|
inline |
Converts a declination delta (in degrees) to an integer
Definition at line 270 of file SpatialUtil.h.
|
inline |
Converts a right ascension delta (in degrees) to an integer
Definition at line 258 of file SpatialUtil.h.
| std::size_t lsst::ap::distanceMatch | ( | ZoneIndex< FirstEntryT > & | first, |
| ZoneIndex< SecondEntryT > & | second, | ||
| double const | radius, | ||
| FirstFilterT & | firstFilter, | ||
| SecondFilterT & | secondFilter, | ||
| MatchListProcessorT & | matchListProcessor | ||
| ) |
Spatial cross-match routine – finds match pairs in a first and a second set of entities (both subject to filtering), where both sets consist of points. An entity from the second set is deemed a match to an entity from the first set if the two are within the given angle of eachother. All matches for a given entity in the first set are found at once, and sent off to a match list processor for further inspection.
This routine is optimized for the case where few matches are expected for any given entity.
| [in] | first | A first set of entities. |
| [in] | second | A second set of entities. |
| [in] | radius | The match-radius (in degrees). |
| [in] | firstFilter | A filter on the first set of entities. |
| [in] | secondFilter | A filter on the second set of entities. |
| [in] | matchListProcessor | A processor for match lists. |
Definition at line 153 of file Match.h.
| std::size_t lsst::ap::ellipseGroupedMatch | ( | EllipseList< FirstEntryT > & | first, |
| ZoneIndex< SecondEntryT > & | second, | ||
| FirstFilterT & | firstFilter, | ||
| SecondFilterT & | secondFilter, | ||
| MatchListProcessorT & | matchListProcessor | ||
| ) |
Spatial cross-match routine – finds match pairs in a first and a second set of entities (both subject to filtering), where the first set consists of ellipses and the second of points. An entity in the second set is deemed a match for an entity in the first set if it is within the ellipse defined by the first entity. All matches for a given ellipse are found at once and sent off to a match list processor for further inspection.
| [in] | first | A first set of entities. |
| [in] | second | A second set of entities. |
| [in] | firstFilter | A filter on the first set of entities. |
| [in] | secondFilter | A filter on the second set of entities. |
| [in] | matchListProcessor | A processor for match lists. |
Definition at line 535 of file Match.h.
| std::size_t lsst::ap::ellipseMatch | ( | EllipseList< FirstEntryT > & | first, |
| ZoneIndex< SecondEntryT > & | second, | ||
| FirstFilterT & | firstFilter, | ||
| SecondFilterT & | secondFilter, | ||
| MatchPairProcessorT & | matchPairProcessor | ||
| ) |
Spatial cross-match routine – finds match pairs in a first and a second set of entities (both subject to filtering), where the first set consists of ellipses and the second of points. An entity in the second set is deemed a match for an entity in the first set if it is within the ellipse defined by the first entity. Note – this particular routine does not package up all matches for a given ellipse before sending them off to a match list processor. Instead, it reports match pairs to a match pair processor in no particular order. The routine is also currently single threaded. For a parallel routine that uses a match list processor, see ellipseGroupedMatch(). The advantage of this routine is that it should have much better memory access patterns (smaller cache footprint, more sequential access) in the presence of ellipses with wildly varying size.
| [in] | first | A first set of entities. |
| [in] | second | A second set of entities. |
| [in] | firstFilter | A filter on the first set of entities. |
| [in] | secondFilter | A filter on the second set of entities. |
| [in] | matchPairProcessor | A processor for match pairs. |
Definition at line 386 of file Match.h.
| bool lsst::ap::endVisit | ( | VisitProcessingContext & | context, |
| bool const | rollback | ||
| ) |
Ends visit processing - in memory changes are rolled back if the given visit failed in any way, or if rollback is true .
| [in,out] | context | State involved in processing a single visit. |
| [in] | rollback | Indicates whether or not results for the visit should be rolled back |
true if the visit existed, was not marked as a failure and was committed, false otherwise. Definition at line 1028 of file Stages.cc.
| void lsst::ap::failVisit | ( | VisitProcessingContext & | context | ) |
| void lsst::ap::initialize | ( | std::string const & | runId | ) |
Sets up all fundamental visit processing parameters using a policy and ensure that a reference to the shared memory object used for chunk storage exists.
| void lsst::ap::loadSliceObjects | ( | VisitProcessingContext & | context | ) |
Ensures that object data for the chunks assigned to the calling slice has been read in or is owned by the given visit.
Definition at line 666 of file Stages.cc.
| void lsst::ap::matchDiaSources | ( | MatchPairVector & | matches, |
| VisitProcessingContext & | context | ||
| ) |
Matches difference sources for a visit (obtained from the detection pipeline) against the objects in the visit FOV.
| [out] | matches | Set to a list of difference source to object match pairs. |
| [in,out] | context | State involved in processing a single visit. |
Definition at line 808 of file Stages.cc.
| void lsst::ap::matchMops | ( | MatchPairVector & | matches, |
| IdPairVector & | newObjects, | ||
| VisitProcessingContext & | context, | ||
| lsst::mops::MovingObjectPredictionVector & | predictions | ||
| ) |
Matches moving object predictions falling within the FOV of a visit against the difference sources for that visit.
| [out] | matches | Set to a list of moving object prediction to difference source match pairs. |
| [out] | newObjects | Set to a list of (difference source id, object id) pairs that specifies which difference sources should be used to create new object and what the id of each new object should be set to. |
| [in,out] | context | State involved in processing a single visit. |
| [in] | predictions | The list of moving object predictions to match against difference sources. |
Definition at line 866 of file Stages.cc.
| double lsst::ap::maxAlpha | ( | double const | theta, |
| double const | centerDec | ||
| ) |
Computes the extent in right ascension [-alpha, alpha] of the circle with radius theta and center (0, centerDec) on the unit sphere.
| [in] | theta | the radius of the circle to find ra extents for |
| [in] | centerDec | the declination of the circle center (in degrees) |
Definition at line 279 of file SpatialUtil.cc.
|
inline |
|
inline |
Definition at line 78 of file ZoneTypes.h.
|
inline |
Definition at line 88 of file ZoneTypes.h.
|
inline |
Definition at line 93 of file ZoneTypes.h.
|
inline |
Definition at line 95 of file EllipseTypes.h.
|
inline |
Definition at line 105 of file EllipseTypes.h.
|
inline |
Definition at line 110 of file EllipseTypes.h.
| std::ostream& lsst::ap::operator<< | ( | std::ostream & | os, |
| Stopwatch const & | watch | ||
| ) |
|
inline |
Definition at line 83 of file ZoneTypes.h.
|
inline |
Definition at line 98 of file ZoneTypes.h.
|
inline |
Definition at line 100 of file EllipseTypes.h.
|
inline |
Definition at line 103 of file ZoneTypes.h.
| bool lsst::ap::operator== | ( | Object const & | o1, |
| Object const & | o2 | ||
| ) |
|
inline |
Definition at line 115 of file EllipseTypes.h.
|
inline |
Definition at line 120 of file EllipseTypes.h.
|
inline |
Converts a right ascension (in degrees) to an integer in the range [0, 2^32)
Definition at line 251 of file SpatialUtil.h.
| void lsst::ap::registerVisit | ( | VisitProcessingContext & | context | ) |
Computes ids for all object chunks covering the visit FOV and registers the visit with the shared memory chunk manager.
Definition at line 654 of file Stages.cc.
| void lsst::ap::storeSliceObjects | ( | VisitProcessingContext & | context | ) |
Stores any new objects that have been added to the FOV of the visit.
| [in,out] | context | State involved in processing a single visit. |
Definition at line 967 of file Stages.cc.
|
inline |
Definition at line 90 of file EllipseTypes.h.
|
inline |
Definition at line 225 of file SpatialUtil.h.
1.8.5