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::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="")
 

This version saves the entire CFStore More...

 
void makePersistent (const char *dir, const char *cfName, const char *qualifier, const casacore::Quantity &pa, const casacore::Quantity &dPA, const casacore::Int &ant1, const casacore::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 VisBuffer &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 String &dir)
 
More...
 
casacore::String getCFCacheDir ()
 
void setLazyFill (const Bool &val)
 
casacore::Bool isLazyFillOn ()
 
void invokeGC (const casacore::Int &spwID)
 
casacore::CountedPtr< CFBuffer > & getCFBuffer (const casacore::Int &paNdx, const casacore::Int &antNdx)
 

Get CFBuffer by directly indexing in the list of CFBuffers 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 47 of file CFStore2.h.

Constructor & Destructor Documentation

casa::CFStore2::CFStore2 ( )
inline

Definition at line 50 of file CFStore2.h.

virtual casa::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 56 of file CFStore2.h.

Member Function Documentation

virtual casacore::Int casa::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 164 of file CFStore2.h.

void casa::CFStore2::clear ( )


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

Definition at line 132 of file CFStore2.h.

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

Definition at line 133 of file CFStore2.h.

casacore::CountedPtr<CFBuffer>& casa::CFStore2::getCFBuffer ( const casacore::Quantity pa,
const casacore::Quantity paTol,
const casacore::Int ant1,
const casacore::Int ant2 
)


casacore::CountedPtr<CFBuffer>& casa::CFStore2::getCFBuffer ( const casacore::Int paNdx,
const casacore::Int antNdx 
)


Get CFBuffer by directly indexing in the list of CFBuffers

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

Definition at line 101 of file CFStore2.h.

virtual void casa::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 147 of file CFStore2.h.

casacore::Vector<casacore::Quantity> casa::CFStore2::getPAList ( )
inline

Definition at line 134 of file CFStore2.h.

void casa::CFStore2::getParams ( casacore::Quantity pa,
casacore::Int ant1,
casacore::Int ant2,
const casacore::Int paNdx,
const casacore::Int antNdx 
)
casacore::IPosition casa::CFStore2::getShape ( )
inline

Definition at line 135 of file CFStore2.h.

casacore::Matrix<casacore::CountedPtr<CFBuffer> >& casa::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 131 of file CFStore2.h.

void casa::CFStore2::initMaps ( const VisBuffer vb,
const casacore::Matrix< casacore::Double > &  freqSelection,
const casacore::Double imRefFreq 
)


void casa::CFStore2::initPolMaps ( PolMapType polMap,
PolMapType conjPolMap 
)


void casa::CFStore2::invokeGC ( const casacore::Int spwID)
casacore::Bool casa::CFStore2::isLazyFillOn ( )
inline

Definition at line 103 of file CFStore2.h.

void casa::CFStore2::makePersistent ( const char *  dir,
const char *  name = "",
const char *  qualifier = "" 
)


This version saves the entire CFStore

void casa::CFStore2::makePersistent ( const char *  dir,
const char *  cfName,
const char *  qualifier,
const casacore::Quantity pa,
const casacore::Quantity dPA,
const casacore::Int ant1,
const casacore::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::CFStore2::memUsage ( )


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


Definition at line 80 of file CFStore2.h.

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

Definition at line 108 of file CFStore2.h.

CFStore2& casa::CFStore2::operator= ( const CFStore2 other)
virtual casacore::Int casa::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 173 of file CFStore2.h.

void casa::CFStore2::primeTheCFB ( )


casacore::Vector<casacore::Int> casa::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::CFStore2::set ( const CFStore2 other)
inline


Definition at line 86 of file CFStore2.h.

References ant1_p, ant2_p, and pa_p.

void casa::CFStore2::setCFBuffer ( CFBuffer dataPtr,
casacore::Quantity  pa,
const casacore::Int ant1,
const casacore::Int ant2 
)


void casa::CFStore2::setCFCacheDir ( const String dir)


void casa::CFStore2::setLazyFill ( const Bool val)
inline

Definition at line 102 of file CFStore2.h.

void casa::CFStore2::show ( const char *  Mesg = NULL,
ostream &  os = cerr,
const casacore::Bool  verbose = false 
)


Member Data Documentation

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

Definition at line 141 of file CFStore2.h.

Referenced by set().

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

Definition at line 141 of file CFStore2.h.

Referenced by set().

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

Definition at line 145 of file CFStore2.h.

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

Definition at line 144 of file CFStore2.h.

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

Definition at line 143 of file CFStore2.h.

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

Definition at line 144 of file CFStore2.h.

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

Definition at line 142 of file CFStore2.h.

Referenced by set().

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

Definition at line 140 of file CFStore2.h.


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