ATLAS Offline Software
SiDiodesParameters.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // SiDiodesParameters.h
8 // (c) ATLAS Detector software
10 
11 #ifndef INDETREADOUTGEOMETRY_SIDIODESPARAMETERS_H
12 #define INDETREADOUTGEOMETRY_SIDIODESPARAMETERS_H
13 
14 // Data members classes
16 
17 namespace InDetDD {
18 
26 
28  // Public methods:
30  public:
31 
34 
37 
42  const SiLocalPosition &width);
43 
46 
49 
51  // Const methods:
53 
55  const SiLocalPosition& centre() const;
56 
58  const SiLocalPosition& width() const;
59  SiLocalPosition halfWidth() const;
60 
62  double xEtaMin() const;
63  double xEtaMax() const;
64  double xPhiMin() const;
65  double xPhiMax() const;
66  double xDepthMin() const;
67  double xDepthMax() const;
68 
70  // Non-const methods:
72 
73  void centre(const SiLocalPosition &centre);
74 
75  void width(const SiLocalPosition &width);
76 
78  // Private data:
80  private:
83  };
84 
86 // Inline methods:
89 {}
90 
92 {
93  return m_centre;
94 }
95 
97 {
98  return m_width;
99 }
100 
102 {
103  return m_width/2;
104 }
105 
106 inline double SiDiodesParameters::xEtaMin() const
107 {
108  return m_centre.xEta()-m_width.xEta()/2;
109 }
110 
111 inline double SiDiodesParameters::xEtaMax() const
112 {
113  return m_centre.xEta()+m_width.xEta()/2;
114 }
115 
116 inline double SiDiodesParameters::xPhiMin() const
117 {
118  return m_centre.xPhi()-m_width.xPhi()/2;
119 }
120 
121 inline double SiDiodesParameters::xPhiMax() const
122 {
123  return m_centre.xPhi()+m_width.xPhi()/2;
124 }
125 
126 inline double SiDiodesParameters::xDepthMin() const
127 {
128  return m_centre.xDepth()-m_width.xDepth()/2;
129 }
130 
131 inline double SiDiodesParameters::xDepthMax() const
132 {
133  return m_centre.xDepth()+m_width.xDepth()/2;
134 }
135 
136 inline void SiDiodesParameters::centre(const SiLocalPosition &centre)
137 {
139 }
140 
142 {
143  m_width=width;
144 }
145 
146 } // namespace InDetDD
147 
148 #endif // INDETREADOUTGEOMETRY_SIDIODESPARAMETERS_H
InDetDD::SiDiodesParameters::halfWidth
SiLocalPosition halfWidth() const
Definition: SiDiodesParameters.h:101
InDetDD::SiDiodesParameters::SiDiodesParameters
SiDiodesParameters()
Implicit constructor:
Definition: SiDiodesParameters.cxx:19
InDetDD::SiDiodesParameters::xPhiMax
double xPhiMax() const
Definition: SiDiodesParameters.h:121
InDetDD::SiDiodesParameters::m_centre
SiLocalPosition m_centre
position of the diodes centre
Definition: SiDiodesParameters.h:81
InDetDD::SiDiodesParameters::centre
const SiLocalPosition & centre() const
position of the diodes centre:
Definition: SiDiodesParameters.h:91
InDetDD::SiDiodesParameters::SiDiodesParameters
SiDiodesParameters(const SiDiodesParameters &parameters)
Copy constructor:
InDetDD::SiDiodesParameters::xEtaMax
double xEtaMax() const
Definition: SiDiodesParameters.h:111
InDetDD::SiLocalPosition
Definition: SiLocalPosition.h:31
InDetDD::SiLocalPosition::xPhi
double xPhi() const
position along phi direction:
Definition: SiLocalPosition.h:123
InDetDD::SiDiodesParameters::~SiDiodesParameters
~SiDiodesParameters()
Destructor:
Definition: SiDiodesParameters.h:88
InDetDD::SiLocalPosition::xEta
double xEta() const
position along eta direction:
Definition: SiLocalPosition.h:118
InDetDD::SiDiodesParameters::xPhiMin
double xPhiMin() const
Definition: SiDiodesParameters.h:116
SiLocalPosition.h
InDetDD::SiLocalPosition::xDepth
double xDepth() const
position along depth direction:
Definition: SiLocalPosition.h:128
InDetDD::SiDiodesParameters::operator=
SiDiodesParameters & operator=(const SiDiodesParameters &parameters)
Assignment operator:
Definition: SiDiodesParameters.cxx:37
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
InDetDD::SiDiodesParameters::xEtaMin
double xEtaMin() const
boundaries of the diodes:
Definition: SiDiodesParameters.h:106
InDetDD::SiDiodesParameters::xDepthMin
double xDepthMin() const
Definition: SiDiodesParameters.h:126
InDetDD::SiDiodesParameters::width
const SiLocalPosition & width() const
width of the diodes:
Definition: SiDiodesParameters.h:96
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
InDetDD::SiDiodesParameters::xDepthMax
double xDepthMax() const
Definition: SiDiodesParameters.h:131
InDetDD::SiDiodesParameters::m_width
SiLocalPosition m_width
width of the diodes
Definition: SiDiodesParameters.h:82
InDetDD::SiDiodesParameters
Definition: SiDiodesParameters.h:25