casa
5.7.0-16
|
#include <CFStore2.h>
Public Member Functions | |
CFStore2 () | |
virtual | ~CFStore2 () |
CFStore2(CFBuffer<casacore::Complex> *dataPtr, casacore::Quantity PA, casacore::Int mosPointing): storage_p(), pa_p(PA), mosPointingPos_p(mosPointing) {storage_p = new CFBuffer<casacore::Complex>(*dataPtr);};. More... | |
CFStore2 & | operator= (const CFStore2 &other) |
void | show (const char *Mesg=NULL, ostream &os=cerr, const casacore::Bool verbose=false) |
More... | |
void | makePersistent (const char *dir, const char *name="", const char *qualifier="") |
More... | |
void | makePersistent (const char *dir, const char *cfName, const char *qualifier, const casacore::Quantity &pa, const casacore::Quantity &dPA, const int &ant1, const int &ant2) |
This version saves only those pixels of CFStore that correspond to [PA,(Ant1,Ant2)] co-ordiantes ([PA, BaselineType] co-ordinate). More... | |
void | primeTheCFB () |
More... | |
void | initMaps (const VisBuffer2 &vb, const casacore::Matrix< casacore::Double > &freqSelection, const casacore::Double &imRefFreq) |
More... | |
void | initPolMaps (PolMapType &polMap, PolMapType &conjPolMap) |
More... | |
casacore::Bool | null () |
More... | |
casacore::Double | memUsage () |
More... | |
void | clear () |
More... | |
void | set (const CFStore2 &other) |
More... | |
void | setCFBuffer (CFBuffer *dataPtr, casacore::Quantity pa, const casacore::Int &ant1, const casacore::Int &ant2) |
More... | |
casacore::CountedPtr< CFBuffer > & | getCFBuffer (const casacore::Quantity &pa, const casacore::Quantity &paTol, const casacore::Int &ant1, const casacore::Int &ant2) |
More... | |
void | setCFCacheDir (const casacore::String &dir) |
More... | |
casacore::String | getCFCacheDir () |
void | setLazyFill (const casacore::Bool &val) |
casacore::Bool | isLazyFillOn () |
void | invokeGC (const casacore::Int &spwID) |
casacore::CountedPtr< CFBuffer > & | getCFBuffer (const casacore::Int &paNdx, const casacore::Int &antNdx) |
More... | |
CFBuffer & | operator() (const casacore::Int &paNdx, const casacore::Int &antNdx) |
void | getParams (casacore::Quantity &pa, casacore::Int &ant1, casacore::Int &ant2, const casacore::Int &paNdx, const casacore::Int &antNdx) |
casacore::Vector< casacore::Int > | resize (const casacore::Quantity &pa, const casacore::Quantity &paTol, const casacore::Int &ant1, const casacore::Int &ant2, casacore::Bool retainValues=true) |
More... | |
casacore::Matrix < casacore::CountedPtr < CFBuffer > > & | getStorage () |
void rememberATerm(casacore::CountedPtr<ATerm>& aTerm) {theATermUsed_p = aTerm;} More... | |
casacore::Vector< casacore::Int > & | getAnt1List () |
casacore::Vector< casacore::Int > & | getAnt2List () |
casacore::Vector < casacore::Quantity > | getPAList () |
casacore::IPosition | getShape () |
Protected Member Functions | |
virtual void | getIndex (const casacore::Quantity &pa, const casacore::Quantity &paTol, const casacore::Int &ant1, const casacore::Int &ant2, casacore::Int &paNdx, casacore::Int &antNdx) |
virtual casacore::Int | antHashFunction (const casacore::Int &ant1, const casacore::Int &ant2) |
virtual casacore::Int wHashFunction(const casacore::Double& wValue) { casacore::Int ndx=-1; for(casacore::uInt i=0;i<wValue_p.nelements(); i++) if (wValue_p[i] == wValue) {ndx=i;break;} return ndx; } More... | |
virtual casacore::Int | paHashFunction (const casacore::Quantity &pa, const casacore::Quantity &paTol) |
virtual casacore::Int | nearestPA (const casacore::Quantity &pa, const casacore::Quantity &paTol) |
Definition at line 48 of file CFStore2.h.
|
inline |
Definition at line 51 of file CFStore2.h.
|
inlinevirtual |
CFStore2(CFBuffer<casacore::Complex> *dataPtr, casacore::Quantity PA, casacore::Int mosPointing): storage_p(), pa_p(PA), mosPointingPos_p(mosPointing) {storage_p = new CFBuffer<casacore::Complex>(*dataPtr);};.
Definition at line 57 of file CFStore2.h.
|
inlineprotectedvirtual |
virtual casacore::Int wHashFunction(const casacore::Double& wValue) { casacore::Int ndx=-1; for(casacore::uInt i=0;i<wValue_p.nelements(); i++) if (wValue_p[i] == wValue) {ndx=i;break;} return ndx; }
Definition at line 167 of file CFStore2.h.
void casa::refim::CFStore2::clear | ( | ) |
|
inline |
Definition at line 135 of file CFStore2.h.
|
inline |
Definition at line 136 of file CFStore2.h.
casacore::CountedPtr<CFBuffer>& casa::refim::CFStore2::getCFBuffer | ( | const casacore::Quantity & | pa, |
const casacore::Quantity & | paTol, | ||
const casacore::Int & | ant1, | ||
const casacore::Int & | ant2 | ||
) |
casacore::CountedPtr<CFBuffer>& casa::refim::CFStore2::getCFBuffer | ( | const casacore::Int & | paNdx, |
const casacore::Int & | antNdx | ||
) |
Get CFBuffer by directly indexing in the list of CFBuffers
|
inline |
Definition at line 103 of file CFStore2.h.
|
inlineprotectedvirtual |
Definition at line 150 of file CFStore2.h.
|
inline |
Definition at line 137 of file CFStore2.h.
void casa::refim::CFStore2::getParams | ( | casacore::Quantity & | pa, |
casacore::Int & | ant1, | ||
casacore::Int & | ant2, | ||
const casacore::Int & | paNdx, | ||
const casacore::Int & | antNdx | ||
) |
|
inline |
Definition at line 138 of file CFStore2.h.
|
inline |
void rememberATerm(casacore::CountedPtr<ATerm>& aTerm) {theATermUsed_p = aTerm;}
casacore::Int mapAntIDToAntType(const casacore::Int& ant) {return theATermUsed_p->mapAntIDToAntType(ant);};
Definition at line 134 of file CFStore2.h.
void casa::refim::CFStore2::initMaps | ( | const VisBuffer2 & | vb, |
const casacore::Matrix< casacore::Double > & | freqSelection, | ||
const casacore::Double & | imRefFreq | ||
) |
void casa::refim::CFStore2::initPolMaps | ( | PolMapType & | polMap, |
PolMapType & | conjPolMap | ||
) |
void casa::refim::CFStore2::invokeGC | ( | const casacore::Int & | spwID | ) |
|
inline |
Definition at line 105 of file CFStore2.h.
void casa::refim::CFStore2::makePersistent | ( | const char * | dir, |
const char * | name = "" , |
||
const char * | qualifier = "" |
||
) |
void casa::refim::CFStore2::makePersistent | ( | const char * | dir, |
const char * | cfName, | ||
const char * | qualifier, | ||
const casacore::Quantity & | pa, | ||
const casacore::Quantity & | dPA, | ||
const int & | ant1, | ||
const int & | ant2 | ||
) |
This version saves only those pixels of CFStore that correspond to [PA,(Ant1,Ant2)] co-ordiantes ([PA, BaselineType] co-ordinate).
casacore::Double casa::refim::CFStore2::memUsage | ( | ) |
|
protectedvirtual |
|
inline |
Definition at line 81 of file CFStore2.h.
|
inline |
Definition at line 111 of file CFStore2.h.
|
inlineprotectedvirtual |
for (casacore::uInt i=0; i<pa_p.nelements(); i++) if (pa_p[i] == pa) {ndx=i;break;}
Definition at line 176 of file CFStore2.h.
void casa::refim::CFStore2::primeTheCFB | ( | ) |
casacore::Vector<casacore::Int> casa::refim::CFStore2::resize | ( | const casacore::Quantity & | pa, |
const casacore::Quantity & | paTol, | ||
const casacore::Int & | ant1, | ||
const casacore::Int & | ant2, | ||
casacore::Bool | retainValues = true |
||
) |
Generate a map for the given frequency and Mueller element list to the index in the internal list of CFs. This can be used in tight loops to get get direct access to the required CF.----------------------------------------------------------------------—
|
inline |
void casa::refim::CFStore2::setCFBuffer | ( | CFBuffer * | dataPtr, |
casacore::Quantity | pa, | ||
const casacore::Int & | ant1, | ||
const casacore::Int & | ant2 | ||
) |
void casa::refim::CFStore2::setCFCacheDir | ( | const casacore::String & | dir | ) |
|
inline |
Definition at line 104 of file CFStore2.h.
void casa::refim::CFStore2::show | ( | const char * | Mesg = NULL , |
ostream & | os = cerr , |
||
const casacore::Bool | verbose = false |
||
) |
|
protected |
Definition at line 144 of file CFStore2.h.
Referenced by set().
|
protected |
Definition at line 144 of file CFStore2.h.
Referenced by set().
|
protected |
Definition at line 148 of file CFStore2.h.
|
protected |
Definition at line 147 of file CFStore2.h.
|
protected |
Definition at line 146 of file CFStore2.h.
|
protected |
Definition at line 147 of file CFStore2.h.
|
protected |
Definition at line 145 of file CFStore2.h.
Referenced by set().
|
protected |
Definition at line 143 of file CFStore2.h.