lsst.jointcal  14.0-26-gc4bc114+7
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 
14 namespace lsst {
15 namespace jointcal {
16 
18  LSST_CONTROL_FIELD(sourceFluxField, std::string, "name of flux field in source catalog");
19 
20  explicit JointcalControl(std::string const& sourceFluxField = "slot_CalibFlux")
21  : // Set sourceFluxType to the value used in the source selector.
23  validate();
24  }
25 
27 
28  void validate() const {
29  if (sourceFluxField.empty()) {
30  throw LSST_EXCEPT(pexExcept::InvalidParameterError, "sourceFluxField must be specified");
31  }
32  }
33 };
34 } // namespace jointcal
35 } // namespace lsst
36 
37 #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" ;