CalInterpreter.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2007 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Polarimetry/Pulsar/CalInterpreter.h
10
11#ifndef __Pulsar_CalInterpreter_h
12#define __Pulsar_CalInterpreter_h
13
14#include "Pulsar/InterpreterExtension.h"
15#include "Pulsar/Calibrator.h"
16
17#include "Pulsar/FscrunchInterpreter.h"
18#include "Pulsar/PolnCalExtFreqIntegrate.h"
19
20#include "MEAL/Complex2.h"
21
22namespace Pulsar {
23
24 class Database;
25 class PolnCalibrator;
26 class HybridCalibrator;
27 class FluxCalibrator;
28
29 class CalInterpreter : public Interpreter::Extension {
30
31 public:
32
34 CalInterpreter ();
35
37 ~CalInterpreter ();
38
40 std::string backend (const std::string& arg);
41
42 // calibrate the current top of the stack using the current state
43 std::string cal (const std::string& args);
44
45 // flux calibrate the current top of the stack using the current state
46 std::string fluxcal (const std::string& args);
47
49 std::string type (const std::string& args);
50
52 std::string load (const std::string& arg);
53
55 std::string match (const std::string& arg);
56
58 std::string frontend (const std::string& arg);
59
61 std::string set_gain (const std::string& arg);
62
64 std::string fscrunch (const std::string& arg);
65
67 std::string undo (const std::string& arg);
68
69 protected:
70
72 Reference::To<const Calibrator::Type> caltype;
73
75 Reference::To<Database> database;
76
78 Reference::To<PolnCalibrator> calibrator;
79
81 Reference::To<HybridCalibrator> hybrid_calibrator;
82
84 Reference::To<FluxCalibrator> flux_calibrator;
85
87 Reference::To<MEAL::Complex2> transformation;
88
90 FscrunchInterpreter<PolnCalExtFreqIntegrate> fscruncher;
91
92 };
93
94}
95
96#endif
Pulsar Observation Database.
Definition Database.h:35
Calibrates flux using standard candles and artificial sources.
Definition FluxCalibrator.h:24
Supplements a SystemCalibrator with a SingleAxisCalibrator.
Definition HybridCalibrator.h:27
Polarimetric calibrators.
Definition PolnCalibrator.h:37
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0