CbmRoot
Loading...
Searching...
No Matches
CbmStripHit.cxx
Go to the documentation of this file.
1
/* Copyright (C) 2009-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Florian Uhlig [committer], Andrey Lebedev */
4
10
#include "
CbmStripHit.h
"
11
12
#include <TVector3.h>
// for TVector3
13
14
#include <sstream>
// for operator<<, basic_ostream, stringstream
15
16
using
std::endl;
17
using
std::stringstream;
18
19
20
CbmStripHit::CbmStripHit
() :
CbmStripHit
(-1, 0., 0., 0., 0., 0., 0., -1) {}
21
22
CbmStripHit::CbmStripHit
(int32_t address,
const
TVector3&
pos
,
const
TVector3& err, int32_t refId,
double
time,
23
double
timeError)
24
:
CbmStripHit
(address,
pos
.X(),
pos
.Y(),
pos
.Z(), err.X(), err.Y(), err.Z(), refId, time, timeError)
25
{
26
}
27
28
29
CbmStripHit::CbmStripHit
(int32_t address,
double
u,
double
phi,
double
z,
double
du,
double
dphi,
double
dz,
30
int32_t refId,
double
time,
double
timeError)
31
:
CbmHit
(
kSTRIPHIT
, z, dz, refId, address, time, timeError)
32
, fU(u)
33
, fDu(du)
34
, fPhi(phi)
35
, fDphi(dphi)
36
{
37
}
38
39
CbmStripHit::~CbmStripHit
() {}
40
41
std::string
CbmStripHit::ToString
()
const
42
{
43
stringstream ss;
44
ss <<
"CbmStripHit: address="
<<
GetAddress
() <<
" pos=("
<<
GetU
() <<
","
<<
GetPhi
() <<
","
<<
GetZ
() <<
") err=("
45
<<
GetDu
() <<
","
<<
GetDphi
() <<
","
<<
GetDz
() <<
") refId="
<<
GetRefId
() << endl;
46
return
ss.str();
47
}
48
49
ClassImp
(
CbmStripHit
);
kSTRIPHIT
@ kSTRIPHIT
Definition
CbmHit.h:24
pos
TVector3 pos
Definition
CbmMvdSensorDigiToHitTask.cxx:56
ClassImp
ClassImp(CbmStripHit)
CbmStripHit.h
CbmHit
Definition
CbmHit.h:44
CbmHit::GetDz
double GetDz() const
Definition
CbmHit.h:72
CbmHit::GetAddress
int32_t GetAddress() const
Definition
CbmHit.h:74
CbmHit::GetZ
double GetZ() const
Definition
CbmHit.h:71
CbmHit::GetRefId
int32_t GetRefId() const
Definition
CbmHit.h:73
CbmStripHit
Definition
CbmStripHit.h:26
CbmStripHit::CbmStripHit
CbmStripHit()
Default constructor.
Definition
CbmStripHit.cxx:20
CbmStripHit::GetPhi
double GetPhi() const
Definition
CbmStripHit.h:74
CbmStripHit::GetDu
double GetDu() const
Definition
CbmStripHit.h:75
CbmStripHit::GetDphi
double GetDphi() const
Definition
CbmStripHit.h:76
CbmStripHit::ToString
virtual std::string ToString() const
Inherited from CbmBaseHit.
Definition
CbmStripHit.cxx:41
CbmStripHit::GetU
double GetU() const
Definition
CbmStripHit.h:73
CbmStripHit::~CbmStripHit
virtual ~CbmStripHit()
Destructor.
Definition
CbmStripHit.cxx:39
core
data
CbmStripHit.cxx
Generated on Sun Dec 22 2024 23:04:08 for CbmRoot by
1.12.0