Source
// //if(rownr==0 && antenna1==tant1 && antenna2==tant2) cout << " (r)Row : " << rownr << " uvdist : " << uvDistance << " w : " << w << " time-x : " << visBuffer.timeCentroid()(rownr)-reftime << endl;
//# FlagAgentShadow.cc: This file contains the implementation of the FlagAgentShadow class.
//#
//# CASA - Common Astronomy Software Applications (http://casa.nrao.edu/)
//# Copyright (C) Associated Universities, Inc. Washington DC, USA 2011, All rights reserved.
//# Copyright (C) European Southern Observatory, 2011, All rights reserved.
//#
//# This library is free software; you can redistribute it and/or
//# modify it under the terms of the GNU Lesser General Public
//# License as published by the Free software Foundation; either
//# version 2.1 of the License, or (at your option) any later version.
//#
//# This library is distributed in the hope that it will be useful,
//# but WITHOUT ANY WARRANTY, without even the implied warranty of
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
//# Lesser General Public License for more details.
//#
//# You should have received a copy of the GNU Lesser General Public
//# License along with this library; if not, write to the Free Software
//# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
//# MA 02111-1307 USA
//# $Id: $
using namespace casacore;
namespace casa { //# NAMESPACE CASA - BEGIN
// Definition of static members for common pre-processing
vector<Int> FlagAgentShadow::shadowedAntennas_p;
casa::async::Mutex FlagAgentShadow::staticMembersMutex_p;
vector<bool> FlagAgentShadow::startedProcessing_p;
bool FlagAgentShadow::preProcessingDone_p = false;
uShort FlagAgentShadow::nAgents_p = 0;
FlagAgentShadow::FlagAgentShadow(FlagDataHandler *dh, Record config, Bool writePrivateFlagCube, Bool flag):
FlagAgentBase(dh,config,ROWS_PREPROCESS_BUFFER,writePrivateFlagCube,flag)
{
setAgentParameters(config);
// Set preProcessingDone_p static member to false
preProcessingDone_p = false;
// Request loading antenna1,antenna2 and uvw
flagDataHandler_p->preLoadColumn(VisBufferComponent2::Antenna1);
flagDataHandler_p->preLoadColumn(VisBufferComponent2::Antenna2);
flagDataHandler_p->preLoadColumn(VisBufferComponent2::Uvw);
/////flagDataHandler_p->preLoadColumn(VisBufferComponent2::Time);
flagDataHandler_p->preLoadColumn(VisBufferComponent2::TimeCentroid);
flagDataHandler_p->preLoadColumn(VisBufferComponent2::PhaseCenter);
/////flagDataHandler_p->preLoadColumn(vi::Direction1);
// FlagAgentShadow counters and ids to handle static variables
staticMembersMutex_p.acquirelock();
agentNumber_p = nAgents_p;