CbmRoot
LitScalPixelHit.h
Go to the documentation of this file.
1
8
#ifndef LITSCALPIXELHIT_H_
9
#define LITSCALPIXELHIT_H_
10
11
#include "
LitTypes.h
"
12
13
#include <sstream>
14
#include <string>
15
using
std::ostream;
16
using
std::string;
17
using
std::stringstream;
18
19
namespace
lit
{
20
namespace
parallel {
21
31
class
LitScalPixelHit
{
32
public
:
36
LitScalPixelHit
()
37
:
X
(0.)
38
,
Y
(0.)
39
,
Dx
(0.)
40
,
Dy
(0.)
41
,
Dxy
(0.)
42
,
stationId
(0)
43
,
refId
(0)
44
,
Z
(0.) {}
45
49
virtual
~LitScalPixelHit
() {}
50
55
string
ToString
()
const
{
56
stringstream ss;
57
ss <<
"LitScalPixelHit: X="
<<
X
<<
" Y="
<<
Y
<<
" Dx="
<<
Dx
58
<<
" Dy="
<<
Dy
<<
" Dxy="
<<
Dxy
<<
" planeId="
<< (int)
stationId
59
<<
" refId="
<<
refId
<<
" Z="
<<
Z
<<
"\n"
;
60
return
ss.str();
61
}
62
67
friend
ostream&
operator<<
(ostream& strm,
const
LitScalPixelHit
& hit) {
68
strm << hit.
ToString
();
69
return
strm;
70
}
71
72
public
:
73
fscal
X
,
Y
;
// X and Y position measurements [cm]
74
fscal
Dx
,
Dy
;
// X and Y position error [cm]
75
fscal
Dxy
;
// Covariance between X and Y [cm]
76
unsigned
char
stationId
;
// Detector station ID
77
unsigned
short
refId
;
// Reference id to smth
78
fscal
Z
;
// Z position [cm]
79
};
80
81
}
// namespace parallel
82
}
// namespace lit
83
#endif
/* LITSCALPIXELHIT_H_ */
fscal
float fscal
Definition:
L1/vectors/P4_F32vec4.h:250
lit::parallel::LitScalPixelHit
Base class for scalar pixel hits.
Definition:
LitScalPixelHit.h:31
lit::parallel::LitScalPixelHit::~LitScalPixelHit
virtual ~LitScalPixelHit()
Destructor.
Definition:
LitScalPixelHit.h:49
lit::parallel::LitScalPixelHit::Dxy
fscal Dxy
Definition:
LitScalPixelHit.h:75
lit::parallel::LitScalPixelHit::Z
fscal Z
Definition:
LitScalPixelHit.h:78
LitTypes.h
Header files for SSE operations.
lit::parallel::LitScalPixelHit::Dx
fscal Dx
Definition:
LitScalPixelHit.h:74
lit::parallel::LitScalPixelHit::Y
fscal Y
Definition:
LitScalPixelHit.h:73
lit::parallel::LitScalPixelHit::Dy
fscal Dy
Definition:
LitScalPixelHit.h:74
lit::parallel::LitScalPixelHit::X
fscal X
Definition:
LitScalPixelHit.h:73
lit::parallel::LitScalPixelHit::LitScalPixelHit
LitScalPixelHit()
Constructor.
Definition:
LitScalPixelHit.h:36
lit::parallel::LitScalPixelHit::stationId
unsigned char stationId
Definition:
LitScalPixelHit.h:76
lit::parallel::LitScalPixelHit::refId
unsigned short refId
Definition:
LitScalPixelHit.h:77
lit::parallel::LitScalPixelHit::operator<<
friend ostream & operator<<(ostream &strm, const LitScalPixelHit &hit)
Operator << for convenient output to ostream.
Definition:
LitScalPixelHit.h:67
lit::parallel::LitScalPixelHit::ToString
string ToString() const
Returns string representation of the class.
Definition:
LitScalPixelHit.h:55
lit
Definition:
LitTrackFinderNNVecElectron.h:19
reco
littrack
parallel
LitScalPixelHit.h
Generated on Wed Oct 28 2020 15:11:49 for CbmRoot by
1.8.18