1 #ifndef LSST_JOINTCAL_PHOTOMETRY_FIT_H
2 #define LSST_JOINTCAL_PHOTOMETRY_FIT_H
24 std::string _whatToFit;
25 bool _fittingModel, _fittingFluxes;
26 unsigned _nParModel, _nParTot;
55 bool minimize(
const std::string &whatToFit);
100 template <
class ListType,
class Accum>
101 void accumulateStat(ListType &listType, Accum &accum)
const;
107 void getMeasuredStarIndices(
const MeasuredStar &measuredStar, std::vector<unsigned> &indices)
const;
110 void LSDerivatives2(
TripletList &tripletList, Eigen::VectorXd &rhs)
const;
116 unsigned removeOutliers(
double nSigCut);
119 void makeMeasResTuple(
const std::string &tupleName)
const;
122 void makeRefResTuple(
const std::string &tupleName)
const;
126 const Point &refractionVector,
double refractionCoeff,
double mjd)
const;
129 void getMeasuredStarIndices(
const MeasuredStar &measuredStar, std::vector<unsigned> &indices)
const;
134 #endif // LSST_JOINTCAL_PHOTOMETRY_FIT_H
Chi2 computeChi2() const
Returns a chi2 for the current state.
void LSDerivatives(TripletList &tripletList, Eigen::VectorXd &rhs) const
Derivatives of the Chi2.
bool minimize(const std::string &whatToFit)
Does a 1 step minimization, assuming a linear model.
The class that implements the relations between MeasuredStar and FittedStar.
A list of MeasuredStar. They are usually filled in Associations::AddImage.
void assignIndices(const std::string &whatToFit)
Set parameter groups fixed or variable and assign indices to each parameter in the big matrix (which ...
Simple structure to accumulate Chi2 and Ndof.
PhotometryFit(Associations &associations, PhotometryModel *model)
this is the only constructor
objects measured on actual images.
Class that handles the photometric least squares problem.
Interface class for PhotometryFit.
a virtual (interface) class for geometric transformations.
void makeResTuple(const std::string &tupleName) const
Produces an ntuple.
Handler of an actual image from a single CCD.
void offsetParams(const Eigen::VectorXd &delta)
Offset the parameters by the requested quantities.
The objects which have been measured several times.