LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Functions
boost::serialization Namespace Reference

Functions

template<class Archive >
void save_construct_data (Archive &ar, lsst::meas::algorithms::DoubleGaussianPsf const *p, unsigned int const )
 
template<class Archive >
void load_construct_data (Archive &ar, lsst::meas::algorithms::DoubleGaussianPsf *p, unsigned int const )
 
template<class Archive >
void save_construct_data (Archive &ar, lsst::meas::algorithms::PcaPsf const *p, unsigned int const)
 
template<class Archive >
void load_construct_data (Archive &ar, lsst::meas::algorithms::PcaPsf *p, unsigned int const)
 
template<class Archive >
void save_construct_data (Archive &ar, lsst::meas::algorithms::SingleGaussianPsf const *p, unsigned int const)
 
template<class Archive >
void load_construct_data (Archive &ar, lsst::meas::algorithms::SingleGaussianPsf *p, unsigned int const)
 
template<class Archive >
void save_construct_data (Archive &ar, lsst::afw::math::DeltaFunctionKernel const *k, unsigned int const file_version)
 
template<class Archive >
void load_construct_data (Archive &ar, lsst::afw::math::DeltaFunctionKernel *k, unsigned int const file_version)
 

Function Documentation

template<class Archive >
void boost::serialization::load_construct_data ( Archive &  ar,
lsst::meas::algorithms::PcaPsf p,
unsigned int  const 
)
inline

Definition at line 86 of file PcaPsf.h.

88  {
90  ar >> make_nvp("kernel", kernel);
91  double x=0.0, y=0.0;
92  ar >> make_nvp("averagePositionX", x);
93  ar >> make_nvp("averagePositionY", y);
94  ::new(p) lsst::meas::algorithms::PcaPsf(PTR(lsst::afw::math::LinearCombinationKernel)(kernel),
95  lsst::afw::geom::Point2D(x, y));
96 }
int y
#define PTR(...)
Definition: base.h:41
A kernel that is a linear combination of fixed basis kernels.
Definition: Kernel.h:814
int x
Point< double, 2 > Point2D
Definition: Point.h:286
template<class Archive >
void boost::serialization::load_construct_data ( Archive &  ar,
lsst::meas::algorithms::SingleGaussianPsf p,
unsigned int  const 
)
inline

Definition at line 95 of file SingleGaussianPsf.h.

97  {
98  int width;
99  int height;
100  double sigma;
101  ar >> make_nvp("width", width);
102  ar >> make_nvp("height", height);
103  ar >> make_nvp("sigma", sigma);
104  ::new(p) lsst::meas::algorithms::SingleGaussianPsf(width, height, sigma);
105 }
afw::table::Key< double > sigma
Definition: GaussianPsf.cc:43
template<class Archive >
void boost::serialization::load_construct_data ( Archive &  ar,
lsst::meas::algorithms::DoubleGaussianPsf p,
unsigned int  const 
)
inline

Definition at line 106 of file DoubleGaussianPsf.h.

109  {
110  int width;
111  int height;
112  double sigma1;
113  double sigma2;
114  double b;
115  ar >> make_nvp("width", width);
116  ar >> make_nvp("height", height);
117  ar >> make_nvp("sigma1", sigma1);
118  ar >> make_nvp("sigma2", sigma2);
119  ar >> make_nvp("b", b);
120  ::new(p) lsst::meas::algorithms::DoubleGaussianPsf(width, height, sigma1, sigma2, b);
121 }
afw::table::Key< double > sigma1
afw::table::Key< double > b
afw::table::Key< double > sigma2
template<class Archive >
void boost::serialization::load_construct_data ( Archive &  ar,
lsst::afw::math::DeltaFunctionKernel k,
unsigned int const  file_version 
)
inline

Definition at line 1174 of file Kernel.h.

1176  {
1177  int width;
1178  int height;
1179  int x;
1180  int y;
1181  ar >> make_nvp("width", width);
1182  ar >> make_nvp("height", height);
1183  ar >> make_nvp("pixX", x);
1184  ar >> make_nvp("pixY", y);
1185  ::new(k) lsst::afw::math::DeltaFunctionKernel(
1186  width, height, lsst::afw::geom::Point2I(x, y));
1187 }
int y
Point< int, 2 > Point2I
Definition: PSF.h:39
int x
template<class Archive >
void boost::serialization::save_construct_data ( Archive &  ar,
lsst::meas::algorithms::PcaPsf const *  p,
unsigned int  const 
)
inline

Definition at line 75 of file PcaPsf.h.

77  {
78  lsst::afw::math::LinearCombinationKernel const* kernel = p->getKernel().get();
79  ar << make_nvp("kernel", kernel);
80  lsst::afw::geom::Point2D averagePosition = p->getAveragePosition();
81  ar << make_nvp("averagePositionX", averagePosition.getX());
82  ar << make_nvp("averagePositionY", averagePosition.getY());
83 }
A kernel that is a linear combination of fixed basis kernels.
Definition: Kernel.h:814
tbl::PointKey< double > averagePosition
Definition: CoaddPsf.cc:319
template<class Archive >
void boost::serialization::save_construct_data ( Archive &  ar,
lsst::meas::algorithms::SingleGaussianPsf const *  p,
unsigned int  const 
)
inline

Definition at line 83 of file SingleGaussianPsf.h.

85  {
86  int width = p->getKernel()->getWidth();
87  int height = p->getKernel()->getHeight();
88  double sigma = p->getSigma();
89  ar << make_nvp("width", width);
90  ar << make_nvp("height", height);
91  ar << make_nvp("sigma", sigma);
92 }
afw::table::Key< double > sigma
Definition: GaussianPsf.cc:43
template<class Archive >
void boost::serialization::save_construct_data ( Archive &  ar,
lsst::meas::algorithms::DoubleGaussianPsf const *  p,
unsigned int  const 
)
inline

Definition at line 89 of file DoubleGaussianPsf.h.

92  {
93  int width = p->getKernel()->getWidth();
94  int height = p->getKernel()->getHeight();
95  double sigma1 = p->getSigma1();
96  double sigma2 = p->getSigma2();
97  double b = p->getB();
98  ar << make_nvp("width", width);
99  ar << make_nvp("height", height);
100  ar << make_nvp("sigma1", sigma1);
101  ar << make_nvp("sigma2", sigma2);
102  ar << make_nvp("b", b);
103 }
afw::table::Key< double > sigma1
afw::table::Key< double > b
afw::table::Key< double > sigma2
template<class Archive >
void boost::serialization::save_construct_data ( Archive &  ar,
lsst::afw::math::DeltaFunctionKernel const *  k,
unsigned int const  file_version 
)
inline

Definition at line 1160 of file Kernel.h.

1162  {
1163  int width = k->getWidth();
1164  int height = k->getHeight();
1165  int x = k->getPixel().getX();
1166  int y = k->getPixel().getY();
1167  ar << make_nvp("width", width);
1168  ar << make_nvp("height", height);
1169  ar << make_nvp("pixX", x);
1170  ar << make_nvp("pixY", y);
1171 }
int y
int x