ConstantGainInfo.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2019 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Polarimetry/Pulsar/ConstantGainInfo.h
10 
11 #ifndef __Pulsar_ConstantGainInfo_H
12 #define __Pulsar_ConstantGainInfo_H
13 
14 #include "Pulsar/FluxCalibrator.h"
15 
16 namespace Pulsar {
17 
19  class ConstantGainInfo : public Calibrator::Info
20  {
21  public:
22 
24  ConstantGainInfo (const FluxCalibrator* cal) { instance = cal; }
25 
27  std::string get_title () const;
28 
30  unsigned get_nchan () const;
31 
33  unsigned get_nclass () const { return 2; }
34 
36  std::string get_name (unsigned iclass) const;
37 
39  unsigned get_nparam (unsigned iclass) const;
40 
42  Estimate<float> get_param (unsigned ichan, unsigned iclass,
43  unsigned iparam) const;
44 
45  protected:
46 
48 
49  };
50 
51 }
52 
53 #endif
Estimate< double > get_gain(unsigned ireceptor) const
Get the gain for the specified receptor.
Definition: FluxCalibratorConstantGain.C:172
std::string get_name(unsigned iclass) const
Return the name of the specified class.
Definition: ConstantGainInfo.C:25
std::string get_title() const
Return the title.
Definition: ConstantGainInfo.C:13
unsigned get_nclass() const
Return the number of parameter classes.
Definition: ConstantGainInfo.h:43
Estimate< float > get_param(unsigned ichan, unsigned iclass, unsigned iparam) const
Return the estimate of the specified parameter.
Definition: ConstantGainInfo.C:44
unsigned get_nchan() const
Return the number of frequency channels.
Definition: ConstantGainInfo.C:19
ConstantGainInfo(const FluxCalibrator *cal)
Constructor.
Definition: ConstantGainInfo.h:34
Calibrates flux using standard candles and artificial sources.
Definition: FluxCalibrator.h:29
unsigned get_nparam(unsigned iclass) const
Return the number of parameters in the specified class.
Definition: ConstantGainInfo.C:38
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Used when gain remains constant between FluxCal-On and Off observations.
Definition: FluxCalibratorPolicy.h:161
Flux calibration data for each receptor.
Definition: FluxCalibratorPolicy.h:28
Estimate< double > get_gain_ratio(unsigned ireceptor) const
Get the gain ratio for the specified receptor.

Generated using doxygen 1.8.17