casa
$Rev:20696$
|
#include <FlagAgentShadow.h>
Public Member Functions | |
FlagAgentShadow (FlagDataHandler *dh, Record config, Bool writePrivateFlagCube=false, Bool flag=true) | |
~FlagAgentShadow () | |
Protected Member Functions | |
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. | |
bool | computeRowFlags (const vi::VisBuffer2 &visBuffer, FlagMapper &flags, uInt row) |
Compute flags afor a given mapped visibility point. | |
void | setAgentParameters (Record config) |
Parse configuration parameters. | |
Private Member Functions | |
Bool | computeAntUVW (const vi::VisBuffer2 &vb, Int rownr) |
Function to compute antenna UVW values for the current timestep. | |
void | calculateShadowedAntennas (const vi::VisBuffer2 &visBuffer, Int rownr) |
Function to compute shadowed antennas, given a list of antenna UVWs. | |
void | decideBaselineShadow (Double uvDistance, Double w, Int antenna1, Int antenna2) |
Function to decide if the 'behind' antenna is shadowed or not, for one baseline. | |
uInt | baselineIndex (uInt nAnt, uInt a1, uInt a2) |
Function to return baseline index. | |
Private Attributes | |
Double | shadowTolerance_p |
Input parameters ///. | |
Record | additionalAntennas_p |
Vector< Double > | shadowAntennaDiameters_p |
Copies of antenna-information lists, containing extra antennas if specified. | |
Vector< MPosition > | shadowAntennaPositions_p |
uShort | agentNumber_p |
Declaration of static members for common pre-processing. | |
Matrix< Double > | uvwAnt_p |
Private variables that change with each timestep. | |
Double | currTime_p |
Bool | firststep_p |
Static Private Attributes | |
static vector< Int > | shadowedAntennas_p |
static casa::async::Mutex | staticMembersMutex_p |
static vector< bool > | startedProcessing_p |
static bool | preProcessingDone_p |
static uShort | nAgents_p |
Definition at line 50 of file FlagAgentShadow.h.
casa::FlagAgentShadow::FlagAgentShadow | ( | FlagDataHandler * | dh, |
Record | config, | ||
Bool | writePrivateFlagCube = false , |
||
Bool | flag = true |
||
) |
uInt casa::FlagAgentShadow::baselineIndex | ( | uInt | nAnt, |
uInt | a1, | ||
uInt | a2 | ||
) | [private] |
Function to return baseline index.
void casa::FlagAgentShadow::calculateShadowedAntennas | ( | const vi::VisBuffer2 & | visBuffer, |
Int | rownr | ||
) | [private] |
Function to compute shadowed antennas, given a list of antenna UVWs.
Bool casa::FlagAgentShadow::computeAntUVW | ( | const vi::VisBuffer2 & | vb, |
Int | rownr | ||
) | [private] |
Function to compute antenna UVW values for the current timestep.
bool casa::FlagAgentShadow::computeRowFlags | ( | const vi::VisBuffer2 & | visBuffer, |
FlagMapper & | flags, | ||
uInt | row | ||
) | [protected, virtual] |
Compute flags afor a given mapped visibility point.
Reimplemented from casa::FlagAgentBase.
void casa::FlagAgentShadow::decideBaselineShadow | ( | Double | uvDistance, |
Double | w, | ||
Int | antenna1, | ||
Int | antenna2 | ||
) | [private] |
Function to decide if the 'behind' antenna is shadowed or not, for one baseline.
void casa::FlagAgentShadow::preProcessBuffer | ( | const vi::VisBuffer2 & | visBuffer | ) | [protected, virtual] |
Common functionality for each visBuffer (don't repeat at the row level)
Reimplemented from casa::FlagAgentBase.
void casa::FlagAgentShadow::preProcessBufferCore | ( | const vi::VisBuffer2 & | visBuffer | ) | [protected] |
Common preProcessing code for the single/multiple agent cases.
void casa::FlagAgentShadow::setAgentParameters | ( | Record | config | ) | [protected, virtual] |
Parse configuration parameters.
Reimplemented from casa::FlagAgentBase.
Definition at line 84 of file FlagAgentShadow.h.
uShort casa::FlagAgentShadow::agentNumber_p [private] |
Declaration of static members for common pre-processing.
Definition at line 92 of file FlagAgentShadow.h.
Double casa::FlagAgentShadow::currTime_p [private] |
Definition at line 101 of file FlagAgentShadow.h.
Bool casa::FlagAgentShadow::firststep_p [private] |
Definition at line 103 of file FlagAgentShadow.h.
uShort casa::FlagAgentShadow::nAgents_p [static, private] |
Definition at line 97 of file FlagAgentShadow.h.
bool casa::FlagAgentShadow::preProcessingDone_p [static, private] |
Definition at line 96 of file FlagAgentShadow.h.
Copies of antenna-information lists, containing extra antennas if specified.
Vector<String> shadowAntennaNames_p;
Definition at line 88 of file FlagAgentShadow.h.
Definition at line 89 of file FlagAgentShadow.h.
vector<Int> casa::FlagAgentShadow::shadowedAntennas_p [static, private] |
Definition at line 93 of file FlagAgentShadow.h.
Input parameters ///.
Definition at line 83 of file FlagAgentShadow.h.
vector<bool> casa::FlagAgentShadow::startedProcessing_p [static, private] |
Definition at line 95 of file FlagAgentShadow.h.
casa::async::Mutex casa::FlagAgentShadow::staticMembersMutex_p [static, private] |
Definition at line 94 of file FlagAgentShadow.h.
Matrix<Double> casa::FlagAgentShadow::uvwAnt_p [private] |
Private variables that change with each timestep.
Definition at line 100 of file FlagAgentShadow.h.