ATLAS Offline Software
Loading...
Searching...
No Matches
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
9namespace InDetDD {
12{
13public:
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
45private:
46 const PixelDiodeMatrix *m_cell = nullptr;
48};
49}
50#endif
Class used to describe the segmentation of the pixel and allow for conversion between cell id and pos...
Amg::Vector2D width() const
return the diode width in phi (aka local-x, row) and eta (aka local-y, column) direction
PixelDiodeParametersProxy(const PixelDiodeMatrix *cell)
double xPhiMax() const
return the diode position of the upper diode edge in phi/local-x/row direction.
bool isValid() const
return true if the Proxy is valid
const Amg::Vector2D & position() const
return the center position of the diode if the proxy is valid.
double etaWidth() const
return the diode width in eta (aka local-y, column) direction
double xEtaMax() const
return the diode position of the upper diode edge in eta/local-y/column direction.
double xPhiMin() const
return the diode position of the lower diode edge in phi/local-x/row direction.
double xEtaMin() const
return the diode position of the lower diode edge in eta/local-y/column direction.
Amg::Vector2D & position()
provide access to internal storage for initializing the proxy.
double phiWidth() const
return the diode width in phi (aka local-x, row)
PixelDiodeMatrixPtr & cell_ptr()
provide access to internal storage for initializing the proxy.
Eigen::Matrix< double, 2, 1 > Vector2D
Message Stream Member.