ATLAS Offline Software
Loading...
Searching...
No Matches
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
17namespace InDetDD {
18
24
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;
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:
90
92{
93 return m_centre;
94}
95
97{
98 return m_width;
99}
100
102{
103 return m_width/2;
104}
105
106inline double SiDiodesParameters::xEtaMin() const
107{
108 return m_centre.xEta()-m_width.xEta()/2;
109}
110
111inline double SiDiodesParameters::xEtaMax() const
112{
113 return m_centre.xEta()+m_width.xEta()/2;
114}
115
116inline double SiDiodesParameters::xPhiMin() const
117{
118 return m_centre.xPhi()-m_width.xPhi()/2;
119}
120
121inline double SiDiodesParameters::xPhiMax() const
122{
123 return m_centre.xPhi()+m_width.xPhi()/2;
124}
125
126inline double SiDiodesParameters::xDepthMin() const
127{
128 return m_centre.xDepth()-m_width.xDepth()/2;
129}
130
131inline double SiDiodesParameters::xDepthMax() const
132{
133 return m_centre.xDepth()+m_width.xDepth()/2;
134}
135
140
145
146} // namespace InDetDD
147
148#endif // INDETREADOUTGEOMETRY_SIDIODESPARAMETERS_H
SiDiodesParameters()
Implicit constructor:
SiLocalPosition halfWidth() const
const SiLocalPosition & centre() const
position of the diodes centre:
const SiLocalPosition & width() const
width of the diodes:
SiLocalPosition m_centre
position of the diodes centre
double xEtaMin() const
boundaries of the diodes:
SiDiodesParameters(const SiDiodesParameters &parameters)
Copy constructor:
SiDiodesParameters & operator=(const SiDiodesParameters &parameters)
Assignment operator:
SiLocalPosition m_width
width of the diodes
Class to represent a position in the natural frame of a silicon sensor, for Pixel and SCT For Pixel: ...
Message Stream Member.