CbmRoot
CbmPixelHit.h
Go to the documentation of this file.
1 
10 #ifndef CBMPIXELHIT_H_
11 #define CBMPIXELHIT_H_
12 
13 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
14 #include <RtypesCore.h> // for Double_t, Int_t
15 #include <TVector3.h> // for TVector3
16 
17 #include <string> // for string
18 
19 #include "CbmHit.h" // for CbmHit
20 
21 class CbmPixelHit : public CbmHit {
22 public:
26  CbmPixelHit();
27 
42  CbmPixelHit(Int_t address,
43  Double_t x,
44  Double_t y,
45  Double_t z,
46  Double_t dx,
47  Double_t dy,
48  Double_t dz,
49  Double_t dxy,
50  Int_t refId,
51  Double_t time = -1.,
52  Double_t timeError = -1.);
53 
64  CbmPixelHit(Int_t address,
65  const TVector3& pos,
66  const TVector3& err,
67  Double_t dxy,
68  Int_t refId,
69  Double_t time = -1.,
70  Double_t timeError = -1.);
71 
75  virtual ~CbmPixelHit();
76 
80  virtual std::string ToString() const;
81 
82  /* Accessors */
83  Double_t GetX() const { return fX; }
84  Double_t GetY() const { return fY; }
85  Double_t GetDx() const { return fDx; }
86  Double_t GetDy() const { return fDy; }
87  Double_t GetDxy() const { return fDxy; }
88 
93  void Position(TVector3& pos) const;
94 
99  void PositionError(TVector3& dpos) const;
100 
101  /* Setters */
102  void SetX(Double_t x) { fX = x; }
103  void SetY(Double_t y) { fY = y; }
104  void SetDx(Double_t dx) { fDx = dx; }
105  void SetDy(Double_t dy) { fDy = dy; }
106  void SetDxy(Double_t dxy) { fDxy = dxy; }
107 
112  void SetPosition(const TVector3& pos);
113 
118  void SetPositionError(const TVector3& dpos);
119 
120 private:
121  Double_t fX, fY;
122  Double_t fDx, fDy;
123  Double_t fDxy;
124 
126 };
127 
128 #endif /* CBMPIXELHIT_H_ */
CbmPixelHit::SetY
void SetY(Double_t y)
Definition: CbmPixelHit.h:103
CbmPixelHit::GetDxy
Double_t GetDxy() const
Definition: CbmPixelHit.h:87
CbmPixelHit::Position
void Position(TVector3 &pos) const
Copies hit position to pos.
Definition: CbmPixelHit.cxx:64
CbmPixelHit::GetX
Double_t GetX() const
Definition: CbmPixelHit.h:83
CbmPixelHit::GetY
Double_t GetY() const
Definition: CbmPixelHit.h:84
CbmPixelHit::GetDx
Double_t GetDx() const
Definition: CbmPixelHit.h:85
CbmPixelHit::fDx
Double_t fDx
Definition: CbmPixelHit.h:122
CbmPixelHit::GetDy
Double_t GetDy() const
Definition: CbmPixelHit.h:86
CbmPixelHit::SetDy
void SetDy(Double_t dy)
Definition: CbmPixelHit.h:105
CbmPixelHit::fX
Double_t fX
Definition: CbmPixelHit.h:121
CbmHit.h
dpos
TVector3 dpos
Definition: CbmMvdSensorDigiToHitTask.cxx:61
CbmPixelHit::fY
Double_t fY
X, Y positions of hit [cm].
Definition: CbmPixelHit.h:121
CbmPixelHit::fDy
Double_t fDy
X, Y errors [cm].
Definition: CbmPixelHit.h:122
CbmPixelHit::SetPositionError
void SetPositionError(const TVector3 &dpos)
Definition: CbmPixelHit.cxx:78
CbmPixelHit::SetDx
void SetDx(Double_t dx)
Definition: CbmPixelHit.h:104
CbmPixelHit::SetX
void SetX(Double_t x)
Definition: CbmPixelHit.h:102
CbmPixelHit::ToString
virtual std::string ToString() const
Inherited from CbmBaseHit.
Definition: CbmPixelHit.cxx:56
CbmPixelHit::ClassDef
ClassDef(CbmPixelHit, 1)
CbmHit
Definition: CbmHit.h:38
x
Double_t x
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmPixelHit::SetPosition
void SetPosition(const TVector3 &pos)
Sets position of the hit.
Definition: CbmPixelHit.cxx:72
y
Double_t y
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmPixelHit::~CbmPixelHit
virtual ~CbmPixelHit()
Definition: CbmPixelHit.cxx:54
pos
TVector3 pos
Definition: CbmMvdSensorDigiToHitTask.cxx:60
CbmPixelHit
Definition: CbmPixelHit.h:21
CbmPixelHit::fDxy
Double_t fDxy
XY correlation.
Definition: CbmPixelHit.h:123
CbmPixelHit::CbmPixelHit
CbmPixelHit()
Default constructor.
Definition: CbmPixelHit.cxx:15
CbmPixelHit::SetDxy
void SetDxy(Double_t dxy)
Definition: CbmPixelHit.h:106
CbmPixelHit::PositionError
void PositionError(TVector3 &dpos) const
Copies hit position error to pos.
Definition: CbmPixelHit.cxx:68