lsst.jointcal  master-gc5b79683b0+3
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"
15 #include "lsst/afw/image/VisitInfo.h"
16 #include "lsst/afw/geom/Box.h"
17 #include "lsst/daf/base/PropertySet.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
Class for a simple mapping implementing a generic Gtransfo.
Definition: Associations.h:24
JointcalControl(std::string const &sourceFluxField="slot_CalibFlux")
std::string sourceFluxField
"name of flux field in source catalog" ;