lsst.jointcal
master-g9041cab851
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
include
lsst
jointcal
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
22
struct
JointcalControl
{
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.
27
sourceFluxField
(
sourceFluxField
) {
28
validate
();
29
}
30
31
~JointcalControl
(){};
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
lsst::jointcal::JointcalControl
Definition:
JointcalControl.h:22
lsst::jointcal::JointcalControl::JointcalControl
JointcalControl(std::string const &sourceFluxField="slot_CalibFlux")
Definition:
JointcalControl.h:25
lsst::jointcal::JointcalControl::validate
void validate() const
Definition:
JointcalControl.h:33
lsst::jointcal::JointcalControl::sourceFluxField
std::string sourceFluxField
"name of flux field in source catalog" ;
Definition:
JointcalControl.h:23
lsst::jointcal::JointcalControl::~JointcalControl
~JointcalControl()
Definition:
JointcalControl.h:31
Generated on Fri Aug 11 2017 09:37:39 for lsst.jointcal by
1.8.5