BmnRoot
Loading...
Searching...
No Matches
BmnPixelHit.h
Go to the documentation of this file.
1
11#ifndef BMNPIXELHIT_H_
12#define BMNPIXELHIT_H_
13
14#include "BmnBaseHit.h"
15
16#include "TVector3.h"
17
18class BmnPixelHit : public BmnBaseHit
19{
20public:
25
41 Int_t address,
42 Double_t x,
43 Double_t y,
44 Double_t z,
45 Double_t dx,
46 Double_t dy,
47 Double_t dz,
48 Double_t dxy,
49 Int_t refId,
50 Double_t time = -1.,
51 Double_t timeError = -1.
52 );
53
65 Int_t address,
66 const TVector3& pos,
67 const TVector3& err,
68 Double_t dxy,
69 Int_t refId,
70 Double_t time = -1.,
71 Double_t timeError = -1.
72 );
73
77 virtual ~BmnPixelHit();
78
82 virtual std::string ToString() const;
83
84 /* Accessors */
85 Double_t GetX() const { return fX; }
86 Double_t GetY() const { return fY; }
87 Double_t GetDx() const { return fDx; }
88 Double_t GetDy() const { return fDy; }
89 Double_t GetDxy() const { return fDxy; }
90
95 void Position(TVector3& pos) const;
96
101 void PositionError(TVector3& dpos) const;
102
103 /* Setters */
104 void SetX(Double_t x) { fX = x; }
105 void SetY(Double_t y) {fY = y;}
106 void SetDx(Double_t dx) {fDx = dx;}
107 void SetDy(Double_t dy) {fDy = dy;}
108 void SetDxy(Double_t dxy) {fDxy = dxy;}
109
114 void SetPosition(const TVector3& pos);
115
120 void SetPositionError(const TVector3& dpos);
121
122private:
123 Double_t fX, fY;
124 Double_t fDx, fDy;
125 Double_t fDxy;
126
127 ClassDef(BmnPixelHit, 1);
128};
129
130#endif /* BMNPIXELHIT_H_ */
BmnPixelHit()
Default constructor.
Double_t GetDxy() const
Definition BmnPixelHit.h:89
void SetDxy(Double_t dxy)
void SetPositionError(const TVector3 &dpos)
virtual std::string ToString() const
Inherited from BmnBaseHit.
void SetX(Double_t x)
Double_t GetX() const
Definition BmnPixelHit.h:85
Double_t GetDy() const
Definition BmnPixelHit.h:88
void Position(TVector3 &pos) const
Copies hit position to pos.
void SetPosition(const TVector3 &pos)
Sets position of the hit.
virtual ~BmnPixelHit()
void SetDy(Double_t dy)
Double_t GetY() const
Definition BmnPixelHit.h:86
Double_t GetDx() const
Definition BmnPixelHit.h:87
void SetY(Double_t y)
void SetDx(Double_t dx)
void PositionError(TVector3 &dpos) const
Copies hit position error to pos.