ATLAS Offline Software
Loading...
Searching...
No Matches
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:
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
56MsgStream& InDet::SiWidth::dump( MsgStream& stream) const
57{
58 std::ostringstream out;
59 dump(out);
60 stream<<out.str();
61 return stream;
62}
63std::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
71MsgStream& InDet::operator << (MsgStream& stream, const InDet::SiWidth& prd)
72{
73 return prd.dump(stream);
74}
75
76std::ostream& InDet::operator << (std::ostream& stream, const InDet::SiWidth& prd)
77{
78 return prd.dump(stream);
79}
80
const double width
SiWidth & operator=(const SiWidth &width)
Definition SiWidth.cxx:41
MsgStream & dump(MsgStream &stream) const
dump information about the PRD object.
Definition SiWidth.cxx:56
Amg::Vector2D m_phirzWidth
Definition SiWidth.h:105
Amg::Vector2D m_colrow
Definition SiWidth.h:104
Eigen::Matrix< double, 2, 1 > Vector2D
MsgStream & operator<<(MsgStream &, const GNNTrackFinderTritonTool &)
-event-from-file