GBTFeedDDFiller.h

Classes

GBTFeedDDFiller -- This class fills the FEED and DATA_DESCRIPTION tables for GBT data. (full description)

class GBTFeedDDFiller

Interface

Public Members
GBTFeedDDFiller()
GBTFeedDDFiller(MeasurementSet &ms)
~GBTFeedDDFiller()
void attach(MeasurementSet &ms)
Bool isAttached()
Bool fill(const GBTBackendTable &backend, const GBTIFFiller &iffiller, const GBTAntennaFile &antFile, const GBTLO1File &lo1aFile, const GBTLO1File &lo1bFile, const String &swtchsig, Bool continuum = False, Bool bankCheck = False)
uInt nfeeds()
uInt nstates()
const GBTFeed &feed(uInt whichFeed) const
GBTFeed &feed(uInt whichFeed)
void setTime(Double time, Double interval)
void flush()
Bool hasBeamSwitched()
void origin() const
uInt ncorr() const
void next() const
const GBTFeed &currFeed() const
const GBTIF &currIF() const
const GBTCorrelation &currCorr() const
Private Members
void clear()
void digestFeeds(const GBTAntennaFile &antFile, const GBTIFFiller &iffiller, const String &swtchsig)
void digestSampler(const GBTBackendTable &backend, const GBTIFFiller &iffiller, const GBTLO1File &lo1aFile, const GBTLO1File &lo1bFile, Bool continuum, Bool bankCheck)
void fillMSSW()
void findOtherBanks(const GBTIFFiller &iffiller)
GBTFeedDDFiller(const GBTFeedDDFiller &)
GBTFeedDDFiller &operator=(const GBTFeedDDFiller &)

Description

Review Status

Date Reviewed:
yyyy/mm/dd
Programs:
Tests:

Prerequisite

Etymology

This class takes the GBT backend FITS file, IF manager file and Antenna manager file for a scan, digests them so that each sampler is associated with a FEED and IF. At that point, the FEED, POLARIZATION, SPECTRAL_WINDOW, and DATA_DESCRIPTION tables can all be filled.

Synopsis

Example

Motivation

Member Description

GBTFeedDDFiller()

Default constructor, not associated with any parent MeasurementSet. This is useful only when this object must exist before the MS does. An MS can be attached later. If fill is called before the MS is attached, it will return False.

GBTFeedDDFiller(MeasurementSet &ms)

Construct this attached to the associated MS.

~GBTFeedDDFiller()

void attach(MeasurementSet &ms)

attach this to a MS, breaks any existing attachments

Bool isAttached()

Bool fill(const GBTBackendTable &backend, const GBTIFFiller &iffiller, const GBTAntennaFile &antFile, const GBTLO1File &lo1aFile, const GBTLO1File &lo1bFile, const String &swtchsig, Bool continuum = False, Bool bankCheck = False)

digest the scan using these tables/files and fill to the appropriate sub-tables. Returns False if there is no MS attached. Selection on a specific backend has already occured in the GBTIFFiller setup which should correspond to the backend that sampler is from. If continuum is True then the doppler info from the LO1 tables will be ignored in the GBTIF constructor. Also, at this time each correlation will contain just one receptor. If bankCheck is true then checks occur which are only appropriate to the multi-bank ACS case.

uInt nfeeds()

The number of feeds just filled.

uInt nstates()

Number of states for things just filled.

const GBTFeed &feed(uInt whichFeed) const

Get a specific GBTFeed - 0 through nfeeds()-1

GBTFeed &feed(uInt whichFeed)

Get a specific GBTFeed to possibley modify - 0 through nfeeds()-1

void setTime(Double time, Double interval)

Set the midpoint and interval for this scan - generally this isn't known until after most of this information is filled and need. This only affects the FEED subtable.

void flush()

flush all associated fillers

Bool hasBeamSwitched()

Does this most recently filled data contain any beam switched data?

void origin() const

These functions allow one to easily iterate through and get the IDs and sampler row numbers for each of the correlations and states involved in all feeds in the most recently filled data.

Reset the iterator to the top.

uInt ncorr() const

These functions allow one to easily iterate through and get the IDs and sampler row numbers for each of the correlations and states involved in all feeds in the most recently filled data.

The total number of correlations, all feeds.

void next() const

These functions allow one to easily iterate through and get the IDs and sampler row numbers for each of the correlations and states involved in all feeds in the most recently filled data.

Move to the next correlation. Can do this ncorr() times after origin().

const GBTFeed &currFeed() const

These functions allow one to easily iterate through and get the IDs and sampler row numbers for each of the correlations and states involved in all feeds in the most recently filled data.

The current feed

const GBTIF &currIF() const

These functions allow one to easily iterate through and get the IDs and sampler row numbers for each of the correlations and states involved in all feeds in the most recently filled data.

The current IF

const GBTCorrelation &currCorr() const

These functions allow one to easily iterate through and get the IDs and sampler row numbers for each of the correlations and states involved in all feeds in the most recently filled data.

The current correlation

void clear()

void digestFeeds(const GBTAntennaFile &antFile, const GBTIFFiller &iffiller, const String &swtchsig)

void digestSampler(const GBTBackendTable &backend, const GBTIFFiller &iffiller, const GBTLO1File &lo1aFile, const GBTLO1File &lo1bFile, Bool continuum, Bool bankCheck)

void fillMSSW()

void findOtherBanks(const GBTIFFiller &iffiller)

GBTFeedDDFiller(const GBTFeedDDFiller &)

GBTFeedDDFiller &operator=(const GBTFeedDDFiller &)