********************************************************** VisJones More...
#include <VisCal.h>
Public Member Functions | |
| VisJones (VisSet &vs) | |
| Constructor. | |
| VisJones (String msname, Int MSnAnt, Int MSnSpw) | |
| VisJones (const MSMetaInfoForCal &msmc) | |
| VisJones (const Int &nAnt) | |
| virtual | ~VisJones () |
| virtual VisCalEnum::MatrixType | matrixType () |
| Return Matrix type. | |
| virtual Mueller::MuellerType | muellerType () |
| What kind of Mueller matrices should we use? (A function of the jonesType and target data shape). | |
| virtual Jones::JonesType | jonesType ()=0 |
| What kind of Jones matrix are we? (Must be implemented in specializations!). | |
| virtual void | state () |
| Report the state. | |
Protected Member Functions | |
| virtual Int & | nElem () |
| Number of parameter sets is number of antennas. | |
| virtual Int | nCalMat () |
| Number of Cal Matrices to form on antenna axis (Jones, apply context: nAnt()). | |
| virtual Bool | trivialMuellerElem () |
| Jones matrices can never be trivial Muellers! | |
| virtual Bool | trivialJonesElem ()=0 |
| Are the parameters the Jones matrix elements? (or is a non-trivial calculation required?) (Must be implemented in specializations!). | |
| virtual Bool | applyByMueller () |
| Are we applying via Mueller or Jones multiplication? (probably by Jones for native Jones?). | |
| virtual Bool | applyByJones () |
| Jones & | J1 () |
| Access to matrix renderings of Jones matrices. | |
| Jones & | J2 () |
| Cube< Complex > & | currJElem () |
| Access to Jones matrix element array. | |
| Cube< Bool > & | currJElemOK () |
| virtual void | invalidateCalMat () |
| Invalidate cal matrices generically (at this level, both Mueller and Jones). | |
| void | invalidateJ () |
| Validation of Jones matrices. | |
| void | validateJ () |
| Bool | JValid () |
| virtual void | applyCal (VisBuffer &vb, Cube< Complex > &Vout, Bool trial=False) |
| Row-by-row apply to a Cube<Complex> (applyByJones override). | |
| virtual void | applyCal2 (vi::VisBuffer2 &vb, Cube< Complex > &Vout, Cube< Float > &Wout, Bool trial=False) |
| virtual void | syncCalMat (const Bool &doInv=False) |
| Sync matrices for current meta data (VisJones override). | |
| virtual void | calcAllMueller () |
| Calculate an ensemble of Mueller matrices (all baselines, channels) (only meaningful if applyByMueller()=T). | |
| virtual void | syncJones (const Bool &doInv=False) |
| Synchronize current Jones matrices. | |
| virtual void | calcAllJones () |
| Calculate an ensemble of Jones matrices (all antennas, channels). | |
| virtual void | calcOneJones (Vector< Complex > &mat, Vector< Bool > &mOk, const Vector< Complex > &par, const Vector< Bool > &pOk) |
| Calculate a single Jones matrix by some means from parameters. | |
| virtual void | invJones () |
| Invert Jones matrices. | |
| virtual void | setMatByOk () |
| Set matrix elements according to their ok flags (e.g., makes a unit matrix if everything flagged, so we don't have to make atomic ok checks in apply). | |
| void | createJones () |
| Create Jones interface. | |
| virtual void | syncWtScale () |
| Synchronize weight scale factors. | |
| virtual void | calcWtScale () |
| Perform weight scale calculation (specializable). | |
| virtual void | updateWt (Vector< Float > &wt, const Int &a1, const Int &a2) |
| Update the wt vector for a baseline. | |
| virtual void | updateWt2 (Matrix< Float > &wt, const Int &a1, const Int &a2) |
Private Member Functions | |
| VisJones () | |
| Default ctor is private. | |
| void | initVisJones () |
| Init VisJones pointers. | |
| void | deleteVisJones () |
| Delete the this* caches. | |
Private Attributes | |
| PtrBlock< Jones * > | J1_ |
| Jones algebra wrapper (per Spw). | |
| PtrBlock< Jones * > | J2_ |
| PtrBlock< Cube< Complex > * > | currJElem_ |
| Current Jones matrix-element arrays. | |
| PtrBlock< Cube< Bool > * > | currJElemOK_ |
| Vector< Bool > | JValid_ |
| Jones validity, per spw. | |
Friends | |
| class | SolvableVisJones |
********************************************************** VisJones
Definition at line 533 of file VisCal.h.
| casa::VisJones::VisJones | ( | VisSet & | vs | ) |
Constructor.
| casa::VisJones::VisJones | ( | String | msname, | |
| Int | MSnAnt, | |||
| Int | MSnSpw | |||
| ) |
| casa::VisJones::VisJones | ( | const MSMetaInfoForCal & | msmc | ) |
| casa::VisJones::VisJones | ( | const Int & | nAnt | ) |
| virtual casa::VisJones::~VisJones | ( | ) | [virtual] |
| casa::VisJones::VisJones | ( | ) | [private] |
Default ctor is private.
| virtual Bool casa::VisJones::applyByJones | ( | ) | [inline, protected, virtual] |
Definition at line 584 of file VisCal.h.
References casacore::True.
| virtual Bool casa::VisJones::applyByMueller | ( | ) | [inline, protected, virtual] |
Are we applying via Mueller or Jones multiplication? (probably by Jones for native Jones?).
Reimplemented from casa::VisMueller.
Definition at line 583 of file VisCal.h.
References casacore::False.
| virtual void casa::VisJones::applyCal | ( | VisBuffer & | vb, | |
| Cube< Complex > & | Vout, | |||
| Bool | trial = False | |||
| ) | [protected, virtual] |
Row-by-row apply to a Cube<Complex> (applyByJones override).
Reimplemented from casa::VisMueller.
| virtual void casa::VisJones::applyCal2 | ( | vi::VisBuffer2 & | vb, | |
| Cube< Complex > & | Vout, | |||
| Cube< Float > & | Wout, | |||
| Bool | trial = False | |||
| ) | [protected, virtual] |
Reimplemented from casa::VisMueller.
| virtual void casa::VisJones::calcAllJones | ( | ) | [protected, virtual] |
Calculate an ensemble of Jones matrices (all antennas, channels).
Reimplemented in casa::XJones, casa::EGainCurve, casa::EVLASwPow, casa::FJones, casa::FringeJones, casa::KJones, casa::KAntPosJones, casa::TOpac, casa::TfOpac, and casa::StandardTsys.
| virtual void casa::VisJones::calcAllMueller | ( | ) | [protected, virtual] |
Calculate an ensemble of Mueller matrices (all baselines, channels) (only meaningful if applyByMueller()=T).
Reimplemented from casa::VisMueller.
| virtual void casa::VisJones::calcOneJones | ( | Vector< Complex > & | mat, | |
| Vector< Bool > & | mOk, | |||
| const Vector< Complex > & | par, | |||
| const Vector< Bool > & | pOk | |||
| ) | [protected, virtual] |
Calculate a single Jones matrix by some means from parameters.
Reimplemented in casa::DJones, and casa::PJones.
| virtual void casa::VisJones::calcWtScale | ( | ) | [protected, virtual] |
Perform weight scale calculation (specializable).
Reimplemented from casa::VisMueller.
Reimplemented in casa::BJones, casa::TfOpac, and casa::StandardTsys.
| void casa::VisJones::createJones | ( | ) | [protected] |
Create Jones interface.
| Cube<Complex>& casa::VisJones::currJElem | ( | ) | [inline, protected] |
Access to Jones matrix element array.
Definition at line 591 of file VisCal.h.
References currJElem_, and casa::VisCal::currSpw().
| Cube<Bool>& casa::VisJones::currJElemOK | ( | ) | [inline, protected] |
Definition at line 592 of file VisCal.h.
References currJElemOK_, and casa::VisCal::currSpw().
| void casa::VisJones::deleteVisJones | ( | ) | [private] |
Delete the this* caches.
| void casa::VisJones::initVisJones | ( | ) | [private] |
Init VisJones pointers.
| virtual void casa::VisJones::invalidateCalMat | ( | ) | [inline, protected, virtual] |
Invalidate cal matrices generically (at this level, both Mueller and Jones).
Reimplemented from casa::VisMueller.
Definition at line 595 of file VisCal.h.
References invalidateJ(), and casa::VisMueller::invalidateM().
| void casa::VisJones::invalidateJ | ( | ) | [inline, protected] |
Validation of Jones matrices.
Definition at line 598 of file VisCal.h.
References casa::VisCal::currSpw(), casacore::False, and JValid_.
Referenced by invalidateCalMat(), and casa::SolvableVisJones::invalidateDiffCalMat().
| virtual void casa::VisJones::invJones | ( | ) | [protected, virtual] |
Invert Jones matrices.
| Jones& casa::VisJones::J1 | ( | ) | [inline, protected] |
Access to matrix renderings of Jones matrices.
Definition at line 587 of file VisCal.h.
References casa::VisCal::currSpw(), and J1_.
| Jones& casa::VisJones::J2 | ( | ) | [inline, protected] |
Definition at line 588 of file VisCal.h.
References casa::VisCal::currSpw(), and J2_.
| virtual Jones::JonesType casa::VisJones::jonesType | ( | ) | [pure virtual] |
What kind of Jones matrix are we? (Must be implemented in specializations!).
Implemented in casa::BJonesPoly, casa::DJones, casa::DlinJones, casa::DllsJones, casa::XJones, casa::EGainCurve, casa::EPJones, casa::FJones, casa::FringeJones, casa::GJonesSpline, casa::KJones, casa::KAntPosJones, casa::LJJones, casa::PJones, casa::TJones, casa::GJones, casa::JJones, and casa::TOpac.
Referenced by casa::SolvableVisJones::normalizable().
| Bool casa::VisJones::JValid | ( | ) | [inline, protected] |
Definition at line 600 of file VisCal.h.
References casa::VisCal::currSpw(), and JValid_.
| virtual VisCalEnum::MatrixType casa::VisJones::matrixType | ( | ) | [inline, virtual] |
Return Matrix type.
Reimplemented from casa::VisMueller.
Definition at line 551 of file VisCal.h.
References casa::VisCalEnum::JONES.
| virtual Mueller::MuellerType casa::VisJones::muellerType | ( | ) | [virtual] |
What kind of Mueller matrices should we use? (A function of the jonesType and target data shape).
Implements casa::VisMueller.
| virtual Int casa::VisJones::nCalMat | ( | ) | [inline, protected, virtual] |
Number of Cal Matrices to form on antenna axis (Jones, apply context: nAnt()).
Reimplemented from casa::VisMueller.
Reimplemented in casa::SolvableVisJones.
Definition at line 571 of file VisCal.h.
References casa::VisCal::nAnt().
| virtual Int& casa::VisJones::nElem | ( | ) | [inline, protected, virtual] |
Number of parameter sets is number of antennas.
Reimplemented from casa::VisMueller.
Definition at line 567 of file VisCal.h.
References casa::VisCal::nAnt().
| virtual void casa::VisJones::setMatByOk | ( | ) | [protected, virtual] |
Set matrix elements according to their ok flags (e.g., makes a unit matrix if everything flagged, so we don't have to make atomic ok checks in apply).
Reimplemented from casa::VisMueller.
Reimplemented in casa::SolvableVisJones.
| virtual void casa::VisJones::state | ( | ) | [virtual] |
| virtual void casa::VisJones::syncCalMat | ( | const Bool & | doInv = False |
) | [protected, virtual] |
Sync matrices for current meta data (VisJones override).
Reimplemented from casa::VisMueller.
| virtual void casa::VisJones::syncJones | ( | const Bool & | doInv = False |
) | [protected, virtual] |
Synchronize current Jones matrices.
Reimplemented in casa::StandardTsys.
| virtual void casa::VisJones::syncWtScale | ( | ) | [protected, virtual] |
Synchronize weight scale factors.
Reimplemented from casa::VisMueller.
Reimplemented in casa::EVLASwPow, and casa::StandardTsys.
| virtual Bool casa::VisJones::trivialJonesElem | ( | ) | [protected, pure virtual] |
Are the parameters the Jones matrix elements? (or is a non-trivial calculation required?) (Must be implemented in specializations!).
Implemented in casa::DJones, casa::XJones, casa::EGainCurve, casa::EPJones, casa::EVLASwPow, casa::FJones, casa::FringeJones, casa::KJones, casa::KAntPosJones, casa::LJJones, casa::PJones, casa::TJones, casa::GJones, casa::JJones, casa::TOpac, and casa::StandardTsys.
| virtual Bool casa::VisJones::trivialMuellerElem | ( | ) | [inline, protected, virtual] |
Jones matrices can never be trivial Muellers!
Implements casa::VisMueller.
Definition at line 574 of file VisCal.h.
References casacore::False.
| virtual void casa::VisJones::updateWt | ( | Vector< Float > & | wt, | |
| const Int & | a1, | |||
| const Int & | a2 | |||
| ) | [protected, virtual] |
Update the wt vector for a baseline.
Reimplemented from casa::VisMueller.
| virtual void casa::VisJones::updateWt2 | ( | Matrix< Float > & | wt, | |
| const Int & | a1, | |||
| const Int & | a2 | |||
| ) | [protected, virtual] |
| void casa::VisJones::validateJ | ( | ) | [inline, protected] |
Definition at line 599 of file VisCal.h.
References casa::VisCal::currSpw(), JValid_, and casacore::True.
friend class SolvableVisJones [friend] |
Reimplemented from casa::VisCal.
PtrBlock<Cube<Complex>*> casa::VisJones::currJElem_ [private] |
Current Jones matrix-element arrays.
Definition at line 662 of file VisCal.h.
Referenced by currJElem().
PtrBlock<Cube<Bool>*> casa::VisJones::currJElemOK_ [private] |
Definition at line 663 of file VisCal.h.
Referenced by currJElemOK().
PtrBlock<Jones*> casa::VisJones::J1_ [private] |
PtrBlock<Jones*> casa::VisJones::J2_ [private] |
Vector<Bool> casa::VisJones::JValid_ [private] |
Jones validity, per spw.
Definition at line 666 of file VisCal.h.
Referenced by invalidateJ(), JValid(), and validateJ().
1.6.1