ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_ForwardPolarPosition.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
6// SCT_ForwardPolarPosition.cxx
7// Implementation file for class SCT_ForwardPolarPosition
9// (c) ATLAS Detector software
11// Version 1.0a 1/6/2001 Class creator tool
13
15#include <sstream>
16
17namespace InDetDD {
18
19// Implicit constructor:
24
25// Copy constructor:
27
28= default;
29
30// Constructor with parameters:
32 m_r(r),
34{
35 //check if parameters are consistent
36 if (m_r<0) m_r=0;
37}
38
39// Assignment operator:
41{
42 if (this!=&polar) {
43 m_r=polar.m_r;
44 m_theta=polar.m_theta;
45 } else {}
46 return *this;
47}
48
49//Comparison operator
51{
52 return (m_r==polar.m_r && m_theta==polar.m_theta);
53}
54
55//Print method:
57{
58 std::string result{"r = "};
59 result += std::to_string(m_r) + " theta = " + std::to_string(m_theta);
60 return result;
61}
62
63} // namespace InDetDD
2D position in polar coordinates for the polar frame in the SCT endcaps.
double theta() const
theta coordinate of point:
virtual bool operator==(const SCT_ForwardPolarPosition &polar) const
double r() const
r coordinate of point:
SCT_ForwardPolarPosition & operator=(const SCT_ForwardPolarPosition &polar)
Message Stream Member.