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

class Flux; More...

#include <FluxCalcQS.h>

Inheritance diagram for casa::FluxCalcQS:
casa::FluxStdBaars casa::FluxStdPerley90 casa::FluxStdPerleyButler2010 casa::FluxStdPerleyButler2013 casa::FluxStdPerleyTaylor95 casa::FluxStdPerleyTaylor99

Public Types

enum  Source {
  THREEC286,
  THREEC48,
  THREEC147,
  THREEC138,
  NINETEEN34M638,
  THREEC295,
  THREEC196,
  THREEC123,
  NUMBER_SOURCES,
  UNKNOWN_SOURCE
}
 Source identifiers. More...
 
typedef FluxCalcQS FCQS
 
typedef casacore::RigidVector
< casacore::String, 4 > 
RVS4
 
typedef casacore::RigidVector
< casacore::String, 5 > 
RVS5
 

Public Member Functions

virtual ~FluxCalcQS ()
 
virtual casacore::Bool operator() (Flux< casacore::Double > &value, Flux< casacore::Double > &error, const casacore::MFrequency &mfreq)=0
 
casacore::Bool operator() (casacore::Vector< Flux< casacore::Double > > &values, casacore::Vector< Flux< casacore::Double > > &errors, const casacore::Vector< casacore::MFrequency > &mfreqs)
 
FCQS::Source srcNameToEnum (const casacore::String &srcName) const
 If a FS::Source enum matches srcName, returns the enum. More...
 
virtual casacore::Bool setSource (const casacore::String &sourceName)
 Sets srcEnum_p = srcNameToEnum(sourceName), and returns srcEnum_p != FCQS::UNKNOWN_SOURCE. More...
 
FCQS::Source getSrcEnum ()
 
casacore::MDirection getDirection ()
 

Protected Member Functions

 FluxCalcQS ()
 

Private Attributes

FCQS::Source srcEnum_p
 
std::map< FCQS::Source,
casacore::Vector
< casacore::String > > 
names_p
 A map from an FS::Source enum to a list of recognized names for it. More...
 
std::map< FCQS::Source,
casacore::MDirection
directions_p
 A map from an FS::Source enum to its J2000 direction. More...
 

Detailed Description

class Flux;

FluxCalcQS: Base class for flux standard calculations which do not explicitly depend on time.

Intended use:

Public interface

Prerequisite

Etymology

From "flux density", "calculator", and "quasistatic".

Synopsis

The FluxCalcQS class provides an interface and a small amount of machinery for computing total flux densities of nominally non-variable sources. "Nominally non-variable" means that the sources do not vary quickly, but they are remeasured, and new standards published, every few years. See FluxStdsQS for actual definitions of the standards.

Example

Motivation

Provide a base time-independent interface for calculating standard flux densities, and include any common functions.

Definition at line 86 of file FluxCalcQS.h.

Member Typedef Documentation

Definition at line 89 of file FluxCalcQS.h.

Definition at line 90 of file FluxCalcQS.h.

Definition at line 91 of file FluxCalcQS.h.

Member Enumeration Documentation

Source identifiers.

Enumerator
THREEC286 
THREEC48 
THREEC147 
THREEC138 
NINETEEN34M638 
THREEC295 
THREEC196 
THREEC123 
NUMBER_SOURCES 

The number of standards in this enumerator.

UNKNOWN_SOURCE 

Definition at line 94 of file FluxCalcQS.h.

Constructor & Destructor Documentation

virtual casa::FluxCalcQS::~FluxCalcQS ( )
virtual
casa::FluxCalcQS::FluxCalcQS ( )
protected

Member Function Documentation

casacore::MDirection casa::FluxCalcQS::getDirection ( )
inline

Definition at line 126 of file FluxCalcQS.h.

References directions_p, and srcEnum_p.

FCQS::Source casa::FluxCalcQS::getSrcEnum ( )
virtual casacore::Bool casa::FluxCalcQS::operator() ( Flux< casacore::Double > &  value,
Flux< casacore::Double > &  error,
const casacore::MFrequency mfreq 
)
pure virtual
casacore::Bool casa::FluxCalcQS::operator() ( casacore::Vector< Flux< casacore::Double > > &  values,
casacore::Vector< Flux< casacore::Double > > &  errors,
const casacore::Vector< casacore::MFrequency > &  mfreqs 
)
virtual casacore::Bool casa::FluxCalcQS::setSource ( const casacore::String sourceName)
virtual

Sets srcEnum_p = srcNameToEnum(sourceName), and returns srcEnum_p != FCQS::UNKNOWN_SOURCE.

FCQS::Source casa::FluxCalcQS::srcNameToEnum ( const casacore::String srcName) const

If a FS::Source enum matches srcName, returns the enum.

Otherwise, FCQS::UNKNOWN_SOURCE.

Member Data Documentation

std::map<FCQS::Source, casacore::MDirection> casa::FluxCalcQS::directions_p
private

A map from an FS::Source enum to its J2000 direction.

Definition at line 138 of file FluxCalcQS.h.

Referenced by getDirection().

std::map<FCQS::Source, casacore::Vector<casacore::String> > casa::FluxCalcQS::names_p
private

A map from an FS::Source enum to a list of recognized names for it.

Definition at line 135 of file FluxCalcQS.h.

FCQS::Source casa::FluxCalcQS::srcEnum_p
private

Definition at line 132 of file FluxCalcQS.h.

Referenced by getDirection().


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