LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
Public Member Functions | Public Attributes | List of all members
lsst::meas::astrom::MatchOptimisticBControl Struct Reference

#include <matchOptimisticB.h>

Public Member Functions

 MatchOptimisticBControl ()
 
void validate () const
 
 ~MatchOptimisticBControl ()
 

Public Attributes

std::string refFluxField
 "name of flux field in reference catalog" ; More...
 
std::string sourceFluxField
 "name of flux field in source catalog" ; More...
 
int numBrightStars
 "maximum number of bright reference stars to use" ; More...
 
int minMatchedPairs
 "minimum number of matches" ; More...
 
double matchingAllowancePix
 "maximum allowed distance between reference objects and sources (pixels)" ; More...
 
double maxOffsetPix
 "maximum allowed frame translation (pixels)" ; More...
 
double maxRotationDeg
 "maximum allowed frame rotation (deg)" ; More...
 
double allowedNonperpDeg
 "allowed non-perpendicularity of x and y axes (deg)" ; More...
 
int numPointsForShape
 "number of points in a matching shape" ; More...
 
double maxDeterminant
 "?" ; More...
 

Detailed Description

Definition at line 75 of file matchOptimisticB.h.

Constructor & Destructor Documentation

◆ MatchOptimisticBControl()

lsst::meas::astrom::MatchOptimisticBControl::MatchOptimisticBControl ( )
inline

Definition at line 88 of file matchOptimisticB.h.

89  : refFluxField("r_flux"),
90  sourceFluxField("slot_ApFlux_instFlux"),
91  numBrightStars(100),
92  minMatchedPairs(50),
94  maxOffsetPix(300),
95  maxRotationDeg(1.0),
96  allowedNonperpDeg(3.0),
98  maxDeterminant(0.02) {
99  validate();
100  }
std::string refFluxField
"name of flux field in reference catalog" ;
double maxRotationDeg
"maximum allowed frame rotation (deg)" ;
double matchingAllowancePix
"maximum allowed distance between reference objects and sources (pixels)" ;
int numPointsForShape
"number of points in a matching shape" ;
int minMatchedPairs
"minimum number of matches" ;
int numBrightStars
"maximum number of bright reference stars to use" ;
std::string sourceFluxField
"name of flux field in source catalog" ;
double maxOffsetPix
"maximum allowed frame translation (pixels)" ;
double allowedNonperpDeg
"allowed non-perpendicularity of x and y axes (deg)" ;

◆ ~MatchOptimisticBControl()

lsst::meas::astrom::MatchOptimisticBControl::~MatchOptimisticBControl ( )
inline

Definition at line 104 of file matchOptimisticB.h.

104 {};

Member Function Documentation

◆ validate()

void lsst::meas::astrom::MatchOptimisticBControl::validate ( ) const

Definition at line 403 of file matchOptimisticB.cc.

403  {
404  if (refFluxField.empty()) {
405  throw LSST_EXCEPT(pexExcept::InvalidParameterError, "refFluxField must be specified");
406  }
407  if (sourceFluxField.empty()) {
408  throw LSST_EXCEPT(pexExcept::InvalidParameterError, "sourceFluxField must be specified");
409  }
410  if (numBrightStars <= 0) {
411  throw LSST_EXCEPT(pexExcept::InvalidParameterError, "numBrightStars must be positive");
412  }
413  if (minMatchedPairs < 0) {
414  throw LSST_EXCEPT(pexExcept::InvalidParameterError, "minMatchedPairs must not be negative");
415  }
416  if (matchingAllowancePix <= 0) {
417  throw LSST_EXCEPT(pexExcept::InvalidParameterError, "matchingAllowancePix must be positive");
418  }
419  if (maxOffsetPix <= 0) {
420  throw LSST_EXCEPT(pexExcept::InvalidParameterError, "maxOffsetPix must be positive");
421  }
422  if (maxRotationDeg <= 0) {
423  throw LSST_EXCEPT(pexExcept::InvalidParameterError, "maxRotationRad must be positive");
424  }
425  if (allowedNonperpDeg <= 0) {
426  throw LSST_EXCEPT(pexExcept::InvalidParameterError, "allowedNonperpDeg must be positive");
427  }
428  if (numPointsForShape <= 0) {
429  throw LSST_EXCEPT(pexExcept::InvalidParameterError, "numPointsForShape must be positive");
430  }
431  if (maxDeterminant <= 0) {
432  throw LSST_EXCEPT(pexExcept::InvalidParameterError, "maxDeterminant must be positive");
433  }
434 }
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Definition: Exception.h:48
Reports invalid arguments.
Definition: Runtime.h:66
T empty(T... args)

Member Data Documentation

◆ allowedNonperpDeg

double lsst::meas::astrom::MatchOptimisticBControl::allowedNonperpDeg

"allowed non-perpendicularity of x and y axes (deg)" ;

Definition at line 84 of file matchOptimisticB.h.

◆ matchingAllowancePix

double lsst::meas::astrom::MatchOptimisticBControl::matchingAllowancePix

"maximum allowed distance between reference objects and sources (pixels)" ;

Definition at line 81 of file matchOptimisticB.h.

◆ maxDeterminant

double lsst::meas::astrom::MatchOptimisticBControl::maxDeterminant

"?" ;

Definition at line 86 of file matchOptimisticB.h.

◆ maxOffsetPix

double lsst::meas::astrom::MatchOptimisticBControl::maxOffsetPix

"maximum allowed frame translation (pixels)" ;

Definition at line 82 of file matchOptimisticB.h.

◆ maxRotationDeg

double lsst::meas::astrom::MatchOptimisticBControl::maxRotationDeg

"maximum allowed frame rotation (deg)" ;

Definition at line 83 of file matchOptimisticB.h.

◆ minMatchedPairs

int lsst::meas::astrom::MatchOptimisticBControl::minMatchedPairs

"minimum number of matches" ;

Definition at line 79 of file matchOptimisticB.h.

◆ numBrightStars

int lsst::meas::astrom::MatchOptimisticBControl::numBrightStars

"maximum number of bright reference stars to use" ;

Definition at line 78 of file matchOptimisticB.h.

◆ numPointsForShape

int lsst::meas::astrom::MatchOptimisticBControl::numPointsForShape

"number of points in a matching shape" ;

Definition at line 85 of file matchOptimisticB.h.

◆ refFluxField

std::string lsst::meas::astrom::MatchOptimisticBControl::refFluxField

"name of flux field in reference catalog" ;

Definition at line 76 of file matchOptimisticB.h.

◆ sourceFluxField

std::string lsst::meas::astrom::MatchOptimisticBControl::sourceFluxField

"name of flux field in source catalog" ;

Definition at line 77 of file matchOptimisticB.h.


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