1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: EarthVector.hh 2835 2009-07-16 03:22:42Z biktem $ |
---|
3 | // Sylvain Moreggia created Mar, 15 2004 |
---|
4 | // Vector utility for simulation in the atmosphere |
---|
5 | |
---|
6 | |
---|
7 | #ifndef __EARTHVECTOR_HH_ |
---|
8 | #define __EARTHVECTOR_HH_ |
---|
9 | |
---|
10 | #include "euso.hh" |
---|
11 | #include "TVector3.h" |
---|
12 | #include <iostream> |
---|
13 | |
---|
14 | class EarthVector : public TVector3 { |
---|
15 | public: |
---|
16 | // ctor |
---|
17 | EarthVector(Double_t x = 0.0, Double_t y = 0.0, Double_t z = 0.0) : TVector3(x,y,z) {} |
---|
18 | |
---|
19 | // ctor from a table of double |
---|
20 | EarthVector(const Double_t* d) : TVector3(d) {} |
---|
21 | |
---|
22 | // ctor from a table of floats |
---|
23 | EarthVector(const Float_t* f) : TVector3(f) {} |
---|
24 | |
---|
25 | // ctor |
---|
26 | EarthVector(const TVector3& v) : TVector3 (v) {} |
---|
27 | |
---|
28 | // cpy ctor |
---|
29 | EarthVector(const EarthVector& e) : TVector3(e) {} |
---|
30 | |
---|
31 | // dtor |
---|
32 | virtual ~EarthVector() {} |
---|
33 | |
---|
34 | // operator '<<' returns (x,y,z) |
---|
35 | friend ostream& operator<<(ostream& os, const EarthVector& v); |
---|
36 | |
---|
37 | // Vertical altitude |
---|
38 | Double_t Zv() const; |
---|
39 | |
---|
40 | // Test vertical altitude |
---|
41 | Bool_t IsUnderSeaLevel() const; |
---|
42 | |
---|
43 | // Longitude angle (zero taken at MES origin) //TOFIX: x ->east, y -> north.. to check after MES final decision |
---|
44 | Double_t LocalLongitude() const; |
---|
45 | |
---|
46 | // Latitude angle (zero taken at MES origin) |
---|
47 | Double_t LocalLatitude() const; |
---|
48 | |
---|
49 | private: |
---|
50 | |
---|
51 | ClassDef(EarthVector,0) |
---|
52 | }; |
---|
53 | |
---|
54 | ostream& operator<<(ostream&, const EarthVector&); |
---|
55 | |
---|
56 | #endif /* __EARTHVECTOR_HH_ */ |
---|
57 | |
---|