Used when gain varies between FluxCal-On and Off observations. More...

#include <FluxCalibratorPolicy.h>

Inheritance diagram for FluxCalibrator::VariableGain:
Pulsar::FluxCalibrator::Policy Reference::Able Reference::HeapTracked

Public Member Functions

 VariableGain ()
 Default constructor.
VariableGainclone () const
 Return a new default constructed copy of self.
void integrate (Signal::Source source, unsigned ireceptor, const Estimate< double > &cal_hi, const Estimate< double > &cal_lo)
 Integrate an observation of the reference source.
Public Member Functions inherited from Pulsar::FluxCalibrator::Policy
 Policy ()
 Default constructor.
void get (std::vector< Estimate< double > > &S_sys, std::vector< Estimate< double > > &S_cal) const
 Get the flux densities for each receptor.
void set (const std::vector< Estimate< double > > &S_sys, const std::vector< Estimate< double > > &S_cal)
 Set the flux densities for each receptor.
virtual void set_nreceptor (unsigned)
 Set the number of receptors.
unsigned get_nreceptor () const
 Get the number of receptors.
void set_S_std (double S_std)
 Set the flux density of the standard candle.
double get_S_std () const
 Get the flux density of the standard candle.
void set_valid (bool f=true)
 Set the data validity flag.
bool get_valid () const
 Get the data validity flag.
bool get_solution_available () const
 Return true when a solution is available.
Estimate< double > get_S_sys () const
 Return the total system equivalent flux density.
Estimate< double > get_S_cal () const
 Return the total calibrator flux density.
Estimate< double > get_S_sys (unsigned receptor) const
 Return the system equivalent flux density in the specified receptor.
Estimate< double > get_S_cal (unsigned receptor) const
 Return the calibrator flux density in the specified receptor.
Public Member Functions inherited from Reference::Able
 Able (const Able &)
Ableoperator= (const Able &)
unsigned get_reference_count () const
Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
HeapTrackedoperator= (const HeapTracked &)
bool __is_on_heap () const

Protected Member Functions

void add_ratio_on (unsigned receptor, Estimate< double > &ratio_on)
 Add to the mean hi/lo ratio on source for the specified receptor.
void add_ratio_off (unsigned receptor, Estimate< double > &ratio_on)
 Add to the mean hi/lo ratio off source for the specified receptor.
void compute (unsigned ireceptor, Estimate< double > &S_cal, Estimate< double > &S_sys)
 Compute the fluxes of the reference source and system.
Protected Member Functions inherited from Pulsar::FluxCalibrator::Policy
void calculate () const
 Calulate S_cal and S_sys for both receptors.
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Protected Attributes

std::vector< MeanEstimate< double > > mean_ratio_on
 Ratio of cal hi/lo on source in each receptor.
std::vector< MeanEstimate< double > > mean_ratio_off
 Ratio of cal hi/lo off source in each receptor.
Protected Attributes inherited from Pulsar::FluxCalibrator::Policy
bool valid
 Flag set when data are valid.
double S_std
 Flux density of the standard candle.
std::vector< Estimate< double > > S_cal
 Calibrator flux density in each receptor.
std::vector< Estimate< double > > S_sys
 System equivalent flux density in each receptor.
bool calculated
 Flag set when S_cal and S_sys have been computed.

Additional Inherited Members

Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
static void operator delete (void *location, void *ptr)
static void operator delete (void *location)
static size_t get_heap_queue_size ()

Detailed Description

Used when gain varies between FluxCal-On and Off observations.

Member Function Documentation

◆ add_ratio_off()

void FluxCalibrator::VariableGain::add_ratio_off ( unsigned receptor,
Estimate< double > & ratio_on )
protected

Add to the mean hi/lo ratio off source for the specified receptor.

Add to the mean hi/lo ratio on source for the specified receptor.

◆ clone()

FluxCalibrator::VariableGain * FluxCalibrator::VariableGain::clone ( ) const
virtual

Return a new default constructed copy of self.

Implements Pulsar::FluxCalibrator::Policy.

◆ compute()

void FluxCalibrator::VariableGain::compute ( unsigned ireceptor,
Estimate< double > & S_cal,
Estimate< double > & S_sys )
protectedvirtual

Compute the fluxes of the reference source and system.

Implements Pulsar::FluxCalibrator::Policy.

◆ integrate()

void FluxCalibrator::VariableGain::integrate ( Signal::Source source,
unsigned ireceptor,
const Estimate< double > & cal_hi,
const Estimate< double > & cal_lo )
virtual

Integrate an observation of the reference source.

Implements Pulsar::FluxCalibrator::Policy.


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

Generated using doxygen 1.14.0