LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
Functions
boost::serialization Namespace Reference

Functions

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)
 
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)
 

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 }
#define PTR(...)
Definition: base.h:41
int y
Point< double, 2 > Point2D
Definition: Point.h:277
int x
A kernel that is a linear combination of fixed basis kernels.
Definition: Kernel.h:814
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:42
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: Point.h:274
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 coordinate class intended to represent absolute positions.
A kernel that is a linear combination of fixed basis kernels.
Definition: Kernel.h:814
tbl::Key< tbl::Point< double > > averagePosition
Definition: CoaddPsf.cc:327
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:42
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