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/SingleAxisCalibrator.h"
15 
16 namespace Pulsar {
17 
19 
28  class DoPCalibrator : public SingleAxisCalibrator {
29 
30  public:
31 
33  DoPCalibrator (const Archive* archive);
34 
36  ~DoPCalibrator ();
37 
39  void calibrate (Archive* archive);
40 
42  class Info : public SingleAxisCalibrator::Info {
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_name (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 
83  double dop_reference;
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
virtual void calibrate(Archive *archive)
Calibrate the polarization of the given archive.
Definition: PolnCalibrator.C:874
Degree of Polarization Calibrator (P236)
Definition: DoPCalibrator.h:33
double dop_reference
The degree of polarization of the reference source.
Definition: DoPCalibrator.h:93
Communicates DoPCalibrator parameters.
Definition: DoPCalibrator.h:52
Estimate< float > get_param(unsigned ichan, unsigned iclass, unsigned iparam) const
Return the estimate of the specified parameter.
Definition: DoPCalibrator.C:122
unsigned get_nparam(unsigned iclass) const
Return the number of parameters in the specified class.
Definition: DoPCalibrator.C:114
The primary interface to pulsar observational data.
Definition: Archive.h:45
unsigned get_nclass() const
Return the number of parameter classes.
Definition: DoPCalibrator.C:99
std::vector< Estimate< double > > dop_scale
The scale factor as a function of frequency.
Definition: DoPCalibrator.h:90
Communicates SingleAxisCalibrator parameters.
Definition: SingleAxisCalibrator.h:48
Reference::To< Type > type
The type of the Calibrator.
Definition: Calibrator.h:115
~DoPCalibrator()
Destructor.
Definition: DoPCalibrator.C:28
void calibrate(Archive *archive)
Calibrate the polarization of the given archive.
Definition: DoPCalibrator.C:59
Array of Profiles integrated over the same time interval.
Definition: Integration.h:37
Info(const DoPCalibrator *calibrator)
Constructor.
Definition: DoPCalibrator.C:87
Info * get_Info() const
Return the DoPCalibrator information.
Definition: DoPCalibrator.C:133
std::string get_name(unsigned iclass) const
Return the name of the specified class.
Definition: SingleAxisCalibrator.C:95
std::string get_name(unsigned iclass) const
Return the name of the specified class.
Definition: DoPCalibrator.C:105
Estimate< float > get_param(unsigned ichan, unsigned iclass, unsigned iparam) const
Return the estimate of the specified parameter.
Definition: SingleAxisCalibrator.C:118
Degree of Polarization Calibrator (P236)
Definition: CalibratorTypes.h:191
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Represents the system as a Calibration::SingleAxis.
Definition: SingleAxisCalibrator.h:26
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
DoPCalibrator(const Archive *archive)
Construct from an single PolnCal Pulsar::Archive.
Definition: DoPCalibrator.C:20
Reference::To< const DoPCalibrator > dopcal
The DoPCalibrator to which this instance refers.
Definition: DoPCalibrator.h:78
std::string get_title() const
Return the title.
Definition: DoPCalibrator.C:93

Generated using doxygen 1.8.17