CbmRoot
Loading...
Searching...
No Matches
CbmPixelHit.h
Go to the documentation of this file.
1/* Copyright (C) 2009-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer], Andrey Lebedev */
4
14#ifndef CBMPIXELHIT_H_
15#define CBMPIXELHIT_H_
16
17#include "CbmHit.h" // for CbmHit
18
19#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
20#include <TVector3.h> // for TVector3
21
22#include <cstdint>
23#include <string> // for string
24
25class CbmPixelHit : public CbmHit {
26public:
31
46 CbmPixelHit(int32_t address, double x, double y, double z, double dx, double dy, double dz, double dxy, int32_t refId,
47 double time = -1., double timeError = -1.);
48
59 CbmPixelHit(int32_t address, const TVector3& pos, const TVector3& err, double dxy, int32_t refId, double time = -1.,
60 double timeError = -1.);
61
65 virtual ~CbmPixelHit();
66
70 virtual std::string ToString() const;
71
72 /* Accessors */
73 double GetX() const { return fX; }
74 double GetY() const { return fY; }
75 double GetDx() const { return fDx; }
76 double GetDy() const { return fDy; }
77 double GetDxy() const { return fDxy; }
78
83 void Position(TVector3& pos) const;
84
89 void PositionError(TVector3& dpos) const;
90
91 /* Setters */
92 void SetX(double x) { fX = x; }
93 void SetY(double y) { fY = y; }
94 void SetDx(double dx) { fDx = dx; }
95 void SetDy(double dy) { fDy = dy; }
96 void SetDxy(double dxy) { fDxy = dxy; }
97
102 void SetPosition(const TVector3& pos);
103
108 void SetPositionError(const TVector3& dpos);
109
110private:
111 double fX, fY;
112 double fDx, fDy;
113 double fDxy;
114
116};
117
118#endif /* CBMPIXELHIT_H_ */
TVector3 dpos
void SetDxy(double dxy)
Definition CbmPixelHit.h:96
void SetDx(double dx)
Definition CbmPixelHit.h:94
double GetDy() const
Definition CbmPixelHit.h:76
void Position(TVector3 &pos) const
Copies hit position to pos.
double GetDx() const
Definition CbmPixelHit.h:75
double fDxy
X-Y covariance of the hit [cm**2].
void PositionError(TVector3 &dpos) const
Copies hit position error to pos.
void SetX(double x)
Definition CbmPixelHit.h:92
double GetY() const
Definition CbmPixelHit.h:74
double fDy
X, Y errors [cm].
CbmPixelHit()
Default constructor.
virtual std::string ToString() const
Inherited from CbmBaseHit.
void SetY(double y)
Definition CbmPixelHit.h:93
void SetPositionError(const TVector3 &dpos)
virtual ~CbmPixelHit()
double GetX() const
Definition CbmPixelHit.h:73
ClassDef(CbmPixelHit, 1)
void SetDy(double dy)
Definition CbmPixelHit.h:95
double GetDxy() const
Definition CbmPixelHit.h:77
double fY
X, Y positions of hit [cm].
void SetPosition(const TVector3 &pos)
Sets position of the hit.