casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
casa::refim::CFStore2 Class Reference

#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...
 
CFStore2operator= (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...
 
CFBufferoperator() (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::Intresize (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)
 

Protected Attributes

casacore::Matrix
< casacore::CountedPtr
< CFBuffer > > 
storage_p
 
casacore::Vector< casacore::Intant1_p
 
casacore::Vector< casacore::Intant2_p
 
casacore::Vector
< casacore::Quantity
pa_p
 
casacore::Bool lazyFillOn_p
 
casacore::Int mosPointingPos_p
 
casacore::Int currentSPWID_p
 
casacore::String cfCacheDir_p
 

Detailed Description

Definition at line 48 of file CFStore2.h.

Constructor & Destructor Documentation

casa::refim::CFStore2::CFStore2 ( )
inline

Definition at line 51 of file CFStore2.h.

virtual casa::refim::CFStore2::~CFStore2 ( )
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.

Member Function Documentation

virtual casacore::Int casa::refim::CFStore2::antHashFunction ( const casacore::Int ant1,
const casacore::Int ant2 
)
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 ( )


casacore::Vector<casacore::Int>& casa::refim::CFStore2::getAnt1List ( )
inline

Definition at line 135 of file CFStore2.h.

casacore::Vector<casacore::Int>& casa::refim::CFStore2::getAnt2List ( )
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

casacore::String casa::refim::CFStore2::getCFCacheDir ( )
inline

Definition at line 103 of file CFStore2.h.

virtual void casa::refim::CFStore2::getIndex ( const casacore::Quantity pa,
const casacore::Quantity paTol,
const casacore::Int ant1,
const casacore::Int ant2,
casacore::Int paNdx,
casacore::Int antNdx 
)
inlineprotectedvirtual

Definition at line 150 of file CFStore2.h.

casacore::Vector<casacore::Quantity> casa::refim::CFStore2::getPAList ( )
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 
)
casacore::IPosition casa::refim::CFStore2::getShape ( )
inline

Definition at line 138 of file CFStore2.h.

casacore::Matrix<casacore::CountedPtr<CFBuffer> >& casa::refim::CFStore2::getStorage ( )
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)
casacore::Bool casa::refim::CFStore2::isLazyFillOn ( )
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 ( )


virtual casacore::Int casa::refim::CFStore2::nearestPA ( const casacore::Quantity pa,
const casacore::Quantity paTol 
)
protectedvirtual
casacore::Bool casa::refim::CFStore2::null ( )
inline


Definition at line 81 of file CFStore2.h.

CFBuffer& casa::refim::CFStore2::operator() ( const casacore::Int paNdx,
const casacore::Int antNdx 
)
inline

Definition at line 111 of file CFStore2.h.

CFStore2& casa::refim::CFStore2::operator= ( const CFStore2 other)
virtual casacore::Int casa::refim::CFStore2::paHashFunction ( const casacore::Quantity pa,
const casacore::Quantity paTol 
)
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.----------------------------------------------------------------------—

void casa::refim::CFStore2::set ( const CFStore2 other)
inline


Definition at line 88 of file CFStore2.h.

References ant1_p, ant2_p, and pa_p.

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)


void casa::refim::CFStore2::setLazyFill ( const casacore::Bool val)
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 
)


Member Data Documentation

casacore::Vector<casacore::Int> casa::refim::CFStore2::ant1_p
protected

Definition at line 144 of file CFStore2.h.

Referenced by set().

casacore::Vector<casacore::Int> casa::refim::CFStore2::ant2_p
protected

Definition at line 144 of file CFStore2.h.

Referenced by set().

casacore::String casa::refim::CFStore2::cfCacheDir_p
protected

Definition at line 148 of file CFStore2.h.

casacore::Int casa::refim::CFStore2::currentSPWID_p
protected

Definition at line 147 of file CFStore2.h.

casacore::Bool casa::refim::CFStore2::lazyFillOn_p
protected

Definition at line 146 of file CFStore2.h.

casacore::Int casa::refim::CFStore2::mosPointingPos_p
protected

Definition at line 147 of file CFStore2.h.

casacore::Vector<casacore::Quantity> casa::refim::CFStore2::pa_p
protected

Definition at line 145 of file CFStore2.h.

Referenced by set().

casacore::Matrix<casacore::CountedPtr<CFBuffer > > casa::refim::CFStore2::storage_p
protected

Definition at line 143 of file CFStore2.h.


The documentation for this class was generated from the following file: