AtmosphereParameters.h
Go to the documentation of this file.
1 
10 #ifndef _evt_AtmosphereParameters_h_
11 #define _evt_AtmosphereParameters_h_
12 
13 #include <vector>
14 
15 
16 namespace evt {
17 
30  public:
32 
33  AtmosphereParameters(const std::vector<double>& h,
34  const std::vector<double>& a,
35  const std::vector<double>& b,
36  const std::vector<double>& c);
37 
38  template<std::size_t n>
39  AtmosphereParameters(const double (&h)[n],
40  const double (&a)[n],
41  const double (&b)[n],
42  const double (&c)[n]) :
43  fH(h, h + n),
44  fA(a, a + n),
45  fB(b, b + n),
46  fC(c, c + n)
47  { }
48 
49  unsigned int GetNLayers() const
50  { return fH.size(); }
51 
52  const std::vector<double>& GetLayerAltitudes() const
53  { return fH; }
54 
55  const std::vector<double>& GetA() const
56  { return fA; }
57 
58  const std::vector<double>& GetB() const
59  { return fB; }
60 
61  const std::vector<double>& GetC() const
62  { return fC; }
63 
64  void SetLayerAltitudes(const std::vector<double>& h)
65  { fH = h; }
66 
67  void SetA(const std::vector<double>& a)
68  { fA = a; }
69 
70  void SetB(const std::vector<double>& b)
71  { fB = b; }
72 
73  void SetC(const std::vector<double>& c)
74  { fC = c; }
75 
76  private:
77  std::vector<double> fH;
78  std::vector<double> fA;
79  std::vector<double> fB;
80  std::vector<double> fC;
81  };
82 
83 }
84 
85 
86 #endif
87 
88 // Configure (x)emacs for this file ...
89 // Local Variables:
90 // mode: c++
91 // compile-command: "make -C .. -k"
92 // End:
unsigned int GetNLayers() const
const std::vector< double > & GetA() const
const std::vector< double > & GetB() const
std::vector< double > fA
void SetLayerAltitudes(const std::vector< double > &h)
std::vector< double > fH
std::vector< double > fB
void SetB(const std::vector< double > &b)
const std::vector< double > & GetLayerAltitudes() const
const std::vector< double > & GetC() const
AtmosphereParameters(const double(&h)[n], const double(&a)[n], const double(&b)[n], const double(&c)[n])
void SetA(const std::vector< double > &a)
Class to hold the standard parameters used to specify an atmospheric profile.
std::vector< double > fC
void SetC(const std::vector< double > &c)

, generated on Tue Sep 26 2023.