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 
17 namespace 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
std::string off_filename
Name of file from which FluxCalOff aliases were read.
Definition: CalSource.h:77
Definition: Correction.h:25
std::vector< std::string > fluxcal_off
Source names matching FluxCalOff.
Definition: CalSource.h:71
The primary interface to pulsar observational data.
Definition: Archive.h:45
unsigned get_off_size() const
Get the number of FluxCalOff aliases.
Definition: CalSource.C:112
unsigned get_on_size() const
Get the number of FluxCalOn aliases.
Definition: CalSource.C:104
std::vector< std::string > fluxcal_on
Source names matching FluxCalOn.
Definition: CalSource.h:68
void apply(Archive *archive)
Correct the Signal::Source type attribute of the Archive.
Definition: CalSource.C:68
std::string on_filename
Name of file from which FluxCalOn aliases were read.
Definition: CalSource.h:74
static Option< std::string > default_off
The default off filename.
Definition: CalSource.h:42
static std::string get_runtime()
Return the name of the runtime directory.
Definition: Config.C:120
std::string get_on_filename() const
Get the filename from which FluxCalOn aliases were read.
Definition: CalSource.C:120
static Option< std::string > default_on
The default on filename.
Definition: CalSource.h:39
Corrects the Signal::Source type attribute of the Archive.
Definition: CalSource.h:28
Defines the PSRCHIVE library.
Definition: CalSource.h:17
std::string get_off_filename() const
Get the filename from which FluxCalOff aliases were read.
Definition: CalSource.C:128
CalSource()
Default constructor.
Definition: CalSource.C:47

Generated using doxygen 1.8.17