LSSTApplications  19.0.0-14-gb0260a2+72efe9b372,20.0.0+7927753e06,20.0.0+8829bf0056,20.0.0+995114c5d2,20.0.0+b6f4b2abd1,20.0.0+bddc4f4cbe,20.0.0-1-g253301a+8829bf0056,20.0.0-1-g2b7511a+0d71a2d77f,20.0.0-1-g5b95a8c+7461dd0434,20.0.0-12-g321c96ea+23efe4bbff,20.0.0-16-gfab17e72e+fdf35455f6,20.0.0-2-g0070d88+ba3ffc8f0b,20.0.0-2-g4dae9ad+ee58a624b3,20.0.0-2-g61b8584+5d3db074ba,20.0.0-2-gb780d76+d529cf1a41,20.0.0-2-ged6426c+226a441f5f,20.0.0-2-gf072044+8829bf0056,20.0.0-2-gf1f7952+ee58a624b3,20.0.0-20-geae50cf+e37fec0aee,20.0.0-25-g3dcad98+544a109665,20.0.0-25-g5eafb0f+ee58a624b3,20.0.0-27-g64178ef+f1f297b00a,20.0.0-3-g4cc78c6+e0676b0dc8,20.0.0-3-g8f21e14+4fd2c12c9a,20.0.0-3-gbd60e8c+187b78b4b8,20.0.0-3-gbecbe05+48431fa087,20.0.0-38-ge4adf513+a12e1f8e37,20.0.0-4-g97dc21a+544a109665,20.0.0-4-gb4befbc+087873070b,20.0.0-4-gf910f65+5d3db074ba,20.0.0-5-gdfe0fee+199202a608,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-g64f541c+d529cf1a41,20.0.0-6-g9a5b7a1+a1cd37312e,20.0.0-68-ga3f3dda+5fca18c6a4,20.0.0-9-g4aef684+e18322736b,w.2020.45
LSSTDataManagementBasePackage
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  }

◆ ~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 }

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:
lsst::meas::astrom::MatchOptimisticBControl::refFluxField
std::string refFluxField
"name of flux field in reference catalog" ;
Definition: matchOptimisticB.h:76
lsst::meas::astrom::MatchOptimisticBControl::sourceFluxField
std::string sourceFluxField
"name of flux field in source catalog" ;
Definition: matchOptimisticB.h:77
lsst::meas::astrom::MatchOptimisticBControl::validate
void validate() const
Definition: matchOptimisticB.cc:403
lsst::meas::astrom::MatchOptimisticBControl::maxOffsetPix
double maxOffsetPix
"maximum allowed frame translation (pixels)" ;
Definition: matchOptimisticB.h:82
lsst::meas::astrom::MatchOptimisticBControl::numPointsForShape
int numPointsForShape
"number of points in a matching shape" ;
Definition: matchOptimisticB.h:85
lsst::meas::astrom::MatchOptimisticBControl::numBrightStars
int numBrightStars
"maximum number of bright reference stars to use" ;
Definition: matchOptimisticB.h:78
lsst::meas::astrom::MatchOptimisticBControl::maxDeterminant
double maxDeterminant
"?" ;
Definition: matchOptimisticB.h:86
lsst::meas::astrom::MatchOptimisticBControl::maxRotationDeg
double maxRotationDeg
"maximum allowed frame rotation (deg)" ;
Definition: matchOptimisticB.h:83
lsst::meas::astrom::MatchOptimisticBControl::allowedNonperpDeg
double allowedNonperpDeg
"allowed non-perpendicularity of x and y axes (deg)" ;
Definition: matchOptimisticB.h:84
LSST_EXCEPT
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Definition: Exception.h:48
lsst::meas::astrom::MatchOptimisticBControl::matchingAllowancePix
double matchingAllowancePix
"maximum allowed distance between reference objects and sources (pixels)" ;
Definition: matchOptimisticB.h:81
lsst.pex::exceptions::InvalidParameterError
Reports invalid arguments.
Definition: Runtime.h:66
lsst::meas::astrom::MatchOptimisticBControl::minMatchedPairs
int minMatchedPairs
"minimum number of matches" ;
Definition: matchOptimisticB.h:79
std::string::empty
T empty(T... args)