GBTFeedInfo.h

Classes

GBTFeedInfo -- GBTFeedInfo is simple class used in GBTMSFeedFiller (full description)

class GBTFeedInfo

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

Description

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

GBTFeedInfo()

default constructor - initializes internals for unknown feed

GBTFeedInfo(const GBTFeedInfo &other)

copy constructor - copy semantics

~GBTFeedInfo()

GBTFeedInfo &operator=(const GBTFeedInfo &other)

assignment operator - copy semantics

Int feedNumber() const

get/set the feed number as used in the ifloHelper

void setFeedNumber(Int feedNumber)

Int physFeed() const

get/set the physical feed number

void setPhysFeed(Int physFeed)

const Block<Int> ifRows() const

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.

const Vector<String> &polarize() const

get the polarization vector

void setOffsets(Double xeloffset, Double eloffset)

set the xel and el offsets - converts from degrees to radians

const Vector<Double> &offsets() const

get the vector of offsets

void setName(const String &name)

set the name this is known by

const String &name() const

get the name

void setSRFeedNumber(Int feedNumber)

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.

Int srFeedNumber() const

get the associated feed number