CbmRoot
CbmStripHit.cxx
Go to the documentation of this file.
1
6
#include "
CbmStripHit.h
"
7
8
#include <TVector3.h>
// for TVector3
9
10
#include <sstream>
// for operator<<, basic_ostream, stringstream
11
12
using
std::endl;
13
using
std::stringstream;
14
15
16
CbmStripHit::CbmStripHit
() :
CbmStripHit
(-1, 0., 0., 0., 0., 0., 0., -1) {}
17
18
CbmStripHit::CbmStripHit
(Int_t address,
19
const
TVector3&
pos
,
20
const
TVector3& err,
21
Int_t refId,
22
Double_t time,
23
Double_t timeError)
24
:
CbmStripHit
(address,
25
pos
.X(),
26
pos
.Y(),
27
pos
.Z(),
28
err.X(),
29
err.Y(),
30
err.Z(),
31
refId,
32
time,
33
timeError) {}
34
35
36
CbmStripHit::CbmStripHit
(Int_t address,
37
Double_t u,
38
Double_t phi,
39
Double_t z,
40
Double_t du,
41
Double_t dphi,
42
Double_t dz,
43
Int_t refId,
44
Double_t time,
45
Double_t timeError)
46
:
CbmHit
(
kSTRIPHIT
, z, dz, refId, address, time, timeError)
47
, fU(u)
48
, fDu(du)
49
, fPhi(phi)
50
, fDphi(dphi) {}
51
52
CbmStripHit::~CbmStripHit
() {}
53
54
std::string
CbmStripHit::ToString
()
const
{
55
stringstream ss;
56
ss <<
"CbmStripHit: address="
<<
GetAddress
() <<
" pos=("
<<
GetU
() <<
","
57
<<
GetPhi
() <<
","
<<
GetZ
() <<
") err=("
<<
GetDu
() <<
","
<<
GetDphi
()
58
<<
","
<<
GetDz
() <<
") refId="
<<
GetRefId
() << endl;
59
return
ss.str();
60
}
61
62
ClassImp
(
CbmStripHit
);
CbmHit::GetZ
Double_t GetZ() const
Definition:
CbmHit.h:70
CbmStripHit::GetPhi
Double_t GetPhi() const
Definition:
CbmStripHit.h:82
CbmStripHit::GetU
Double_t GetU() const
Definition:
CbmStripHit.h:81
CbmStripHit
Definition:
CbmStripHit.h:22
CbmStripHit::ToString
virtual std::string ToString() const
Inherited from CbmBaseHit.
Definition:
CbmStripHit.cxx:54
kSTRIPHIT
@ kSTRIPHIT
Definition:
CbmHit.h:19
CbmHit::GetRefId
Int_t GetRefId() const
Definition:
CbmHit.h:72
CbmStripHit::GetDu
Double_t GetDu() const
Definition:
CbmStripHit.h:83
CbmStripHit::CbmStripHit
CbmStripHit()
Default constructor.
Definition:
CbmStripHit.cxx:16
ClassImp
ClassImp(CbmStripHit)
CbmStripHit.h
CbmHit::GetAddress
Int_t GetAddress() const
Definition:
CbmHit.h:73
CbmHit
Definition:
CbmHit.h:38
pos
TVector3 pos
Definition:
CbmMvdSensorDigiToHitTask.cxx:60
CbmStripHit::~CbmStripHit
virtual ~CbmStripHit()
Destructor.
Definition:
CbmStripHit.cxx:52
CbmStripHit::GetDphi
Double_t GetDphi() const
Definition:
CbmStripHit.h:84
CbmHit::GetDz
Double_t GetDz() const
Definition:
CbmHit.h:71
core
data
CbmStripHit.cxx
Generated on Wed Oct 28 2020 15:11:45 for CbmRoot by
1.8.18