ConfigurableProjectionInfo.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2023 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Polarimetry/Pulsar/ConfigurableProjectionInfo.h
10
11#ifndef __Pulsar_ConfigurableProjectionInfo_H
12#define __Pulsar_ConfigurableProjectionInfo_H
13
14#include "Pulsar/Calibrator.h"
15#include "Pulsar/ConfigurableProjection.h"
16
17namespace Pulsar {
18
21
22 public:
23
26
28 std::string get_title () const;
29
31 unsigned get_nchan () const;
32
34 unsigned get_nclass () const;
35
37 std::string get_label (unsigned iclass) const;
38
40 unsigned get_nparam (unsigned iclass) const;
41
43 Estimate<float> get_param (unsigned ichan, unsigned iclass,
44 unsigned iparam) const;
45
47 void set_together (unsigned N) { together = N; }
48
50 int get_colour_index (unsigned iclass, unsigned iparam) const;
51
53 int get_graph_marker (unsigned iclass, unsigned iparam) const;
54
55 protected:
56
59
61 std::vector<unsigned> parameters;
62
64 std::vector<std::string> names;
65
67 unsigned together;
68
69 };
70
71}
72
73#endif
74
Definition Calibrator.h:151
Communicates ConfigurableProjection parameters to plotting routines.
Definition ConfigurableProjectionInfo.h:20
Reference::To< const ConfigurableProjection > projection
The ConfigurableProjection to be plotted.
Definition ConfigurableProjectionInfo.h:58
Estimate< float > get_param(unsigned ichan, unsigned iclass, unsigned iparam) const
Return the estimate of the specified parameter.
Definition ConfigurableProjectionInfo.C:122
unsigned get_nparam(unsigned iclass) const
Return the number of parameters in the specified class.
Definition ConfigurableProjectionInfo.C:110
std::string get_title() const
Return the title.
Definition ConfigurableProjectionInfo.C:98
Info(const ConfigurableProjection *projection)
Constructor.
Definition ConfigurableProjectionInfo.C:16
std::vector< unsigned > parameters
Indeces of parameters with estimates.
Definition ConfigurableProjectionInfo.h:61
unsigned get_nchan() const
Return the number of frequency channels.
Definition ConfigurableProjectionInfo.C:82
std::vector< std::string > names
Names of parameters with estimates.
Definition ConfigurableProjectionInfo.h:64
void set_together(unsigned N)
Group N parameters in one class.
Definition ConfigurableProjectionInfo.h:47
int get_graph_marker(unsigned iclass, unsigned iparam) const
Return the graph marker.
Definition ConfigurableProjectionInfo.C:156
unsigned get_nclass() const
Return the number of parameter classes.
Definition ConfigurableProjectionInfo.C:88
int get_colour_index(unsigned iclass, unsigned iparam) const
Return the colour index.
Definition ConfigurableProjectionInfo.C:145
unsigned together
Number of parameters plotted in one panel.
Definition ConfigurableProjectionInfo.h:67
std::string get_label(unsigned iclass) const
Return the name of the specified class.
Definition ConfigurableProjectionInfo.C:104
ConfigurableProjection(const std::string &filename)
Construct from a configuration file.
Definition ConfigurableProjection.C:103
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0