CoherencyMeasurementSet.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/More/Polarimetry/Pulsar/CoherencyMeasurementSet.h
10 
11 #ifndef __Calibration_CoherencyMeasurementSet_H
12 #define __Calibration_CoherencyMeasurementSet_H
13 
14 #include "Pulsar/CoherencyMeasurement.h"
15 #include "MJD.h"
16 #include "Types.h"
17 
18 namespace Calibration {
19 
21  class CoherencyMeasurementSet : public std::vector<CoherencyMeasurement>
22  {
23 
24  public:
25 
28 
31 
33  void set_transformation_index (unsigned index);
34 
36  unsigned get_transformation_index () const;
37 
39  void add_coordinate (MEAL::Argument::Value* abscissa);
40 
42  void set_coordinates () const;
43 
45  void set_identifier (const std::string& val) { identifier = val; }
46 
48  const std::string& get_identifier () const { return identifier; }
49 
51  void set_name (const std::string& val) { name = val; }
52 
54  const std::string& get_name () const { return name; }
55 
57  void set_source (Signal::Source val) { source = val; }
58 
60  Signal::Source get_source () const { return source; }
61 
63  void set_epoch (const MJD& val) { epoch = val; }
64 
66  const MJD& get_epoch () const { return epoch; }
67 
69  void set_ichan (unsigned val) { ichan = val; }
70 
72  unsigned get_ichan () const { return ichan; }
73 
74  protected:
75 
77  unsigned transformation_index;
78 
80  std::vector< Reference::To<MEAL::Argument::Value> > coordinates;
81 
83  std::string identifier;
84 
86  std::string name;
87 
90 
92  MJD epoch;
93 
95  unsigned ichan;
96 
97  };
98 
99 }
100 
101 #endif
unsigned transformation_index
Index of the transformation through which the measurements are made.
Definition: CoherencyMeasurementSet.h:87
CoherencyMeasurementSet(unsigned transformation_index=0)
Default constructor.
Definition: CoherencyMeasurementSet.C:13
std::vector< Reference::To< MEAL::Argument::Value > > coordinates
The coordinates shared by all measurements in the set.
Definition: CoherencyMeasurementSet.h:90
const std::string & get_name() const
Get the name.
Definition: CoherencyMeasurementSet.h:64
std::string name
Source name.
Definition: CoherencyMeasurementSet.h:96
~CoherencyMeasurementSet()
Destructor.
Definition: CoherencyMeasurementSet.C:18
void set_name(const std::string &val)
Set the name.
Definition: CoherencyMeasurementSet.h:61
Signal::Source get_source() const
Get the source.
Definition: CoherencyMeasurementSet.h:70
void set_source(Signal::Source val)
Set the source.
Definition: CoherencyMeasurementSet.h:67
void set_identifier(const std::string &val)
Set the identifier.
Definition: CoherencyMeasurementSet.h:55
void set_coordinates() const
Apply the independent variables.
Definition: CoherencyMeasurementSet.C:41
const std::string & get_identifier() const
Get the identifier.
Definition: CoherencyMeasurementSet.h:58
const MJD & get_epoch() const
Get the epoch.
Definition: CoherencyMeasurementSet.h:76
Signal::Source source
Source code.
Definition: CoherencyMeasurementSet.h:99
void add_coordinate(MEAL::Argument::Value *abscissa)
Add an independent variable.
Definition: CoherencyMeasurementSet.C:36
unsigned get_transformation_index() const
Get the transformation through which the measurements are made.
Definition: CoherencyMeasurementSet.C:30
unsigned ichan
Frequency channel.
Definition: CoherencyMeasurementSet.h:105
unsigned get_ichan() const
Get the channel index.
Definition: CoherencyMeasurementSet.h:82
void set_ichan(unsigned val)
Set the channel index.
Definition: CoherencyMeasurementSet.h:79
void set_transformation_index(unsigned index)
Set the transformation through which the measurements are made.
Definition: CoherencyMeasurementSet.C:24
MJD epoch
Epoch of the observation.
Definition: CoherencyMeasurementSet.h:102
void set_epoch(const MJD &val)
Set the epoch.
Definition: CoherencyMeasurementSet.h:73
std::string identifier
The identifier.
Definition: CoherencyMeasurementSet.h:93

Generated using doxygen 1.8.17