BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
CbmTofHit.cxx
Go to the documentation of this file.
1
/**
2
* \file CbmTofHit.cxx
3
* \author E. Cordier
4
**/
5
6
#include "
CbmTofHit.h
"
7
8
#include <sstream>
9
using
std::endl;
10
using
std::stringstream;
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
string
CbmTofHit::ToString
()
const
51
{
52
stringstream ss;
53
ss <<
"CbmTofHit: detId="
<<
GetDetId
() <<
" pos=("
<< GetX() <<
","
<< GetY() <<
","
<< GetZ() <<
") err=("
54
<< GetDx() <<
","
<< GetDy() <<
","
<< GetDz() <<
" refId="
<<
GetRefId
() <<
" time="
<<
GetTime
()
55
<<
" flag="
<<
GetFlag
() <<
" channel="
<<
GetCh
() << endl;
56
return
ss.str();
57
}
Int_t
int Int_t
Double_t
double Double_t
kTOFHIT_o
@ kTOFHIT_o
Definition
CbmBaseHit.h:25
CbmTofHit.h
BmnHit::GetFlag
Bool_t GetFlag() const
Definition
BmnHit.h:31
BmnHit::GetDetId
DetectorId GetDetId() const
Definition
BmnHit.h:34
BmnHit::BmnHit
BmnHit()
Default constructor.
Definition
BmnHit.cxx:12
BmnHit::SetFlag
void SetFlag(Bool_t fl)
Definition
BmnHit.h:48
CbmTofHit::fChannel
Int_t fChannel
Channel identifier.
Definition
CbmTofHit.h:67
CbmTofHit::fTime
Double32_t fTime
Time since event start [ns].
Definition
CbmTofHit.h:66
CbmTofHit::SetType
void SetType(HitType_o type)
Definition
CbmTofHit.h:62
CbmTofHit::ToString
virtual string ToString() const
Inherited from CbmBaseHit.
Definition
CbmTofHit.cxx:50
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
Accessors.
Definition
CbmTofHit.h:57
CbmTofHit::~CbmTofHit
virtual ~CbmTofHit()
Destructor.
Definition
CbmTofHit.cxx:48
TVector3
base
cbm
CbmTofHit.cxx
Generated on
for BmnRoot by
1.17.0