casa
$Rev:20696$
|
GBTFeedInfo is simple class used in GBTMSFeedFiller. More...
#include <GBTFeedInfo.h>
Public Member Functions | |
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. | |
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. | |
Int | srFeedNumber () const |
get the associated feed number | |
Private Attributes | |
Int | itsFeedNumber |
Int | itsPhysFeed |
Block< Int > | itsIFRows |
Vector< String > | itsPolz |
Vector< Double > | itsOffsets |
String | itsName |
Int | itsSRFeedNumber |
GBTFeedInfo is simple class used in GBTMSFeedFiller.
Internal
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.
Used internally in GBTMSFeedFiller.
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.
default constructor - initializes internals for unknown feed
GBTFeedInfo::GBTFeedInfo | ( | const GBTFeedInfo & | other | ) |
copy constructor - copy semantics
GBTFeedInfo::~GBTFeedInfo | ( | ) | [inline] |
Definition at line 75 of file GBTFeedInfo.h.
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] |
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] |
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.
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.
Int GBTFeedInfo::itsFeedNumber [private] |
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().
String GBTFeedInfo::itsName [private] |
Definition at line 127 of file GBTFeedInfo.h.
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().
Int GBTFeedInfo::itsSRFeedNumber [private] |
Definition at line 128 of file GBTFeedInfo.h.
Referenced by setSRFeedNumber(), and srFeedNumber().