LCOV - code coverage report
Current view: top level - synthesis/TransformMachines - VBStore.h (source / functions) Hit Total Coverage
Test: ctest_coverage.info Lines: 0 16 0.0 %
Date: 2023-11-06 10:06:49 Functions: 0 4 0.0 %

          Line data    Source code
       1             : // -*- C++ -*-
       2             : //# VBStore.h: Definition of the VBStore class
       3             : //# Copyright (C) 1997,1998,1999,2000,2001,2002,2003
       4             : //# Associated Universities, Inc. Washington DC, USA.
       5             : //#
       6             : //# This library is free software; you can redistribute it and/or modify it
       7             : //# under the terms of the GNU Library General Public License as published by
       8             : //# the Free Software Foundation; either version 2 of the License, or (at your
       9             : //# option) any later version.
      10             : //#
      11             : //# This library is distributed in the hope that it will be useful, but WITHOUT
      12             : //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
      13             : //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
      14             : //# License for more details.
      15             : //#
      16             : //# You should have received a copy of the GNU Library General Public License
      17             : //# along with this library; if not, write to the Free Software Foundation,
      18             : //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
      19             : //#
      20             : //# Correspondence concerning AIPS++ should be addressed as follows:
      21             : //#        Internet email: aips2-request@nrao.edu.
      22             : //#        Postal address: AIPS++ Project Office
      23             : //#                        National Radio Astronomy Observatory
      24             : //#                        520 Edgemont Road
      25             : //#                        Charlottesville, VA 22903-2475 USA
      26             : //#
      27             : //# $Id$
      28             : #ifndef SYNTHESIS_VBSTORE_H
      29             : #define SYNTHESIS_VBSTORE_H
      30             : #include <synthesis/TransformMachines/Utils.h>
      31             : #include <synthesis/TransformMachines/CFBuffer.h>
      32             : 
      33             : namespace casa { //# NAMESPACE CASA - BEGIN
      34             :   class VBStore
      35             :   {
      36             :   public:
      37           0 :     VBStore():dopsf_p(false) {};
      38           0 :     ~VBStore() {};
      39             :     inline casacore::Int nRow()              {return nRow_p;};
      40             :     inline casacore::Int beginRow()          {return beginRow_p;}
      41             :     inline casacore::Int endRow()            {return endRow_p;}
      42             :     inline casacore::Int spwID()             {return spwID_p;}
      43             :     inline casacore::Bool dopsf()            {return dopsf_p;}
      44             :     inline casacore::Bool useCorrected()     {return useCorrected_p;};
      45             :     casacore::Matrix<casacore::Double>& uvw()          {return uvw_p;};
      46             :     casacore::Vector<casacore::Bool>& rowFlag()        {return rowFlag_p;};
      47             :     casacore::Cube<casacore::Bool>& flagCube()         {return flagCube_p;};
      48             :     casacore::Matrix<casacore::Float>& imagingWeight() {return imagingWeight_p;};
      49             :     casacore::Cube<casacore::Complex>& visCube()       {return visCube_p;};
      50             :     casacore::Vector<casacore::Double>& freq()         {return freq_p;};
      51             :     casacore::Cube<casacore::Complex>& modelCube()     {return modelCube_p;};
      52             :     casacore::Cube<casacore::Complex>& correctedCube() {return correctedCube_p;};
      53             :     casacore::Quantity pa()                  {return paQuant_p;}
      54             :     const VisBuffer& vb()          {return *vb_p;}
      55           0 :     casacore::Double imRefFreq()             {return imRefFreq_p;}
      56             : 
      57           0 :     void reference(const VBStore& other)
      58             :     {
      59           0 :       nRow_p=other.nRow_p;  beginRow_p=other.beginRow_p; endRow_p=other.endRow_p;
      60           0 :       dopsf_p = other.dopsf_p;
      61           0 :       useCorrected_p = other.useCorrected_p;
      62             : 
      63           0 :       uvw_p.reference(other.uvw_p);
      64           0 :       rowFlag_p.reference(other.rowFlag_p);
      65           0 :       flagCube_p.reference(other.flagCube_p);
      66           0 :       imagingWeight_p.reference(other.imagingWeight_p);
      67           0 :       freq_p.reference(other.freq_p);
      68             :       // if (useCorrected_p) correctedCube_p.reference(other.correctedCube_p);
      69             :       // else visCube_p.reference(other.visCube_p);
      70             :       // if (useCorrected_p) 
      71             :       //        {
      72             :       //          correctedCube_p.reference(other.correctedCube_p);
      73             :       //          visCube_p.reference(other.correctedCube_p);
      74             :       //        }
      75             :       // else visCube_p.reference(other.visCube_p);
      76           0 :       correctedCube_p.reference(other.correctedCube_p);
      77           0 :       visCube_p.reference(other.visCube_p);
      78           0 :       modelCube_p.reference(other.modelCube_p);
      79             : 
      80             :       // uvw_p.assign(other.uvw_p);
      81             :       // rowFlag_p.assign(other.rowFlag_p);
      82             :       // flagCube_p.assign(other.flagCube_p);
      83             :       // imagingWeight_p.assign(other.imagingWeight_p);
      84             :       // freq_p.assign(other.freq_p);
      85             :       // visCube_p.assign(other.visCube_p);
      86             :       // modelCube_p.assign(other.modelCube_p);
      87             :       // correctedCube_p.assign(other.correctedCube_p);
      88           0 :     }
      89             : 
      90             :     casacore::Int nRow_p, beginRow_p, endRow_p, spwID_p, startChan_p, endChan_p,nDataChan_p, nDataPol_p;
      91             :     casacore::Matrix<casacore::Double> uvw_p;
      92             :     casacore::Vector<casacore::Bool> rowFlag_p;
      93             :     casacore::Cube<casacore::Bool> flagCube_p;
      94             :     casacore::Matrix<casacore::Float> imagingWeight_p;
      95             :     casacore::Cube<casacore::Complex> visCube_p, modelCube_p, correctedCube_p;
      96             :     casacore::Vector<casacore::Double> freq_p;
      97             :     casacore::Bool dopsf_p,useCorrected_p, conjBeams_p;
      98             :     casacore::Vector<casacore::Int> corrType_p;
      99             :     casacore::Quantity paQuant_p;
     100             :     casacore::Vector<casacore::Int> antenna1_p, antenna2_p;
     101             :     const VisBuffer *vb_p;
     102             :     casacore::Double imRefFreq_p;
     103             :     CFBStruct cfBSt_p;
     104             :     casacore::Bool accumCFs_p;
     105             :     casacore::Matrix<casacore::uInt> BLCXi, BLCYi, TRCXi, TRCYi;
     106             :   };
     107             : 
     108             : } //# NAMESPACE CASA - END
     109             : #endif

Generated by: LCOV version 1.16