CalSource.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2004 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/Base/Checks/Pulsar/CalSource.h
10
11#ifndef __Pulsar_CalSource_h
12#define __Pulsar_CalSource_h
13
14#include "Pulsar/Correction.h"
15#include "Pulsar/Config.h"
16
17namespace Pulsar {
18
20
23 class CalSource : public Correction
24 {
25
26 public:
27
30
33
35 CalSource ();
36
37 // Return the name of the check
38 std::string get_name () { return "CalSource"; }
39
41 void apply (Archive* archive);
42
44 unsigned get_on_size () const;
45
47 unsigned get_off_size () const;
48
50 std::string get_on_filename () const;
51
53 std::string get_off_filename () const;
54
55 protected:
56
58 mutable std::vector<std::string> fluxcal_on;
59
61 mutable std::vector<std::string> fluxcal_off;
62
64 mutable std::string on_filename;
65
67 mutable std::string off_filename;
68
69 void load () const;
70 mutable bool loaded;
71 };
72
73
74}
75
76#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
void apply(Archive *archive)
Correct the Signal::Source type attribute of the Archive.
Definition CalSource.C:68
unsigned get_off_size() const
Get the number of FluxCalOff aliases.
Definition CalSource.C:112
CalSource()
Default constructor.
Definition CalSource.C:47
static Option< std::string > default_on
The default on filename.
Definition CalSource.h:29
std::string get_off_filename() const
Get the filename from which FluxCalOff aliases were read.
Definition CalSource.C:128
std::string on_filename
Name of file from which FluxCalOn aliases were read.
Definition CalSource.h:64
std::vector< std::string > fluxcal_on
Source names matching FluxCalOn.
Definition CalSource.h:58
unsigned get_on_size() const
Get the number of FluxCalOn aliases.
Definition CalSource.C:104
static Option< std::string > default_off
The default off filename.
Definition CalSource.h:32
std::vector< std::string > fluxcal_off
Source names matching FluxCalOff.
Definition CalSource.h:61
std::string off_filename
Name of file from which FluxCalOff aliases were read.
Definition CalSource.h:67
std::string get_on_filename() const
Get the filename from which FluxCalOn aliases were read.
Definition CalSource.C:120
Definition Correction.h:20
Configuration option.
Definition Config.h:69
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0