CbmRoot
CbmLitPixelHit.h
Go to the documentation of this file.
1
8
#ifndef CBMLITPIXELHIT_H_
9
#define CBMLITPIXELHIT_H_
10
11
#include "
data/CbmLitHit.h
"
12
13
#include <sstream>
14
#include <string>
15
22
class
CbmLitPixelHit
:
public
CbmLitHit
{
23
public
:
27
CbmLitPixelHit
() :
fX
(0.),
fY
(0.),
fDx
(0.),
fDy
(0.),
fDxy
(0.) {
28
SetHitType
(
kLITPIXELHIT
);
29
}
30
34
virtual
~CbmLitPixelHit
() {};
35
36
/* Getters */
37
litfloat
GetX
()
const
{
return
fX
; }
38
litfloat
GetY
()
const
{
return
fY
; }
39
litfloat
GetDx
()
const
{
return
fDx
; }
40
litfloat
GetDy
()
const
{
return
fDy
; }
41
litfloat
GetDxy
()
const
{
return
fDxy
; }
42
43
/* Setters */
44
void
SetX
(
litfloat
x
) {
fX
=
x
; }
45
void
SetY
(
litfloat
y
) {
fY
=
y
; }
46
void
SetDx
(
litfloat
dx) {
fDx
= dx; }
47
void
SetDy
(
litfloat
dy) {
fDy
= dy; }
48
void
SetDxy
(
litfloat
dxy) {
fDxy
= dxy; }
49
54
virtual
std::string
ToString
()
const
{
55
std::stringstream ss;
56
ss <<
"PixelHit: pos=("
<<
GetX
() <<
","
<<
GetY
() <<
","
<<
GetZ
()
57
<<
") err=("
<<
GetDx
() <<
","
<<
GetDy
() <<
","
<<
GetDz
() <<
") "
58
<<
" dxy="
<<
GetDxy
() <<
" refId="
<<
GetRefId
()
59
<<
" hitType="
<<
GetType
() <<
" detId="
<<
GetSystem
()
60
<<
" station="
<<
GetStation
() << std::endl;
61
return
ss.str();
62
}
63
64
private
:
65
litfloat
fX
,
fY
;
// X and Y hit positions in [cm].
66
litfloat
fDx
,
fDy
;
// X and Y hit position errors in [cm].
67
litfloat
fDxy
;
// XY covariance.
68
};
69
70
#endif
/*CBMLITPIXELHIT_H_*/
litfloat
double litfloat
Definition:
CbmLitFloat.h:15
CbmLitPixelHit::GetDy
litfloat GetDy() const
Definition:
CbmLitPixelHit.h:40
CbmLitPixelHit::SetY
void SetY(litfloat y)
Definition:
CbmLitPixelHit.h:45
CbmLitHit::GetZ
litfloat GetZ() const
Definition:
CbmLitHit.h:48
CbmLitPixelHit::fY
litfloat fY
Definition:
CbmLitPixelHit.h:65
CbmLitHit::GetDz
litfloat GetDz() const
Definition:
CbmLitHit.h:49
CbmLitHit::GetRefId
Int_t GetRefId() const
Definition:
CbmLitHit.h:46
CbmLitPixelHit::fDy
litfloat fDy
Definition:
CbmLitPixelHit.h:66
CbmLitPixelHit::GetY
litfloat GetY() const
Definition:
CbmLitPixelHit.h:38
CbmLitHit
Base data class for hits.
Definition:
CbmLitHit.h:26
CbmLitPixelHit::fDxy
litfloat fDxy
Definition:
CbmLitPixelHit.h:67
CbmLitPixelHit
Base data class for pixel hits.
Definition:
CbmLitPixelHit.h:22
kLITPIXELHIT
@ kLITPIXELHIT
Definition:
CbmLitEnums.h:16
CbmLitHit::SetHitType
void SetHitType(LitHitType hitType)
Definition:
CbmLitHit.h:61
CbmLitHit::GetStation
Int_t GetStation() const
Definition:
CbmLitHit.h:55
CbmLitPixelHit::GetDxy
litfloat GetDxy() const
Definition:
CbmLitPixelHit.h:41
CbmLitPixelHit::~CbmLitPixelHit
virtual ~CbmLitPixelHit()
Destructor.
Definition:
CbmLitPixelHit.h:34
CbmLitPixelHit::SetDx
void SetDx(litfloat dx)
Definition:
CbmLitPixelHit.h:46
CbmLitPixelHit::GetX
litfloat GetX() const
Definition:
CbmLitPixelHit.h:37
CbmLitPixelHit::CbmLitPixelHit
CbmLitPixelHit()
Constructor.
Definition:
CbmLitPixelHit.h:27
x
Double_t x
Definition:
CbmMvdSensorDigiToHitTask.cxx:68
CbmLitPixelHit::SetDy
void SetDy(litfloat dy)
Definition:
CbmLitPixelHit.h:47
CbmLitPixelHit::ToString
virtual std::string ToString() const
Return string representation of class.
Definition:
CbmLitPixelHit.h:54
CbmLitPixelHit::SetDxy
void SetDxy(litfloat dxy)
Definition:
CbmLitPixelHit.h:48
y
Double_t y
Definition:
CbmMvdSensorDigiToHitTask.cxx:68
CbmLitPixelHit::fDx
litfloat fDx
Definition:
CbmLitPixelHit.h:66
CbmLitPixelHit::fX
litfloat fX
Definition:
CbmLitPixelHit.h:65
CbmLitPixelHit::SetX
void SetX(litfloat x)
Definition:
CbmLitPixelHit.h:44
CbmLitHit::GetSystem
LitSystemId GetSystem() const
Definition:
CbmLitHit.h:52
CbmLitHit::GetType
LitHitType GetType() const
Definition:
CbmLitHit.h:47
CbmLitPixelHit::GetDx
litfloat GetDx() const
Definition:
CbmLitPixelHit.h:39
CbmLitHit.h
Base data class for hits.
reco
littrack
std
data
CbmLitPixelHit.h
Generated on Wed Oct 28 2020 15:11:39 for CbmRoot by
1.8.18