ATLAS Offline Software
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 
8 
9 namespace InDetDD {
12 {
13 public:
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; };
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 
45 private:
46  const PixelDiodeMatrix *m_cell = nullptr;
48 };
49 }
50 #endif
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::PixelDiodeMatrix::phiWidth
double phiWidth() const
Width in phi (x) direction.
Definition: PixelDiodeMatrix.h:204
InDetDD::PixelDiodeParametersProxy::phiWidth
double phiWidth() const
return the diode width in phi (aka local-x, row)
Definition: PixelDiodeParametersProxy.h:27
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
InDetDD::PixelDiodeParametersProxy::PixelDiodeParametersProxy
PixelDiodeParametersProxy(const PixelDiodeMatrix *cell)
Definition: PixelDiodeParametersProxy.h:15
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
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::PixelDiodeMatrix::etaWidth
double etaWidth() const
Width in eta (y) direction.
Definition: PixelDiodeMatrix.h:219
InDetDD::PixelDiodeParametersProxy::PixelDiodeParametersProxy
PixelDiodeParametersProxy()=default
InDetDD::PixelDiodeParametersProxy::m_position
Amg::Vector2D m_position
Definition: PixelDiodeParametersProxy.h:47
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::m_cell
const PixelDiodeMatrix * m_cell
Definition: PixelDiodeParametersProxy.h:46
InDetDD::PixelDiodeParametersProxy::etaWidth
double etaWidth() const
return the diode width in eta (aka local-y, column) direction
Definition: PixelDiodeParametersProxy.h:29
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::position
Amg::Vector2D & position()
provide access to internal storage for initializing the proxy.
Definition: PixelDiodeParametersProxy.h:41
PixelDiodeMatrix.h
InDetDD::PixelDiodeParametersProxy
Helper class to cache a pixel diode position, and provide access to diode parameters.
Definition: PixelDiodeParametersProxy.h:12
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
InDetDD::PixelDiodeParametersProxy::isValid
bool isValid() const
return true if the Proxy is valid
Definition: PixelDiodeParametersProxy.h:18
xAOD::bool
setBGCode setTAP setLVL2ErrorBits bool
Definition: TrigDecision_v1.cxx:60
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::PixelDiodeMatrix
Definition: PixelDiodeMatrix.h:93
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::cell_ptr
PixelDiodeMatrixPtr & cell_ptr()
provide access to internal storage for initializing the proxy.
Definition: PixelDiodeParametersProxy.h:44