BmnRoot
Loading...
Searching...
No Matches
BmnPixelHit.cxx
Go to the documentation of this file.
1
7
#include "
BmnPixelHit.h
"
8
9
#include <sstream>
10
using
std::stringstream;
11
using
std::endl;
12
13
BmnPixelHit::BmnPixelHit
()
14
:
BmnPixelHit
(-1, 0., 0., 0.,
15
0., 0., 0., 0., -1)
16
{
17
}
18
19
BmnPixelHit::BmnPixelHit
(
20
Int_t address,
21
const
TVector3& pos,
22
const
TVector3& err,
23
Double_t dxy,
24
Int_t refId,
25
Double_t time,
26
Double_t timeError)
27
:
BmnPixelHit
(address, pos.X(), pos.Y(), pos.Z(),
28
err.X(), err.Y(), err.Z(), dxy, refId,
29
time, timeError)
30
{
31
}
32
33
BmnPixelHit::BmnPixelHit
(
34
Int_t address,
35
Double_t x,
36
Double_t y,
37
Double_t z,
38
Double_t dx,
39
Double_t dy,
40
Double_t dz,
41
Double_t dxy,
42
Int_t refId,
43
Double_t time,
44
Double_t timeError)
45
:
BmnBaseHit
(
kPIXELHIT
, z, dz, refId, address, time, timeError),
46
fX(x),
47
fY(y),
48
fDx(dx),
49
fDy(dy),
50
fDxy(dxy)
51
{
52
}
53
54
BmnPixelHit::~BmnPixelHit
()
55
{
56
}
57
58
std::string
BmnPixelHit::ToString
()
const
59
{
60
stringstream ss;
61
ss <<
"BmnPixelHit: address="
<<
GetAddress
()
62
<<
" pos=("
<<
GetX
() <<
","
<<
GetY
() <<
","
<<
GetZ
()
63
<<
") err=("
<<
GetDx
() <<
","
<<
GetDy
() <<
","
<<
GetDz
()
64
<<
") dxy="
<<
GetDxy
() <<
" refId="
<<
GetRefId
() << endl;
65
return
ss.str();
66
}
67
68
void
BmnPixelHit::Position
(TVector3& pos)
const
69
{
70
pos.SetXYZ(
GetX
(),
GetY
(),
GetZ
());
71
}
72
73
void
BmnPixelHit::PositionError
(TVector3& dpos)
const
74
{
75
dpos.SetXYZ(
GetDx
(),
GetDy
(),
GetDz
());
76
}
77
78
void
BmnPixelHit::SetPosition
(
const
TVector3& pos)
79
{
80
SetX
(pos.X());
81
SetY
(pos.Y());
82
SetZ
(pos.Z());
83
}
84
85
void
BmnPixelHit::SetPositionError
(
const
TVector3& dpos)
86
{
87
SetDx
(dpos.X());
88
SetDy
(dpos.Y());
89
SetDz
(dpos.Z());
90
}
kPIXELHIT
@ kPIXELHIT
Definition
BmnBaseHit.h:17
BmnPixelHit.h
BmnBaseHit
Definition
BmnBaseHit.h:36
BmnBaseHit::GetZ
Double_t GetZ() const
Definition
BmnBaseHit.h:64
BmnBaseHit::SetDz
void SetDz(Double_t dz)
Definition
BmnBaseHit.h:74
BmnBaseHit::GetAddress
Int_t GetAddress() const
Definition
BmnBaseHit.h:67
BmnBaseHit::GetRefId
Int_t GetRefId() const
Definition
BmnBaseHit.h:66
BmnBaseHit::SetZ
void SetZ(Double_t z)
Definition
BmnBaseHit.h:73
BmnBaseHit::GetDz
Double_t GetDz() const
Definition
BmnBaseHit.h:65
BmnPixelHit
Definition
BmnPixelHit.h:19
BmnPixelHit::BmnPixelHit
BmnPixelHit()
Default constructor.
Definition
BmnPixelHit.cxx:13
BmnPixelHit::GetDxy
Double_t GetDxy() const
Definition
BmnPixelHit.h:89
BmnPixelHit::SetPositionError
void SetPositionError(const TVector3 &dpos)
Definition
BmnPixelHit.cxx:85
BmnPixelHit::ToString
virtual std::string ToString() const
Inherited from BmnBaseHit.
Definition
BmnPixelHit.cxx:58
BmnPixelHit::SetX
void SetX(Double_t x)
Definition
BmnPixelHit.h:104
BmnPixelHit::GetX
Double_t GetX() const
Definition
BmnPixelHit.h:85
BmnPixelHit::GetDy
Double_t GetDy() const
Definition
BmnPixelHit.h:88
BmnPixelHit::Position
void Position(TVector3 &pos) const
Copies hit position to pos.
Definition
BmnPixelHit.cxx:68
BmnPixelHit::SetPosition
void SetPosition(const TVector3 &pos)
Sets position of the hit.
Definition
BmnPixelHit.cxx:78
BmnPixelHit::~BmnPixelHit
virtual ~BmnPixelHit()
Definition
BmnPixelHit.cxx:54
BmnPixelHit::SetDy
void SetDy(Double_t dy)
Definition
BmnPixelHit.h:107
BmnPixelHit::GetY
Double_t GetY() const
Definition
BmnPixelHit.h:86
BmnPixelHit::GetDx
Double_t GetDx() const
Definition
BmnPixelHit.h:87
BmnPixelHit::SetY
void SetY(Double_t y)
Definition
BmnPixelHit.h:105
BmnPixelHit::SetDx
void SetDx(Double_t dx)
Definition
BmnPixelHit.h:106
BmnPixelHit::PositionError
void PositionError(TVector3 &dpos) const
Copies hit position error to pos.
Definition
BmnPixelHit.cxx:73
detectors
ssd
auxx
data
BmnPixelHit.cxx
Generated on Fri May 15 2026 10:40:52 for BmnRoot by
1.9.8