CbmRoot
Loading...
Searching...
No Matches
LitScalStripHit.h
Go to the documentation of this file.
1
/* Copyright (C) 2009-2013 GSI/JINR-LIT, Darmstadt/Dubna
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Andrey Lebedev [committer] */
4
12
#ifndef LITSCALSTRIPHIT_H_
13
#define LITSCALSTRIPHIT_H_
14
15
#include <sstream>
16
#include <string>
17
using
std::ostream;
18
using
std::string;
19
using
std::stringstream;
20
30
class
LitScalStripHit
{
31
public
:
35
LitScalStripHit
() :
phiCos
(0.),
phiSin
(0.),
U
(0.),
Du
(0.),
stationId
(0),
refId
(0),
Z
(0.) {}
36
40
virtual
~LitScalStripHit
() {}
41
46
string
ToString
()
const
47
{
48
stringstream ss;
49
ss <<
"LitScalStripHit: phiCos="
<<
phiCos
<<
" phiSin="
<<
phiSin
<<
" U="
<<
U
<<
" Du="
<<
Du
50
<<
" planeId="
<< (int)
stationId
<<
" refId="
<<
refId
<<
" Z="
<<
Z
<<
"\n"
;
51
return
ss.str();
52
}
53
58
friend
ostream&
operator<<
(ostream& strm,
const
LitScalStripHit
& hit)
59
{
60
strm << hit.
ToString
();
61
return
strm;
62
}
63
64
public
:
65
fscal
phiCos
;
// Cosine of strip rotation angle
66
fscal
phiSin
;
// Sine of strip rotation angle
67
fscal
U
;
// U measurement [cm]
68
fscal
Du
;
// U measurement error [cm]
69
unsigned
char
stationId
;
// Detector station ID
70
unsigned
short
refId
;
// Reference id to smth
71
fscal
Z
;
// Z position [cm]
72
};
73
74
#endif
/* LITSCALSTRIPHIT_H_ */
LitScalStripHit
Base class for scalar strip hits.
Definition
LitScalStripHit.h:30
LitScalStripHit::Du
fscal Du
Definition
LitScalStripHit.h:68
LitScalStripHit::phiSin
fscal phiSin
Definition
LitScalStripHit.h:66
LitScalStripHit::stationId
unsigned char stationId
Definition
LitScalStripHit.h:69
LitScalStripHit::Z
fscal Z
Definition
LitScalStripHit.h:71
LitScalStripHit::U
fscal U
Definition
LitScalStripHit.h:67
LitScalStripHit::LitScalStripHit
LitScalStripHit()
Constructor.
Definition
LitScalStripHit.h:35
LitScalStripHit::refId
unsigned short refId
Definition
LitScalStripHit.h:70
LitScalStripHit::phiCos
fscal phiCos
Definition
LitScalStripHit.h:65
LitScalStripHit::operator<<
friend ostream & operator<<(ostream &strm, const LitScalStripHit &hit)
Operator << for convenient output to ostream.
Definition
LitScalStripHit.h:58
LitScalStripHit::ToString
string ToString() const
Returns string representation of the class.
Definition
LitScalStripHit.h:46
LitScalStripHit::~LitScalStripHit
virtual ~LitScalStripHit()
Destructor.
Definition
LitScalStripHit.h:40
reco
littrack
parallel
LitScalStripHit.h
Generated on Sun Dec 22 2024 23:04:17 for CbmRoot by
1.12.0