DoPCalibrator.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2005 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Polarimetry/Pulsar/DoPCalibrator.h
10
11#ifndef __Pulsar_DoPCalibrator_H
12#define __Pulsar_DoPCalibrator_H
13
14#include "Pulsar/SingleAxisCalibratorInfo.h"
15
16namespace Pulsar {
17
19
29
30 public:
31
33 DoPCalibrator (const Archive* archive);
34
37
39 void calibrate (Archive* archive);
40
43
44 public:
45
47 Info (const DoPCalibrator* calibrator);
48
50 std::string get_title () const;
51
53 unsigned get_nclass () const;
54
56 std::string get_label (unsigned iclass) const;
57
59 unsigned get_nparam (unsigned iclass) const;
60
61 Estimate<float> get_param (unsigned ichan,
62 unsigned iclass,
63 unsigned iparam) const;
64
65 protected:
66
69
70 };
71
73 Info* get_Info () const;
74
75 protected:
76
77 friend class Info;
78
80 std::vector< Estimate<double> > dop_scale;
81
84
86 void extra (unsigned ichan,
87 const std::vector< Estimate<double> >& source,
88 const std::vector< Estimate<double> >& sky);
89
90 };
91
92}
93
94
95#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
Communicates DoPCalibrator parameters.
Definition DoPCalibrator.h:42
std::string get_label(unsigned iclass) const
Return the name of the specified class.
Definition DoPCalibrator.C:105
unsigned get_nclass() const
Return the number of parameter classes.
Definition DoPCalibrator.C:99
std::string get_title() const
Return the title.
Definition DoPCalibrator.C:93
Reference::To< const DoPCalibrator > dopcal
The DoPCalibrator to which this instance refers.
Definition DoPCalibrator.h:68
Info(const DoPCalibrator *calibrator)
Constructor.
Definition DoPCalibrator.C:87
Estimate< float > get_param(unsigned ichan, unsigned iclass, unsigned iparam) const
Return the estimate of the specified parameter.
Definition DoPCalibrator.C:122
std::vector< Estimate< double > > dop_scale
The scale factor as a function of frequency.
Definition DoPCalibrator.h:80
double dop_reference
The degree of polarization of the reference source.
Definition DoPCalibrator.h:83
void calibrate(Archive *archive)
Calibrate the polarization of the given archive.
Definition DoPCalibrator.C:59
DoPCalibrator(const Archive *archive)
Construct from an single PolnCal Pulsar::Archive.
Definition DoPCalibrator.C:20
~DoPCalibrator()
Destructor.
Definition DoPCalibrator.C:28
void extra(unsigned ichan, const std::vector< Estimate< double > > &source, const std::vector< Estimate< double > > &sky)
Compute the scale factor for the specified channel.
Definition DoPCalibrator.C:33
Info * get_Info() const
Return the DoPCalibrator information.
Definition DoPCalibrator.C:133
Communicates SingleAxisCalibrator parameters.
Definition SingleAxisCalibratorInfo.h:21
unsigned get_nparam() const
Return the number of parameters.
Definition SingleAxisCalibratorInfo.h:29
SingleAxisCalibrator(const Archive *archive)
Construct from an single PolnCal Pulsar::Archive.
Definition SingleAxisCalibrator.C:18
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0