BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
CbmStripHit.cxx
Go to the documentation of this file.
1
/**
2
* \file CbmStripHit.h
3
* \author Andrey Lebedev <andrey.lebedev@gsi.de>
4
* \date 2009
5
**/
6
7
#include "
CbmStripHit.h
"
8
9
#include "
TVector3.h
"
10
11
#include <sstream>
12
using
std::endl;
13
using
std::stringstream;
14
15
CbmStripHit::CbmStripHit
()
16
:
CbmBaseHit
()
17
,
fU
(0.)
18
,
fDu
(0.)
19
,
fPhi
(0.)
20
,
fDphi
(0.)
21
{
22
SetType
(
kSTRIPHIT_o
);
23
}
24
25
CbmStripHit::CbmStripHit
(
Int_t
address,
26
Double_t
u,
27
Double_t
phi,
28
Double_t
z,
29
Double_t
du,
30
Double_t
dphi,
31
Double_t
dz,
32
Int_t
refId)
33
:
CbmBaseHit
()
34
,
fU
(u)
35
,
fDu
(du)
36
,
fPhi
(phi)
37
,
fDphi
(dphi)
38
{
39
SetType
(
kSTRIPHIT_o
);
40
SetAddress
(address);
41
SetZ
(z);
42
SetDz
(dz);
43
SetRefId
(refId);
44
}
45
46
CbmStripHit::CbmStripHit
(
Int_t
address,
const
TVector3
& pos,
const
TVector3
& err,
Int_t
refId)
47
:
CbmBaseHit
()
48
,
fU
(pos.X())
49
,
fDu
(err.X())
50
,
fPhi
(pos.Y())
51
,
fDphi
(err.Y())
52
{
53
SetType
(
kSTRIPHIT_o
);
54
SetAddress
(address);
55
SetZ
(pos.
Z
());
56
SetDz
(err.
Z
());
57
SetRefId
(refId);
58
}
59
60
CbmStripHit::~CbmStripHit
() {}
61
62
string
CbmStripHit::ToString
()
const
63
{
64
stringstream ss;
65
ss <<
"CbmStripHit: address="
<<
GetAddress
() <<
" pos=("
<<
GetU
() <<
","
<<
GetPhi
() <<
","
<<
GetZ
() <<
") err=("
66
<<
GetDu
() <<
","
<<
GetDphi
() <<
","
<<
GetDz
() <<
") refId="
<<
GetRefId
() << endl;
67
return
ss.str();
68
}
Int_t
int Int_t
Double_t
double Double_t
TVector3.h
kSTRIPHIT_o
@ kSTRIPHIT_o
Definition
CbmBaseHit.h:18
CbmStripHit.h
CbmBaseHit::GetZ
Double_t GetZ() const
Definition
CbmBaseHit.h:50
CbmBaseHit::GetDz
Double_t GetDz() const
Definition
CbmBaseHit.h:51
CbmBaseHit::GetAddress
Int_t GetAddress() const
Definition
CbmBaseHit.h:53
CbmBaseHit::SetRefId
void SetRefId(Int_t refId)
Definition
CbmBaseHit.h:59
CbmBaseHit::GetRefId
Int_t GetRefId() const
Definition
CbmBaseHit.h:52
CbmBaseHit::SetDz
void SetDz(Double_t dz)
Definition
CbmBaseHit.h:58
CbmBaseHit::SetZ
void SetZ(Double_t z)
Definition
CbmBaseHit.h:57
CbmBaseHit::CbmBaseHit
CbmBaseHit()
Default constructor.
Definition
CbmBaseHit.cxx:12
CbmBaseHit::SetAddress
void SetAddress(Int_t address)
Definition
CbmBaseHit.h:60
CbmBaseHit::SetType
void SetType(HitType_o type)
Sets hit type.
Definition
CbmBaseHit.h:82
CbmStripHit::CbmStripHit
CbmStripHit()
Default constructor.
Definition
CbmStripHit.cxx:15
CbmStripHit::fPhi
Double_t fPhi
strip rotation angle [rad]
Definition
CbmStripHit.h:79
CbmStripHit::fU
Double_t fU
U coordinate in the rotated c.s [cm].
Definition
CbmStripHit.h:77
CbmStripHit::GetDphi
Double_t GetDphi() const
Definition
CbmStripHit.h:68
CbmStripHit::GetPhi
Double_t GetPhi() const
Definition
CbmStripHit.h:66
CbmStripHit::fDphi
Double_t fDphi
strip rotation error [rad]
Definition
CbmStripHit.h:80
CbmStripHit::ToString
virtual string ToString() const
Inherited from CbmBaseHit.
Definition
CbmStripHit.cxx:62
CbmStripHit::GetU
Double_t GetU() const
Definition
CbmStripHit.h:65
CbmStripHit::fDu
Double_t fDu
U error [cm].
Definition
CbmStripHit.h:78
CbmStripHit::GetDu
Double_t GetDu() const
Definition
CbmStripHit.h:67
CbmStripHit::~CbmStripHit
virtual ~CbmStripHit()
Destructor.
Definition
CbmStripHit.cxx:60
TVector3
TVector3::Z
Double_t Z() const
base
cbm
CbmStripHit.cxx
Generated on
for BmnRoot by
1.17.0