casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
GBTFeedInfo Class Reference

GBTFeedInfo is simple class used in GBTMSFeedFiller. More...

#include <GBTFeedInfo.h>

List of all members.

Public Member Functions

 GBTFeedInfo ()
 default constructor - initializes internals for unknown feed
 GBTFeedInfo (const GBTFeedInfo &other)
 copy constructor - copy semantics
 ~GBTFeedInfo ()
GBTFeedInfooperator= (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.
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 Stringname () const
 get the name
void setSRFeedNumber (Int feedNumber)
 set the feed number of the associated feed, if any.
Int srFeedNumber () const
 get the associated feed number

Private Attributes

Int itsFeedNumber
Int itsPhysFeed
Block< Int > itsIFRows
Vector< StringitsPolz
Vector< Double > itsOffsets
String itsName
Int itsSRFeedNumber

Detailed Description

GBTFeedInfo is simple class used in GBTMSFeedFiller.

Intended use:

Internal

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.

Definition at line 65 of file GBTFeedInfo.h.


Constructor & Destructor Documentation

default constructor - initializes internals for unknown feed

copy constructor - copy semantics

Definition at line 75 of file GBTFeedInfo.h.


Member Function Documentation

void GBTFeedInfo::addRow ( Int  whichRow)

add a row to the set of if rows that map to this feed

Int GBTFeedInfo::feedNumber ( ) const [inline]

get/set the feed number as used in the ifloHelper

Definition at line 81 of file GBTFeedInfo.h.

References itsFeedNumber.

Referenced by setFeedNumber(), and setSRFeedNumber().

const Block<Int> GBTFeedInfo::ifRows ( ) const [inline]

get the rows in the IF table that map to this feed

Definition at line 89 of file GBTFeedInfo.h.

References itsIFRows.

const String& GBTFeedInfo::name ( ) const [inline]

get the name

Definition at line 112 of file GBTFeedInfo.h.

References itsName.

Referenced by setName().

const Vector<Double>& GBTFeedInfo::offsets ( ) const [inline]

get the vector of offsets

Definition at line 107 of file GBTFeedInfo.h.

References itsOffsets.

GBTFeedInfo& GBTFeedInfo::operator= ( const GBTFeedInfo other)

assignment operator - copy semantics

Int GBTFeedInfo::physFeed ( ) const [inline]

get/set the physical feed number

Definition at line 85 of file GBTFeedInfo.h.

References itsPhysFeed.

Referenced by setPhysFeed().

const Vector<String>& GBTFeedInfo::polarize ( ) const [inline]

get the polarization vector

Definition at line 101 of file GBTFeedInfo.h.

References itsPolz.

void GBTFeedInfo::setFeedNumber ( Int  feedNumber) [inline]

Definition at line 82 of file GBTFeedInfo.h.

References feedNumber(), and itsFeedNumber.

void GBTFeedInfo::setName ( const String name) [inline]

set the name this is known by

Definition at line 110 of file GBTFeedInfo.h.

References itsName, and name().

void GBTFeedInfo::setOffsets ( Double  xeloffset,
Double  eloffset 
)

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

void GBTFeedInfo::setPhysFeed ( Int  physFeed) [inline]

Definition at line 86 of file GBTFeedInfo.h.

References itsPhysFeed, and physFeed().

void GBTFeedInfo::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.

void GBTFeedInfo::setSRFeedNumber ( Int  feedNumber) [inline]

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.

Definition at line 118 of file GBTFeedInfo.h.

References feedNumber(), and itsSRFeedNumber.

Int GBTFeedInfo::srFeedNumber ( ) const [inline]

get the associated feed number

Definition at line 120 of file GBTFeedInfo.h.

References itsSRFeedNumber.


Member Data Documentation

Definition at line 123 of file GBTFeedInfo.h.

Referenced by feedNumber(), and setFeedNumber().

Block<Int> GBTFeedInfo::itsIFRows [private]

Definition at line 124 of file GBTFeedInfo.h.

Referenced by ifRows().

Definition at line 127 of file GBTFeedInfo.h.

Referenced by name(), and setName().

Vector<Double> GBTFeedInfo::itsOffsets [private]

Definition at line 126 of file GBTFeedInfo.h.

Referenced by offsets().

Int GBTFeedInfo::itsPhysFeed [private]

Definition at line 123 of file GBTFeedInfo.h.

Referenced by physFeed(), and setPhysFeed().

Vector<String> GBTFeedInfo::itsPolz [private]

Definition at line 125 of file GBTFeedInfo.h.

Referenced by polarize().

Definition at line 128 of file GBTFeedInfo.h.

Referenced by setSRFeedNumber(), and srFeedNumber().


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