4 #include "lsst/pex/exceptions.h"
12 namespace pexExcept = lsst::pex::exceptions;
20 this->sort([](
const E &e1,
const E &e2) {
return (e1->getFlux() > e2->getFlux()); });
26 auto si = this->begin();
27 for (; si != this->end() && count < nKeep; ++count, ++si)
29 while (si != this->end()) {
36 for (
auto const &star : *
this) {
38 out.push_back(std::make_shared<Star>(*star));
47 for (
auto const &si : *
this) copy.push_back(std::make_shared<Star>(*si));
std::shared_ptr< Star > Element
void copyTo(StarList< Star > ©) const
clears copy and makes a copy of the std::list to copy
void cutTail(const int nKeep)
cuts the end of the std::list
rectangle with sides parallel to axes.
void clearList()
Clears the std::list.
void fluxSort()
a model routine to sort the std::list
void extractInFrame(StarList< Star > &out, const Frame &frame) const
copy the part of the std::list which is included in the frame at the end of another std::list ...
bool inFrame(double x, double y) const
inside?