CARMA C++
TipperDataSet.h
1 #ifndef _TIPPERDATASET_H
2 #define _TIPPERDATASET_H
3 
4 namespace carma
5 {
6  namespace tipper
7  {
8 
9  // All parameters of a single reading (line) of a tip
10  class Reading{
11  public:
12  Reading();
13  int seq;
14  int index;
15  double zenAngle;
16  double mjd;
17  double aveSigMinusRef;
18  double rmsSigMinusRef;
19  double sigMinusRef;
20  double hotMinusRef;
21  double refTotalPower;
22  double refTemp;
23  double hotTemp;
24  double ambTemp;
25  double chassisTemp;
26  double mixerCurrent;
27  double triplerCurrent;
28  double gunnCurrent;
29  double batteryVoltage;
30  double supplyCurrent;
31  // Following are not in raw data; calculated on load
32  double airMass;
33  double Ta;
34  double Tc;
35  double Th;
36  double G;
37  };
38 
39  // A full tip consisting of multiple readings
40  class TipperDataSet
41  {
42  public:
43  TipperDataSet();
44  ~TipperDataSet();
45  int addReading(Reading& r);
46  int addReduction(int seq,
47  double zenAngle, double mjd,
48  double aveSigMinusRef, double rmsSigMinusRef, double hotMinusRef,
49  double refTemp, double ambTemp, double hotTemp);
50  int getSeq();
51  double getMjd();
52  int getNumReadings();
53  Reading getReading(int index);
54  private:
55  int seq;
56  double mjd;
57  int numReadings;
58  Reading* reading;
59  };
60 
61  } // namespace tipper
62 } // namespace carma
63 
64 #endif // _TIPPERDATASET_H