LSST Applications  21.0.0+04719a4bac,21.0.0-1-ga51b5d4+f5e6047307,21.0.0-11-g2b59f77+a9c1acf22d,21.0.0-11-ga42c5b2+86977b0b17,21.0.0-12-gf4ce030+76814010d2,21.0.0-13-g1721dae+760e7a6536,21.0.0-13-g3a573fe+768d78a30a,21.0.0-15-g5a7caf0+f21cbc5713,21.0.0-16-g0fb55c1+b60e2d390c,21.0.0-19-g4cded4ca+71a93a33c0,21.0.0-2-g103fe59+bb20972958,21.0.0-2-g45278ab+04719a4bac,21.0.0-2-g5242d73+3ad5d60fb1,21.0.0-2-g7f82c8f+8babb168e8,21.0.0-2-g8f08a60+06509c8b61,21.0.0-2-g8faa9b5+616205b9df,21.0.0-2-ga326454+8babb168e8,21.0.0-2-gde069b7+5e4aea9c2f,21.0.0-2-gecfae73+1d3a86e577,21.0.0-2-gfc62afb+3ad5d60fb1,21.0.0-25-g1d57be3cd+e73869a214,21.0.0-3-g357aad2+ed88757d29,21.0.0-3-g4a4ce7f+3ad5d60fb1,21.0.0-3-g4be5c26+3ad5d60fb1,21.0.0-3-g65f322c+e0b24896a3,21.0.0-3-g7d9da8d+616205b9df,21.0.0-3-ge02ed75+a9c1acf22d,21.0.0-4-g591bb35+a9c1acf22d,21.0.0-4-g65b4814+b60e2d390c,21.0.0-4-gccdca77+0de219a2bc,21.0.0-4-ge8a399c+6c55c39e83,21.0.0-5-gd00fb1e+05fce91b99,21.0.0-6-gc675373+3ad5d60fb1,21.0.0-64-g1122c245+4fb2b8f86e,21.0.0-7-g04766d7+cd19d05db2,21.0.0-7-gdf92d54+04719a4bac,21.0.0-8-g5674e7b+d1bd76f71f,master-gac4afde19b+a9c1acf22d,w.2021.13
LSST Data Management Base Package
Public Types | Public Member Functions | Public Attributes | List of all members
lsst::jointcal::MeasuredStarList Class Reference

A list of MeasuredStar. They are usually filled in Associations::createCcdImage. More...

#include <MeasuredStar.h>

Inheritance diagram for lsst::jointcal::MeasuredStarList:
lsst::jointcal::StarList< MeasuredStar > std::list< T >

Public Types

typedef std::shared_ptr< MeasuredStarElement
 
typedef std::list< Element >::const_iterator StarCIterator
 
typedef std::list< Element >::iterator StarIterator
 

Public Member Functions

 MeasuredStarList ()
 
void setCcdImage (const CcdImage *_ccdImage)
 
void print (std::ostream &out) const
 invokes print(stream) for all Stars in the std::list. More...
 
void fluxSort ()
 a model routine to sort the std::list More...
 
void cutTail (const int nKeep)
 cuts the end of the std::list More...
 
void extractInFrame (StarList< MeasuredStar > &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 More...
 
void copyTo (StarList< MeasuredStar > &copy) const
 clears copy and makes a copy of the std::list to copy More...
 
void clearList ()
 Clears the std::list. More...
 
void applyTransform (const Operator &op)
 enables to apply a geometrical transform if Star is Basestar or derives from it. More...
 
pop_front (T... args)
 
push_back (T... args)
 
splice (T... args)
 
crbegin (T... args)
 
erase (T... args)
 
emplace_front (T... args)
 
insert (T... args)
 
reverse (T... args)
 
back (T... args)
 
end (T... args)
 
remove (T... args)
 
emplace_back (T... args)
 
pop_back (T... args)
 
cbegin (T... args)
 
front (T... args)
 
unique (T... args)
 
size (T... args)
 
resize (T... args)
 
push_front (T... args)
 
rbegin (T... args)
 
crend (T... args)
 
assign (T... args)
 
sort (T... args)
 
merge (T... args)
 
empty (T... args)
 
remove_if (T... args)
 
cend (T... args)
 
swap (T... args)
 
max_size (T... args)
 
rend (T... args)
 
get_allocator (T... args)
 
clear (T... args)
 
emplace (T... args)
 
begin (T... args)
 

Public Attributes

elements
 STL member. More...
 

Detailed Description

A list of MeasuredStar. They are usually filled in Associations::createCcdImage.

Definition at line 146 of file MeasuredStar.h.

Member Typedef Documentation

◆ Element

Definition at line 60 of file StarList.h.

◆ StarCIterator

typedef std::list<Element>::const_iterator lsst::jointcal::StarList< MeasuredStar >::StarCIterator
inherited

Definition at line 61 of file StarList.h.

◆ StarIterator

Definition at line 62 of file StarList.h.

Constructor & Destructor Documentation

◆ MeasuredStarList()

lsst::jointcal::MeasuredStarList::MeasuredStarList ( )
inline

Definition at line 148 of file MeasuredStar.h.

148 {};

Member Function Documentation

◆ applyTransform()

void lsst::jointcal::StarList< MeasuredStar >::applyTransform ( const Operator &  op)
inlineinherited

enables to apply a geometrical transform if Star is Basestar or derives from it.

could be extended to other type of transformations.

Definition at line 98 of file StarList.h.

98  {
99  for (auto &p : *this) op.transformStar(*(p));
100  }

◆ clearList()

void lsst::jointcal::StarList< MeasuredStar >::clearList ( )
inlineinherited

Clears the std::list.

Definition at line 92 of file StarList.h.

92 { cutTail(0); };
void cutTail(const int nKeep)
cuts the end of the std::list
Definition: StarList.cc:48

◆ copyTo()

void lsst::jointcal::StarList< MeasuredStar >::copyTo ( StarList< MeasuredStar > &  copy) const
inherited

clears copy and makes a copy of the std::list to copy

Definition at line 89 of file StarList.cc.

68  {
69  copy.clearList();
70  for (auto const &si : *this) copy.push_back(std::make_shared<Star>(*si));
71 }
T copy(T... args)

◆ cutTail()

void lsst::jointcal::StarList< MeasuredStar >::cutTail ( const int  nKeep)
inherited

cuts the end of the std::list

Definition at line 83 of file StarList.cc.

48  {
49  int count = 0;
50  auto si = this->begin();
51  for (; si != this->end() && count < nKeep; ++count, ++si)
52  ;
53  while (si != this->end()) {
54  si = this->erase(si);
55  }
56 }
T begin(T... args)
T count(T... args)
T end(T... args)
T erase(T... args)

◆ extractInFrame()

void lsst::jointcal::StarList< MeasuredStar >::extractInFrame ( StarList< MeasuredStar > &  out,
const Frame frame 
) const
inherited

copy the part of the std::list which is included in the frame at the end of another std::list

Definition at line 86 of file StarList.cc.

59  {
60  for (auto const &star : *this) {
61  if (frame.inFrame(*star)) {
62  out.push_back(std::make_shared<Star>(*star));
63  }
64  }
65 }

◆ fluxSort()

void lsst::jointcal::StarList< MeasuredStar >::fluxSort
inherited

a model routine to sort the std::list

see decreasingFlux() to see what it is, if you want another sorting criterion)

Definition at line 80 of file StarList.cc.

42  {
43  typedef StarList<Star>::Element E;
44  this->sort([](const E &e1, const E &e2) { return (e1->getFlux() > e2->getFlux()); });
45 }
T sort(T... args)

◆ print()

void lsst::jointcal::StarList< MeasuredStar >::print ( std::ostream out) const
inlineinherited

invokes print(stream) for all Stars in the std::list.

Definition at line 72 of file StarList.h.

72  {
73  for (auto &p : *this) p->print(out);
74  }

◆ setCcdImage()

void lsst::jointcal::MeasuredStarList::setCcdImage ( const CcdImage _ccdImage)

Definition at line 68 of file MeasuredStar.cc.

68  {
69  for (auto &i : *this) i->setCcdImage(ccdImage);
70 }

Member Data Documentation

◆ elements

T std::list< T >::elements
inherited

STL member.


The documentation for this class was generated from the following files: