casa
$Rev:20696$
|
#include <FluxCalcQS.h>
Public Types | |
enum | Source { THREEC286, THREEC48, THREEC147, THREEC138, NINETEEN34M638, THREEC295, THREEC196, THREEC123, NUMBER_SOURCES, UNKNOWN_SOURCE } |
Source identifiers. More... | |
typedef FluxCalcQS | FCQS |
typedef RigidVector< String, 4 > | RVS4 |
typedef RigidVector< String, 5 > | RVS5 |
Public Member Functions | |
virtual | ~FluxCalcQS () |
virtual Bool | operator() (Flux< Double > &value, Flux< Double > &error, const MFrequency &mfreq)=0 |
Bool | operator() (Vector< Flux< Double > > &values, Vector< Flux< Double > > &errors, const Vector< MFrequency > &mfreqs) |
FCQS::Source | srcNameToEnum (const String &srcName) const |
If a FS::Source enum matches srcName, returns the enum. | |
virtual Bool | setSource (const String &sourceName) |
Sets srcEnum_p = srcNameToEnum(sourceName), and returns srcEnum_p != FCQS::UNKNOWN_SOURCE. | |
FCQS::Source | getSrcEnum () |
MDirection | getDirection () |
Protected Member Functions | |
FluxCalcQS () | |
Private Attributes | |
FCQS::Source | srcEnum_p |
std::map< FCQS::Source, Vector < String > > | names_p |
A map from an FS::Source enum to a list of recognized names for it. | |
std::map< FCQS::Source, MDirection > | directions_p |
A map from an FS::Source enum to its J2000 direction. |
class Vector;
FluxCalcQS: Base class for flux standard calculations which do not explicitly depend on time.
Public interface
From "flux density", "calculator", and "quasistatic".
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.
Provide a base time-independent interface for calculating standard flux densities, and include any common functions.
Definition at line 82 of file FluxCalcQS.h.
typedef FluxCalcQS casa::FluxCalcQS::FCQS |
Definition at line 85 of file FluxCalcQS.h.
typedef RigidVector<String, 4> casa::FluxCalcQS::RVS4 |
Definition at line 86 of file FluxCalcQS.h.
typedef RigidVector<String, 5> casa::FluxCalcQS::RVS5 |
Definition at line 87 of file FluxCalcQS.h.
Source identifiers.
THREEC286 | |
THREEC48 | |
THREEC147 | |
THREEC138 | |
NINETEEN34M638 | |
THREEC295 | |
THREEC196 | |
THREEC123 | |
NUMBER_SOURCES |
The number of standards in this enumerator. |
UNKNOWN_SOURCE |
Definition at line 90 of file FluxCalcQS.h.
virtual casa::FluxCalcQS::~FluxCalcQS | ( | ) | [virtual] |
casa::FluxCalcQS::FluxCalcQS | ( | ) | [protected] |
MDirection casa::FluxCalcQS::getDirection | ( | ) | [inline] |
Definition at line 122 of file FluxCalcQS.h.
References directions_p, and srcEnum_p.
virtual Bool casa::FluxCalcQS::operator() | ( | Flux< Double > & | value, |
Flux< Double > & | error, | ||
const MFrequency & | mfreq | ||
) | [pure virtual] |
Implemented in casa::FluxCalcLogFreqBrokenPolynomial, and casa::FluxCalcLogFreqPolynomial.
Bool casa::FluxCalcQS::operator() | ( | Vector< Flux< Double > > & | values, |
Vector< Flux< Double > > & | errors, | ||
const Vector< MFrequency > & | mfreqs | ||
) |
virtual Bool casa::FluxCalcQS::setSource | ( | const String & | sourceName | ) | [virtual] |
Sets srcEnum_p = srcNameToEnum(sourceName), and returns srcEnum_p != FCQS::UNKNOWN_SOURCE.
Reimplemented in casa::FluxCalcLogFreqPolynomial.
FCQS::Source casa::FluxCalcQS::srcNameToEnum | ( | const String & | srcName | ) | const |
If a FS::Source enum matches srcName, returns the enum.
Otherwise, FCQS::UNKNOWN_SOURCE.
std::map<FCQS::Source, MDirection> casa::FluxCalcQS::directions_p [private] |
A map from an FS::Source enum to its J2000 direction.
Definition at line 134 of file FluxCalcQS.h.
Referenced by getDirection().
std::map<FCQS::Source, Vector<String> > casa::FluxCalcQS::names_p [private] |
A map from an FS::Source enum to a list of recognized names for it.
Definition at line 131 of file FluxCalcQS.h.
FCQS::Source casa::FluxCalcQS::srcEnum_p [private] |
Definition at line 128 of file FluxCalcQS.h.
Referenced by getDirection().