lsst.jointcal
master-gc935ebf72c
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
src
RefStar.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
#include <algorithm>
3
#include <assert.h>
4
#include <iomanip>
5
6
#include "
lsst/jointcal/RefStar.h
"
7
8
namespace
lsst {
9
namespace
jointcal {
10
11
RefStar::RefStar
(
const
BaseStar
&baseStar) :
BaseStar
(baseStar), _index(0) {}
12
13
double
RefStar::getFlux
(
int
filter)
const
{
14
if
(filter < 0 && filter >= 10)
return
FP_INFINITE;
15
return
_refFlux[filter];
16
}
17
18
void
RefStar::assignRefFluxes
(std::vector<double>
const
&refFlux) {
19
_refFlux.clear();
20
copy(refFlux.begin(), refFlux.end(), back_inserter(_refFlux));
21
}
22
23
BaseStarList
&
Ref2Base
(
RefStarList
&This) {
return
(
BaseStarList
&)This; }
24
25
BaseStarList
*
Ref2Base
(
RefStarList
*This) {
return
(
BaseStarList
*)This; }
26
27
const
BaseStarList
&
Ref2Base
(
const
RefStarList
&This) {
return
(
const
BaseStarList
&)This; }
28
29
const
BaseStarList
*
Ref2Base
(
const
RefStarList
*This) {
return
(
BaseStarList
*)This; }
30
}
// namespace jointcal
31
}
// namespace lsst
RefStar.h
lsst::jointcal::RefStar::RefStar
RefStar(const BaseStar &baseStar)
Definition:
RefStar.cc:11
lsst::jointcal::BaseStar
The base class for handling stars. Used by all matching routines.
Definition:
BaseStar.h:26
lsst::jointcal::BaseStar::getFlux
double getFlux() const
Definition:
BaseStar.h:71
lsst::jointcal::StarList
std::lists of Stars.
Definition:
StarList.h:35
lsst::jointcal::RefStar::assignRefFluxes
void assignRefFluxes(std::vector< double > const &refFlux)
assign the reference fluxes
Definition:
RefStar.cc:18
lsst::jointcal::RefStarList
Definition:
RefStar.h:50
lsst::jointcal::Ref2Base
BaseStarList & Ref2Base(RefStarList &This)
Definition:
RefStar.cc:23
Generated on Mon Jun 19 2017 18:36:26 for lsst.jointcal by
1.8.5