ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
ReadoutGeometryBase
ReadoutGeometryBase
PixelDiodeParametersProxy.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef INDETDD_PIXELDIODEPARAMETERSPROXY_H
5
#define INDETDD_PIXELDIODEPARAMETERSPROXY_H
6
7
#include "
ReadoutGeometryBase/PixelDiodeMatrix.h
"
8
9
namespace
InDetDD
{
11
class
PixelDiodeParametersProxy
12
{
13
public
:
14
PixelDiodeParametersProxy
() =
default
;
15
PixelDiodeParametersProxy
(
const
PixelDiodeMatrix
*cell) :
m_cell
(cell) {}
16
18
bool
isValid
()
const
{
return
m_cell
!=
nullptr
; }
19
20
operator
bool()
const
{
return
isValid
(); }
21
23
const
Amg::Vector2D
&
position
()
const
{
return
m_position
; };
25
Amg::Vector2D
width
()
const
{
return
Amg::Vector2D
{
phiWidth
(),
etaWidth
()}; }
27
double
phiWidth
()
const
{
return
m_cell
->phiWidth(); }
29
double
etaWidth
()
const
{
return
m_cell
->etaWidth(); }
30
32
double
xPhiMin
()
const
{
return
m_position
[0]-
phiWidth
()/2; }
34
double
xPhiMax
()
const
{
return
m_position
[0]+
phiWidth
()/2; }
36
double
xEtaMin
()
const
{
return
m_position
[1]-
etaWidth
()/2; }
38
double
xEtaMax
()
const
{
return
m_position
[1]+
etaWidth
()/2; }
39
41
Amg::Vector2D
&
position
() {
return
m_position
; };
42
using
PixelDiodeMatrixPtr
=
const
PixelDiodeMatrix
*;
44
PixelDiodeMatrixPtr
&
cell_ptr
() {
return
m_cell
; }
45
private
:
46
const
PixelDiodeMatrix
*
m_cell
=
nullptr
;
47
Amg::Vector2D
m_position
;
48
};
49
}
50
#endif
PixelDiodeMatrix.h
InDetDD::PixelDiodeMatrix
Class used to describe the segmentation of the pixel and allow for conversion between cell id and pos...
Definition
PixelDiodeMatrix.h:93
InDetDD::PixelDiodeParametersProxy::PixelDiodeMatrixPtr
const PixelDiodeMatrix * PixelDiodeMatrixPtr
Definition
PixelDiodeParametersProxy.h:42
InDetDD::PixelDiodeParametersProxy::width
Amg::Vector2D width() const
return the diode width in phi (aka local-x, row) and eta (aka local-y, column) direction
Definition
PixelDiodeParametersProxy.h:25
InDetDD::PixelDiodeParametersProxy::m_position
Amg::Vector2D m_position
Definition
PixelDiodeParametersProxy.h:47
InDetDD::PixelDiodeParametersProxy::PixelDiodeParametersProxy
PixelDiodeParametersProxy(const PixelDiodeMatrix *cell)
Definition
PixelDiodeParametersProxy.h:15
InDetDD::PixelDiodeParametersProxy::xPhiMax
double xPhiMax() const
return the diode position of the upper diode edge in phi/local-x/row direction.
Definition
PixelDiodeParametersProxy.h:34
InDetDD::PixelDiodeParametersProxy::isValid
bool isValid() const
return true if the Proxy is valid
Definition
PixelDiodeParametersProxy.h:18
InDetDD::PixelDiodeParametersProxy::position
const Amg::Vector2D & position() const
return the center position of the diode if the proxy is valid.
Definition
PixelDiodeParametersProxy.h:23
InDetDD::PixelDiodeParametersProxy::etaWidth
double etaWidth() const
return the diode width in eta (aka local-y, column) direction
Definition
PixelDiodeParametersProxy.h:29
InDetDD::PixelDiodeParametersProxy::xEtaMax
double xEtaMax() const
return the diode position of the upper diode edge in eta/local-y/column direction.
Definition
PixelDiodeParametersProxy.h:38
InDetDD::PixelDiodeParametersProxy::xPhiMin
double xPhiMin() const
return the diode position of the lower diode edge in phi/local-x/row direction.
Definition
PixelDiodeParametersProxy.h:32
InDetDD::PixelDiodeParametersProxy::xEtaMin
double xEtaMin() const
return the diode position of the lower diode edge in eta/local-y/column direction.
Definition
PixelDiodeParametersProxy.h:36
InDetDD::PixelDiodeParametersProxy::position
Amg::Vector2D & position()
provide access to internal storage for initializing the proxy.
Definition
PixelDiodeParametersProxy.h:41
InDetDD::PixelDiodeParametersProxy::PixelDiodeParametersProxy
PixelDiodeParametersProxy()=default
InDetDD::PixelDiodeParametersProxy::phiWidth
double phiWidth() const
return the diode width in phi (aka local-x, row)
Definition
PixelDiodeParametersProxy.h:27
InDetDD::PixelDiodeParametersProxy::cell_ptr
PixelDiodeMatrixPtr & cell_ptr()
provide access to internal storage for initializing the proxy.
Definition
PixelDiodeParametersProxy.h:44
InDetDD::PixelDiodeParametersProxy::m_cell
const PixelDiodeMatrix * m_cell
Definition
PixelDiodeParametersProxy.h:46
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition
GeoPrimitives.h:48
InDetDD
Message Stream Member.
Definition
FakeTrackBuilder.h:8
Generated on
for ATLAS Offline Software by
1.17.0