CbmRoot
CbmRichHit.cxx
Go to the documentation of this file.
1
5
#include "
CbmRichHit.h
"
6
7
#include "
CbmHit.h
"
// for kRICHHIT
8
9
#include <sstream>
// for operator<<, basic_ostream, stringstream
10
11
using
std::endl;
12
using
std::stringstream;
13
14
CbmRichHit::CbmRichHit
()
15
:
CbmPixelHit
()
16
, fPmtId(0)
17
,
18
// fNPhotons(0),
19
// fAmplitude(0.),
20
fToT(0.) {
21
SetType
(
kRICHHIT
);
22
SetTime
(0.);
23
}
24
25
CbmRichHit::CbmRichHit
(Double_t
x
, Double_t
y
)
26
:
CbmPixelHit
()
27
, fPmtId(0)
28
,
29
// fNPhotons(0),
30
// fAmplitude(0.),
31
fToT(0.) {
32
SetType
(
kRICHHIT
);
33
SetX
(
x
);
34
SetY
(
y
);
35
SetTime
(0.);
36
}
37
38
CbmRichHit::CbmRichHit
(Double_t
x
, Double_t
y
, Double_t ts, Double_t tot)
39
:
CbmPixelHit
()
40
, fPmtId(0)
41
,
42
// fNPhotons(0),
43
// fAmplitude(0.),
44
fToT(tot) {
45
SetType
(
kRICHHIT
);
46
SetX
(
x
);
47
SetY
(
y
);
48
SetTime
(ts);
49
}
50
51
CbmRichHit::~CbmRichHit
() {}
52
53
std::string
CbmRichHit::ToString
()
const
{
54
stringstream ss;
55
ss <<
"CbmRichHit: address="
<<
GetAddress
() <<
" pos=("
<<
GetX
() <<
","
56
<<
GetY
() <<
","
<<
GetZ
() <<
") err=("
<<
GetDx
() <<
","
<<
GetDy
() <<
","
57
<<
GetDz
() <<
") dxy="
<<
GetDxy
() <<
" refId="
58
<<
GetRefId
()
59
// << " pmtId=" << GetPmtId() << " nofPhotons=" << GetNPhotons()
60
// << " amplitude=" << GetAmplitude()
61
<< endl;
62
return
ss.str();
63
}
64
65
ClassImp
(
CbmRichHit
)
CbmHit::GetZ
Double_t GetZ() const
Definition:
CbmHit.h:70
CbmPixelHit::SetY
void SetY(Double_t y)
Definition:
CbmPixelHit.h:103
CbmPixelHit::GetDxy
Double_t GetDxy() const
Definition:
CbmPixelHit.h:87
CbmRichHit::ToString
virtual std::string ToString() const
Inherited from CbmBaseHit.
Definition:
CbmRichHit.cxx:53
CbmPixelHit::GetX
Double_t GetX() const
Definition:
CbmPixelHit.h:83
CbmPixelHit::GetY
Double_t GetY() const
Definition:
CbmPixelHit.h:84
CbmPixelHit::GetDx
Double_t GetDx() const
Definition:
CbmPixelHit.h:85
CbmRichHit::~CbmRichHit
virtual ~CbmRichHit()
Destructor.
Definition:
CbmRichHit.cxx:51
CbmHit::SetType
void SetType(HitType type)
Sets hit type.
Definition:
CbmHit.h:112
CbmHit::GetRefId
Int_t GetRefId() const
Definition:
CbmHit.h:72
CbmPixelHit::GetDy
Double_t GetDy() const
Definition:
CbmPixelHit.h:86
CbmHit.h
CbmHit::GetAddress
Int_t GetAddress() const
Definition:
CbmHit.h:73
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition:
CbmConverterManager.cxx:12
CbmPixelHit::SetX
void SetX(Double_t x)
Definition:
CbmPixelHit.h:102
CbmHit::SetTime
void SetTime(Double_t time)
Definition:
CbmHit.h:84
x
Double_t x
Definition:
CbmMvdSensorDigiToHitTask.cxx:68
y
Double_t y
Definition:
CbmMvdSensorDigiToHitTask.cxx:68
CbmPixelHit
Definition:
CbmPixelHit.h:21
CbmRichHit.h
kRICHHIT
@ kRICHHIT
Definition:
CbmHit.h:22
CbmRichHit
Definition:
CbmRichHit.h:19
CbmHit::GetDz
Double_t GetDz() const
Definition:
CbmHit.h:71
CbmRichHit::CbmRichHit
CbmRichHit()
Default constructor.
Definition:
CbmRichHit.cxx:14
core
data
rich
CbmRichHit.cxx
Generated on Wed Oct 28 2020 15:11:44 for CbmRoot by
1.8.18