LSSTApplications  20.0.0
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)