SourceInfo.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2004-2008 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Polarimetry/Pulsar/SourceInfo.h
10 
11 #ifndef __Pulsar_SourceInfo_H
12 #define __Pulsar_SourceInfo_H
13 
14 #include "Pulsar/Calibrator.h"
15 #include "Pulsar/SourceEstimate.h"
16 
17 namespace Pulsar {
18 
20  class SourceInfo : public Calibrator::Info
21  {
22 
23  public:
24 
26  SourceInfo (const std::vector<Calibration::SourceEstimate>& source);
27 
29  std::string get_title () const;
30 
32  unsigned get_nchan () const;
33 
35  unsigned get_nclass () const;
36 
38  std::string get_name (unsigned iclass) const;
39 
41  unsigned get_nparam (unsigned iclass) const;
42 
44  Estimate<float> get_param (unsigned ichan, unsigned iclass,
45  unsigned iparam) const;
46 
48  void set_together (bool);
49 
51  void set_label (const std::string&);
52 
54  void set_title (const std::string&);
55 
56  protected:
57 
59  const std::vector<Calibration::SourceEstimate>& source;
60 
62  bool together;
63 
65  std::string label;
66 
68  std::string title;
69 
70  };
71 
72 }
73 
74 #endif
bool together
Plot all Stokes parameters in one panel.
Definition: SourceInfo.h:72
Estimate< float > get_param(unsigned ichan, unsigned iclass, unsigned iparam) const
Return the estimate of the specified parameter.
Definition: SourceInfo.C:83
std::string get_title() const
Return the title.
Definition: SourceInfo.C:37
const std::vector< Calibration::SourceEstimate > & source
The SourceEstimate to be plotted.
Definition: SourceInfo.h:69
std::string label
The label printed on the y-axis.
Definition: SourceInfo.h:75
void set_together(bool)
Plot all Stokes parameters in one panel.
Definition: SourceInfo.C:22
unsigned get_nchan() const
Return the number of frequency channels.
Definition: SourceInfo.C:42
void set_title(const std::string &)
Set the title.
Definition: SourceInfo.C:32
std::string title
The title.
Definition: SourceInfo.h:78
unsigned get_nclass() const
Return the number of parameter classes.
Definition: SourceInfo.C:48
Defines the PSRCHIVE library.
Definition: CalSource.h:17
unsigned get_nparam(unsigned iclass) const
Return the number of parameters in the specified class.
Definition: SourceInfo.C:73
SourceInfo(const std::vector< Calibration::SourceEstimate > &source)
Constructor.
Definition: SourceInfo.C:15
std::string get_name(unsigned iclass) const
Return the name of the specified class.
Definition: SourceInfo.C:57
void set_label(const std::string &)
Set the label printed on the y-axis.
Definition: SourceInfo.C:27

Generated using doxygen 1.8.17