ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetRecEvent
InDetPrepRawData
src
SiWidth.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// SiWidth.cxx, (c) ATLAS Detector software
8
9
#include "
InDetPrepRawData/SiWidth.h
"
10
#include "GaudiKernel/MsgStream.h"
11
#include <ostream>
12
#include <sstream>
13
14
15
// Implicit constructor:
16
InDet::SiWidth::SiWidth
() :
17
m_colrow
(0.0, 0.0),
18
m_phirzWidth
(0.0, 0.0)
19
{}
20
21
// Copy constructor:
22
InDet::SiWidth::SiWidth
(
const
InDet::SiWidth
&
width
)
23
24
=
default
;
25
26
// Constructor with parameters:
27
InDet::SiWidth::SiWidth
(
const
Amg::Vector2D
& colrow,
const
Amg::Vector2D
& phiRZ) :
28
m_colrow
( colrow ),
29
m_phirzWidth
(phiRZ)
30
{}
31
32
33
// online constructor:
34
InDet::SiWidth::SiWidth
(
const
Amg::Vector2D
& colrow) :
35
m_colrow
(colrow),
36
m_phirzWidth
(0,0)
37
{}
38
39
40
// Assignment operator:
41
InDet::SiWidth
&
InDet::SiWidth::operator=
(
const
InDet::SiWidth
&
width
)
42
{
43
if
(
this
!=&
width
) {
44
m_colrow
=
width
.m_colrow;
45
m_phirzWidth
=
width
.m_phirzWidth;
46
}
47
return
*
this
;
48
}
49
50
// addition of positions:
51
52
53
// scaling:
54
55
// Dump methods
56
MsgStream&
InDet::SiWidth::dump
( MsgStream& stream)
const
57
{
58
std::ostringstream out;
59
dump
(out);
60
stream<<out.str();
61
return
stream;
62
}
63
std::ostream&
InDet::SiWidth::dump
( std::ostream& stream)
const
64
{
65
stream <<
"SiWidth object"
<<std::endl;
66
stream <<
"Column / Row "
<<
m_colrow
.x() <<
" "
<<
m_colrow
.y() << std::endl;
67
stream <<
"phi RZ width "
<<
m_phirzWidth
.x() <<
" "
<<
m_phirzWidth
.y() << std::endl;
68
return
stream;
69
}
70
71
MsgStream&
InDet::operator <<
(MsgStream& stream,
const
InDet::SiWidth
& prd)
72
{
73
return
prd.
dump
(stream);
74
}
75
76
std::ostream&
InDet::operator <<
(std::ostream& stream,
const
InDet::SiWidth
& prd)
77
{
78
return
prd.
dump
(stream);
79
}
80
SiWidth.h
width
const double width
Definition
TTileTripReader.cxx:24
InDet::SiWidth
Definition
SiWidth.h:25
InDet::SiWidth::operator=
SiWidth & operator=(const SiWidth &width)
Definition
SiWidth.cxx:41
InDet::SiWidth::dump
MsgStream & dump(MsgStream &stream) const
dump information about the PRD object.
Definition
SiWidth.cxx:56
InDet::SiWidth::SiWidth
SiWidth()
Definition
SiWidth.cxx:16
InDet::SiWidth::m_phirzWidth
Amg::Vector2D m_phirzWidth
Definition
SiWidth.h:105
InDet::SiWidth::m_colrow
Amg::Vector2D m_colrow
Definition
SiWidth.h:104
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition
GeoPrimitives.h:48
InDet::operator<<
MsgStream & operator<<(MsgStream &, const GNNTrackFinderTritonTool &)
dump
-event-from-file
Generated on
for ATLAS Offline Software by
1.17.0