LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Private Attributes | List of all members
lsst::afw::cameraGeom::CameraSys Class Reference

#include <CameraSys.h>

Public Member Functions

 CameraSys (std::string const &sysName, std::string const &detectorName="")
 
 CameraSys (CameraSysPrefix const &sysPrefix, std::string const &detectorName="")
 
 CameraSys ()
 default constructor so SWIG can wrap a vector of pairs containing these More...
 
std::string getSysName () const
 
std::string getDetectorName () const
 
bool hasDetectorName () const
 
bool operator== (CameraSys const &rhs) const
 
bool operator!= (CameraSys const &rhs) const
 
bool operator< (CameraSys const &rhs) const
 

Private Attributes

std::string _sysName
 coordinate system name More...
 
std::string _detectorName
 detector name; "" if not a detector-specific coordinate system More...
 

Detailed Description

Camera coordinate system; used as a key in in TransformMap

Note
When TransformMap switches to using unordered_map, a good way to compute the hash is: size_t hash = 0; boost::hash_combine(hash, cameraSys.getSysName()); boost::hash_combine(hash, cameraSys.getDetectorName()); return hash;

Definition at line 77 of file CameraSys.h.

Constructor & Destructor Documentation

lsst::afw::cameraGeom::CameraSys::CameraSys ( std::string const &  sysName,
std::string const &  detectorName = "" 
)
inlineexplicit

Construct a CameraSys from a sysName and a detectorName

Parameters
sysNamecoordinate system name
detectorNamedetector name

Definition at line 82 of file CameraSys.h.

85  : _sysName(sysName), _detectorName(detectorName) {};
std::string _detectorName
detector name; &quot;&quot; if not a detector-specific coordinate system
Definition: CameraSys.h:132
std::string _sysName
coordinate system name
Definition: CameraSys.h:131
lsst::afw::cameraGeom::CameraSys::CameraSys ( CameraSysPrefix const &  sysPrefix,
std::string const &  detectorName = "" 
)
inlineexplicit

Construct a CameraSys from a CameraSysPrefix and a detectorName

Parameters
sysPrefixcoordinate system prefix
detectorNamedetector name

Definition at line 90 of file CameraSys.h.

93  : _sysName(sysPrefix.getSysName()), _detectorName(detectorName) {};
std::string _detectorName
detector name; &quot;&quot; if not a detector-specific coordinate system
Definition: CameraSys.h:132
std::string _sysName
coordinate system name
Definition: CameraSys.h:131
lsst::afw::cameraGeom::CameraSys::CameraSys ( )
inline

default constructor so SWIG can wrap a vector of pairs containing these

Definition at line 96 of file CameraSys.h.

96 : _sysName("?"), _detectorName() {};
std::string _detectorName
detector name; &quot;&quot; if not a detector-specific coordinate system
Definition: CameraSys.h:132
std::string _sysName
coordinate system name
Definition: CameraSys.h:131

Member Function Documentation

std::string lsst::afw::cameraGeom::CameraSys::getDetectorName ( ) const
inline

Get detector name, or "" if not a detector-specific coordinate system

Definition at line 106 of file CameraSys.h.

106 { return _detectorName; };
std::string _detectorName
detector name; &quot;&quot; if not a detector-specific coordinate system
Definition: CameraSys.h:132
std::string lsst::afw::cameraGeom::CameraSys::getSysName ( ) const
inline

Get coordinate system name

Definition at line 101 of file CameraSys.h.

101 { return _sysName; };
std::string _sysName
coordinate system name
Definition: CameraSys.h:131
bool lsst::afw::cameraGeom::CameraSys::hasDetectorName ( ) const
inline

Does this have a non-blank detector name?

Definition at line 111 of file CameraSys.h.

111 { return !_detectorName.empty(); }
std::string _detectorName
detector name; &quot;&quot; if not a detector-specific coordinate system
Definition: CameraSys.h:132
bool lsst::afw::cameraGeom::CameraSys::operator!= ( CameraSys const &  rhs) const
inline

Definition at line 117 of file CameraSys.h.

117  {
118  return !(*this == rhs);
119  }
bool lsst::afw::cameraGeom::CameraSys::operator< ( CameraSys const &  rhs) const
inline

Definition at line 122 of file CameraSys.h.

122  {
123  if (_sysName == rhs.getSysName()) {
124  return _detectorName < rhs.getDetectorName();
125  } else {
126  return _sysName < rhs.getSysName();
127  }
128  }
std::string _detectorName
detector name; &quot;&quot; if not a detector-specific coordinate system
Definition: CameraSys.h:132
std::string _sysName
coordinate system name
Definition: CameraSys.h:131
bool lsst::afw::cameraGeom::CameraSys::operator== ( CameraSys const &  rhs) const
inline

Definition at line 113 of file CameraSys.h.

113  {
114  return _sysName == rhs.getSysName() && _detectorName == rhs.getDetectorName();
115  }
std::string _detectorName
detector name; &quot;&quot; if not a detector-specific coordinate system
Definition: CameraSys.h:132
std::string _sysName
coordinate system name
Definition: CameraSys.h:131

Member Data Documentation

std::string lsst::afw::cameraGeom::CameraSys::_detectorName
private

detector name; "" if not a detector-specific coordinate system

Definition at line 132 of file CameraSys.h.

std::string lsst::afw::cameraGeom::CameraSys::_sysName
private

coordinate system name

Definition at line 131 of file CameraSys.h.


The documentation for this class was generated from the following file: