ATLAS Offline Software
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 
10 #include "GaudiKernel/MsgStream.h"
11 #include <ostream>
12 #include <sstream>
13 
14 
15 // Implicit constructor:
17  m_colrow(0.0, 0.0),
18  m_phirzWidth(0.0, 0.0)
19 {}
20 
21 // Copy constructor:
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:
35  m_colrow(colrow),
36  m_phirzWidth(0,0)
37 {}
38 
39 
40 // Assignment operator:
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 
InDet::operator<<
MsgStream & operator<<(MsgStream &, const GNNTrackReaderTool &)
SiWidth.h
InDet::SiWidth::m_colrow
Amg::Vector2D m_colrow
Definition: SiWidth.h:104
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
InDet::SiWidth::m_phirzWidth
Amg::Vector2D m_phirzWidth
Definition: SiWidth.h:105
InDet::SiWidth::operator=
SiWidth & operator=(const SiWidth &width)
Definition: SiWidth.cxx:41
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
InDet::SiWidth
Definition: SiWidth.h:25
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