source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/common/base/include/EarthVector.hh @ 117

Last change on this file since 117 was 117, checked in by moretto, 11 years ago

ESAF version compilable on mac OS

File size: 1.4 KB
Line 
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
14class EarthVector : public TVector3 {
15public:
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
49private:
50
51    ClassDef(EarthVector,0)
52};
53
54ostream& operator<<(ostream&, const EarthVector&);
55
56#endif  /* __EARTHVECTOR_HH_ */
57
Note: See TracBrowser for help on using the repository browser.