lsst.jointcal  14.0-13-g0c7ec64
JointcalControl.h
Go to the documentation of this file.
1 // -*- LSST-C++ -*-
2 // -*- LSST-C++ -*-
3 #ifndef LSST_JOINTCAL_JOINTCAL_CONTROL_H
4 #define LSST_JOINTCAL_JOINTCAL_CONTROL_H
5 
6 #include <cmath>
7 #include <string>
8 #include <vector>
9 #include <tuple>
10 
11 #include "lsst/pex/config.h"
12 #include "lsst/afw/table/Source.h"
13 #include "lsst/afw/image/Wcs.h"
14 #include "lsst/afw/image/Calib.h"
16 #include "lsst/afw/geom/Box.h"
18 
19 namespace lsst {
20 namespace jointcal {
21 
23  LSST_CONTROL_FIELD(sourceFluxField, std::string, "name of flux field in source catalog");
24 
25  explicit JointcalControl(std::string const& sourceFluxField = "slot_CalibFlux")
26  : // Set sourceFluxType to the value used in the source selector.
28  validate();
29  }
30 
32 
33  void validate() const {
34  if (sourceFluxField.empty()) {
35  throw LSST_EXCEPT(pexExcept::InvalidParameterError, "sourceFluxField must be specified");
36  }
37  }
38 };
39 } // namespace jointcal
40 } // namespace lsst
41 
42 #endif // LSST_JOINTCAL_JOINTCAL_CONTROL_H
T empty(T... args)
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
STL class.
Class for a simple mapping implementing a generic Gtransfo.
JointcalControl(std::string const &sourceFluxField="slot_CalibFlux")
#define LSST_EXCEPT(type,...)
std::string sourceFluxField
"name of flux field in source catalog" ;