EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SimpleHit3D.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SimpleHit3D.h
1 #ifndef HELIXHOUGH_SIMPLEHIT3D_H
2 #define HELIXHOUGH_SIMPLEHIT3D_H
3 
4 #include <iostream>
5 
6 #include <trackbase/TrkrDefs.h>
7 
9 {
10 
11 public:
12 
13  SimpleHit3D();
14  virtual ~SimpleHit3D() {}
15 
18 
19  unsigned int get_id() const {return _id;}
20  void set_id(unsigned int id) {_id = id;}
21 
22  int get_layer() const {return _layer;}
23  void set_layer(int layer) {_layer = layer;}
24 
25  float get_x() const {return _x;}
26  void set_x(float x) {_x = x;}
27 
28  float get_y() const {return _y;}
29  void set_y(float y) {_y = y;}
30 
31  float get_z() const {return _z;}
32  void set_z(float z) {_z = z;}
33 
34  void print(std::ostream& out = std::cout) const; //< dump the values to screen
35 
36  float get_error(unsigned int i, unsigned int j) const;
37  void set_error(unsigned int i, unsigned int j, float value);
38 
39  float get_size(unsigned int i, unsigned int j) const;
40  void set_size(unsigned int i, unsigned int j, float value);
41 
42 
43 private:
44 
45  unsigned int covar_index(unsigned int i, unsigned int j) const;
46 
48  unsigned int _id;
49  int _layer;
50 
51  float _x;
52  float _y;
53  float _z;
54 
55  float _err[6]; //< error covariance matrix (x,y,z)
56  float _size[6]; //< size covariance matrix (x,y,z)
57 
58 };
59 
60 #endif // __SIMPLEHIT3D__