]>
Commit | Line | Data |
---|---|---|
8356cc1d | 1 | //////////////////////////////////////////////////////////////////////////////// |
2 | // | |
3 | // Author: Artur Szostak | |
4 | // Email: artur@alice.phy.uct.ac.za | artursz@iafrica.com | |
5 | // | |
6 | //////////////////////////////////////////////////////////////////////////////// | |
7 | ||
8 | #ifndef dHLT_POINT_HPP | |
9 | #define dHLT_POINT_HPP | |
10 | ||
11 | #include "BasicTypes.hpp" | |
12 | ||
13 | namespace dHLT | |
14 | { | |
15 | ||
16 | ||
17 | /* A 2D point structure using floats. | |
18 | These are used to store impact points on the trigger chambers and | |
19 | cluster centroids. | |
20 | */ | |
21 | class Point | |
22 | { | |
23 | public: | |
24 | ||
25 | Float x, y; | |
26 | ||
27 | Point() | |
28 | { | |
29 | x = 0.0; | |
30 | y = 0.0; | |
cbee67e7 | 31 | } |
8356cc1d | 32 | |
e33f3609 | 33 | Point(Float x0, Float y0) |
8356cc1d | 34 | { |
cbee67e7 | 35 | this->x = x0; |
36 | this->y = y0; | |
37 | } | |
8356cc1d | 38 | }; |
39 | ||
40 | ||
41 | } // dHLT | |
42 | ||
43 | #endif // dHLT_POINT_HPP |