23 #ifndef FlagAgentShadow_H_
24 #define FlagAgentShadow_H_
casacore::uShort agentNumber_p
Declaration of static members for common pre-processing.
casacore::Matrix< casacore::Double > uvwAnt_p
Private variables that change with each timestep.
casacore::Vector< casacore::MPosition > shadowAntennaPositions_p
A top level class defining the data handling interface for the flagging module.
static casacore::uShort nAgents_p
casacore::Double shadowTolerance_p
casacore::Input parameters ///
casacore::Bool firststep_p
static casa::async::Mutex staticMembersMutex_p
casacore::Vector< casacore::Double > shadowAntennaDiameters_p
Copies of antenna-information lists, containing extra antennas if specified.
bool computeRowFlags(const vi::VisBuffer2 &visBuffer, FlagMapper &flags, casacore::uInt row)
Compute flags afor a given mapped visibility point.
casacore::Bool computeAntUVW(const vi::VisBuffer2 &vb, casacore::Int rownr)
casacore::Function to compute antenna UVW values for the current timestep
void decideBaselineShadow(casacore::Double uvDistance, casacore::Double w, casacore::Int antenna1, casacore::Int antenna2)
casacore::Function to decide if the 'behind' antenna is shadowed or not, for one baseline ...
A top level class defining the interface for flagging agents.
casacore::uInt baselineIndex(casacore::uInt nAnt, casacore::uInt a1, casacore::uInt a2)
casacore::Function to return baseline index.
static std::vector< bool > startedProcessing_p
void calculateShadowedAntennas(const vi::VisBuffer2 &visBuffer, casacore::Int rownr)
casacore::Function to compute shadowed antennas, given a list of antenna UVWs.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
casacore::Record additionalAntennas_p
static bool preProcessingDone_p
VisBuffer2s encapsulate one chunk of visibility data for processing.
casacore::Double currTime_p
void preProcessBuffer(const vi::VisBuffer2 &visBuffer)
Common functionality for each visBuffer (don't repeat at the row level)
void preProcessBufferCore(const vi::VisBuffer2 &visBuffer)
Common preProcessing code for the single/multiple agent cases.
FlagAgentShadow(FlagDataHandler *dh, casacore::Record config, casacore::Bool writePrivateFlagCube=false, casacore::Bool flag=true)
static std::vector< casacore::Int > shadowedAntennas_p
void setAgentParameters(casacore::Record config)
Parse configuration parameters.