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
17namespace Pulsar {
18
21 {
22
23 public:
24
27
29 std::string get_title () const;
30
32 unsigned get_nchan () const;
33
35 unsigned get_nclass () const;
36
38 std::string get_label (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< Reference::To<Calibration::SourceEstimate> >& source;
60
63
65 std::string label;
66
68 std::string title;
69
70 };
71
72}
73
74#endif
Definition Calibrator.h:151
unsigned get_nclass() const
Return the number of parameter classes.
Definition SourceInfo.C:48
void set_together(bool)
Plot all Stokes parameters in one panel.
Definition SourceInfo.C:22
std::string title
The title.
Definition SourceInfo.h:68
SourceInfo(const std::vector< Reference::To< Calibration::SourceEstimate > > &)
Constructor.
Definition SourceInfo.C:15
std::string get_title() const
Return the title.
Definition SourceInfo.C:37
void set_title(const std::string &)
Set the title.
Definition SourceInfo.C:32
std::string get_label(unsigned iclass) const
Return the name of the specified class.
Definition SourceInfo.C:57
unsigned get_nchan() const
Return the number of frequency channels.
Definition SourceInfo.C:42
void set_label(const std::string &)
Set the label printed on the y-axis.
Definition SourceInfo.C:27
unsigned get_nparam(unsigned iclass) const
Return the number of parameters in the specified class.
Definition SourceInfo.C:73
bool together
Plot all Stokes parameters in one panel.
Definition SourceInfo.h:62
const std::vector< Reference::To< Calibration::SourceEstimate > > & source
The SourceEstimate to be plotted.
Definition SourceInfo.h:59
std::string label
The label printed on the y-axis.
Definition SourceInfo.h:65
Estimate< float > get_param(unsigned ichan, unsigned iclass, unsigned iparam) const
Return the estimate of the specified parameter.
Definition SourceInfo.C:83
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0