EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmPixelHit.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CbmPixelHit.h
1 
10 #ifndef CBMPIXELHIT_H_
11 #define CBMPIXELHIT_H_
12 
13 #include "CbmBaseHit.h"
14 
15 #include "TVector3.h"
16 
17 class CbmPixelHit : public CbmBaseHit
18 {
19 public:
23  CbmPixelHit();
24 
38  Int_t address,
39  Double_t x,
40  Double_t y,
41  Double_t z,
42  Double_t dx,
43  Double_t dy,
44  Double_t dz,
45  Double_t dxy,
46  Int_t refId);
47 
57  Int_t address,
58  const TVector3& pos,
59  const TVector3& err,
60  Double_t dxy,
61  Int_t refId);
62 
66  virtual ~CbmPixelHit();
67 
71  virtual string ToString() const;
72 
73  /* Accessors */
74  Double_t GetX() const { return fX; }
75  Double_t GetY() const { return fY; }
76  Double_t GetDx() const { return fDx; }
77  Double_t GetDy() const { return fDy; }
78  Double_t GetDxy() const { return fDxy; }
79 
84  void Position(TVector3& pos) const;
85 
90  void PositionError(TVector3& dpos) const;
91 
92  /* Setters */
93  void SetX(Double_t x) { fX = x; }
94  void SetY(Double_t y) {fY = y;}
95  void SetDx(Double_t dx) {fDx = dx;}
96  void SetDy(Double_t dy) {fDy = dy;}
97  void SetDxy(Double_t dxy) {fDxy = dxy;}
98 
103  void SetPosition(const TVector3& pos);
104 
109  void SetPositionError(const TVector3& dpos);
110 
111 private:
112  Double_t fX, fY;
113  Double_t fDx, fDy;
114  Double_t fDxy;
115 
116  ClassDef(CbmPixelHit, 1);
117 };
118 
119 #endif /* CBMPIXELHIT_H_ */