casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
GBTACSFiller.h
Go to the documentation of this file.
00001 //# GBTACSFiller: A GBTBackendFiller for ACS data
00002 //# Copyright (C) 2001,2002,2003
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be addressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //#
00027 //# $Id$
00028 
00029 #ifndef NRAO_GBTACSFILLER_H
00030 #define NRAO_GBTACSFILLER_H
00031 
00032 //#! Includes go here
00033 #include <casa/aips.h>
00034 #include <nrao/FITS/GBTAntennaFile.h>
00035 #include <nrao/FITS/GBTScanLogReader.h>
00036 #include <nrao/GBTFillers/GBTBackendFiller.h>
00037 
00038 #include <casa/Utilities/Regex.h>
00039 #include <casa/BasicSL/String.h>
00040 #include <tables/Tables/ScalarColumn.h>
00041 
00042 //# Forward Declarations
00043 namespace casa { //# NAMESPACE CASA - BEGIN
00044 template <class T> class Block;
00045 template <class T> class RORecordFieldPtr;
00046 } //# NAMESPACE CASA - END
00047 
00048 
00049 class GBTMultiACSTable;
00050 class GBTMSTypeFiller;
00051 class GBTMSTypeDataFiller;
00052 class GBTMSTypeSampFiller;
00053 class GBTMSTypeStateFiller;
00054 class GBTIFFiller;
00055 class GBTGOFiller;
00056 class GBTRcvrCalFiller;
00057 class GBTStateTable;
00058 
00059 #include <casa/namespace.h>
00060 
00061 // <summary>
00062 // A GBTBackendFiller for ACS data
00063 // </summary>
00064 
00065 // <use visibility=local>
00066 
00067 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
00068 // </reviewed>
00069 
00070 // <prerequisite>
00071 //   <li> <linkto class=GBTBackendFiller>GBTBackendFiller</linkto>
00072 //   <li> <linkto class=GBTACSTable>GBTACSTable</linkto>
00073 // </prerequisite>
00074 //
00075 // <etymology>
00076 // This fills GBT ACS data to a MS, hence GBTACSFiller.
00077 // </etymology>
00078 //
00079 // <synopsis>
00080 // </synopsis>
00081 //
00082 // <example>
00083 // </example>
00084 //
00085 // <motivation>
00086 // There exist Spectral Processor data at the GBT which needs to be filled.
00087 // </motivation>
00088 //
00089 // <todo asof="yyyy/mm/dd">
00090 //   <li> Probably many things.
00091 // </todo>
00092 
00093 class GBTACSFiller : public GBTBackendFiller
00094 {
00095 public:
00096     // construct one
00097     GBTACSFiller(const String &msName, const Regex &object);
00098     
00099     ~GBTACSFiller();
00100 
00101     virtual GBTScanLogReader::BACKENDS type() 
00102         {return GBTScanLogReader::ACS;}
00103 
00104     // fill a given backend file and DAP files
00105     virtual Bool fill(const String &backendFile,
00106                       const Block<String> &dapFiles,
00107                       const String &ifManagerFile,
00108                       const Block<String> &rxCalInfoFiles,
00109                       const GBTGOFile &goFile,
00110                       const String &antennaFile,
00111                       const GBTStateTable &masterState,
00112                       const GBTLO1File &LO1A,
00113                       const GBTLO1File &LO1B,
00114                       const GBTMSFillOptions &fillOptions)
00115     {return fill(Vector<String>(1,backendFile),dapFiles,ifManagerFile,
00116                  rxCalInfoFiles, goFile, antennaFile, masterState,
00117                  LO1A, LO1B, fillOptions);}
00118 
00119     // fill a set of backend files and DAP files
00120     virtual Bool fill(const Vector<String> &backendFiles,
00121                       const Block<String> &dapFiles,
00122                       const String &ifManagerFile,
00123                       const Block<String> &rxCalInfoFiles,
00124                       const GBTGOFile &goFile,
00125                       const String &antennaFile,
00126                       const GBTStateTable &masterState,
00127                       const GBTLO1File &LO1A,
00128                       const GBTLO1File &LO1B,
00129                       const GBTMSFillOptions &fillOptions);
00130 
00131 private:
00132     GBTMultiACSTable *spTab_p;
00133     String msName_p;
00134     Regex object_p;
00135 
00136     ScalarColumn<Int> ifId_p, gbtStateId_p, samplerId_p;
00137     ScalarColumn<String> gbtSRBank_p, gbtBank_p;
00138 
00139     ArrayColumn<Int> masterStateIds_p;
00140 
00141     // the associated tables
00142     GBTMSTypeDataFiller *typeDataTab_p;
00143     GBTMSTypeFiller *typeTab_p;
00144     GBTMSTypeStateFiller *typeStateTab_p;
00145     GBTMSTypeStateFiller *typeMasterStateTab_p;
00146     GBTMSTypeSampFiller *typeSampTab_p;
00147 
00148     Table *gbtPointingTab_p, *gbtFocusTab_p;
00149 
00150     // IF filler
00151     GBTIFFiller *ifFiller_p;
00152 
00153     // ANTENNA file
00154     GBTAntennaFile antennaFile_p;
00155 
00156     // RX CAL INFO files filler
00157     GBTRcvrCalFiller *rxCalFiller_p;
00158 
00159     // GO (user interface) filler
00160     GBTGOFiller *GOFiller_p;
00161 
00162     void attachColumns();
00163 
00164     void handleColumns();
00165 
00166     // unset and unavailable
00167     GBTACSFiller();
00168     GBTACSFiller(const GBTACSFiller &);
00169     GBTACSFiller &operator=(const GBTACSFiller &);
00170 };
00171 
00172 #endif
00173