BmnRoot
Loading...
Searching...
No Matches
CbmTofHit.cxx
Go to the documentation of this file.
1
6
#include "
CbmTofHit.h
"
7
8
#include <sstream>
9
using
std::stringstream;
10
using
std::endl;
11
12
CbmTofHit::CbmTofHit
()
13
:
BmnHit
(),
14
fTime(0.),
15
fChannel(0)
16
{
17
SetFlag
(1);
18
SetType
(
kTOFHIT_o
);
19
}
20
21
CbmTofHit::CbmTofHit
(Int_t address, TVector3 pos, TVector3 dpos, Int_t index, Double_t time, Int_t flag, Int_t channel)
22
:
BmnHit
(address, pos, dpos, index),
23
fTime(time),
24
fChannel(channel)
25
{
26
SetFlag
(flag);
27
SetType
(
kTOFHIT_o
);
28
}
29
30
CbmTofHit::CbmTofHit
(Int_t address, TVector3 pos, TVector3 dpos, Int_t index, Double_t time, Int_t flag)
31
:
BmnHit
(address, pos, dpos, index),
32
fTime(time),
33
fChannel(0)
34
{
35
SetFlag
(flag);
36
SetType
(
kTOFHIT_o
);
37
}
38
39
CbmTofHit::CbmTofHit
(Int_t address, TVector3 pos, TVector3 dpos, Int_t index, Double_t time)
40
:
BmnHit
(address, pos, dpos, index),
41
fTime(time),
42
fChannel(0)
43
{
44
SetFlag
(1);
45
SetType
(
kTOFHIT_o
);
46
}
47
48
CbmTofHit::~CbmTofHit
()
49
{
50
51
}
52
53
string
CbmTofHit::ToString
()
const
54
{
55
stringstream ss;
56
ss <<
"CbmTofHit: detId="
<<
GetDetId
()
57
<<
" pos=("
<< GetX() <<
","
<< GetY() <<
","
<< GetZ()
58
<<
") err=("
<< GetDx() <<
","
<< GetDy() <<
","
<< GetDz()
59
<<
" refId="
<<
GetRefId
()
60
<<
" time="
<<
GetTime
() <<
" flag="
<<
GetFlag
()
61
<<
" channel="
<<
GetCh
() << endl;
62
return
ss.str();
63
}
kTOFHIT_o
@ kTOFHIT_o
Definition
CbmBaseHit.h:24
BmnHit
Definition
BmnHit.h:20
BmnHit::GetFlag
Bool_t GetFlag() const
Definition
BmnHit.h:33
BmnHit::GetDetId
DetectorId GetDetId() const
Definition
BmnHit.h:41
BmnHit::SetFlag
void SetFlag(Bool_t fl)
Definition
BmnHit.h:49
CbmTofHit::SetType
void SetType(HitType_o type)
Definition
CbmTofHit.h:62
CbmTofHit::ToString
virtual string ToString() const
Inherited from CbmBaseHit.
Definition
CbmTofHit.cxx:53
CbmTofHit::GetRefId
Int_t GetRefId() const
Definition
CbmTofHit.h:54
CbmTofHit::CbmTofHit
CbmTofHit()
Default constructor.
Definition
CbmTofHit.cxx:12
CbmTofHit::GetCh
Int_t GetCh() const
Definition
CbmTofHit.h:58
CbmTofHit::GetTime
Double_t GetTime() const
Definition
CbmTofHit.h:57
CbmTofHit::~CbmTofHit
virtual ~CbmTofHit()
Destructor.
Definition
CbmTofHit.cxx:48
CbmTofHit.h
base
cbm
CbmTofHit.cxx
Generated on Fri May 15 2026 10:40:50 for BmnRoot by
1.9.8