GBTFeedInfo.h
Classes
- GBTFeedInfo -- GBTFeedInfo is simple class used in GBTMSFeedFiller (full description)
Interface
- Public Members
- GBTFeedInfo()
- GBTFeedInfo(const GBTFeedInfo &other)
- ~GBTFeedInfo()
- GBTFeedInfo &operator=(const GBTFeedInfo &other)
- Int feedNumber() const
- void setFeedNumber(Int feedNumber)
- Int physFeed() const
- void setPhysFeed(Int physFeed)
- const Block<Int> ifRows() const
- void addRow(Int whichRow)
- void setPol(const String &pol, Int whichRec, Int nrec)
- const Vector<String> &polarize() const
- void setOffsets(Double xeloffset, Double eloffset)
- const Vector<Double> &offsets() const
- void setName(const String &name)
- const String &name() const
- void setSRFeedNumber(Int feedNumber)
- Int srFeedNumber() const
Review Status
- Date Reviewed:
- yyyy/mm/dd
Etymology
The FEED filler needs to keep track of related information to
sort out what feeds need to be filled with unique FEED_IDs.
This class keeps that all together for each feed to be filled.
Synopsis
Used internally in GBTMSFeedFiller.
Motivation
Book-keeping in the code using Block, Matricies, et al was getting
too cumbersom primarily because the number of receptors on a given
feed can vary. Putting it in here cleans up the code in the filler.
Member Description
default constructor - initializes internals for unknown feed
GBTFeedInfo(const GBTFeedInfo &other)
copy constructor - copy semantics
GBTFeedInfo &operator=(const GBTFeedInfo &other)
assignment operator - copy semantics
get/set the feed number as used in the ifloHelper
get/set the physical feed number
get the rows in the IF table that map to this feed
void addRow(Int whichRow)
add a row to the set of if rows that map to this feed
void setPol(const String &pol, Int whichRec, Int nrec)
set the polarization information for the indicated
receptor and also set the number of receptors if not
otherwise set. If nrec is not equal to the current
size of the polarization vector, it will be resized
and all of its contents will be lost.
get the polarization vector
void setOffsets(Double xeloffset, Double eloffset)
set the xel and el offsets - converts from degrees to radians
get the vector of offsets
set the name this is known by
get the name
set the feed number of the associated feed, if any.
Set this to itself if there is no associated feed.
This number should be the feedNumber() of the
associated feed.
get the associated feed number