|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef READOUTGEOMETRYBASE_PIXELDIODEMAP_H
12 #define READOUTGEOMETRYBASE_PIXELDIODEMAP_H
29 class PixelDiodeMatrix;
48 PixelDiodeMap(std::shared_ptr<const PixelDiodeMatrix> diodeMatrix);
76 std::vector<SiCellId> &neighbours)
const;
121 const double x2,
const double dx2) ;
125 std::vector<SiCellId> &neighbours)
const;
199 return m_matrix->createDebugStringRepr();
204 #endif // READOUTGEOMETRYBASE_PIXELDIODEMAP_H
PixelDiodeMap(const PixelDiodeMap &map)
Copy constructor:
double intersectionLength(const SiCellId &diode1, const SiCellId &diode2) const
Compute the intersection length of two diodes: return: the intersection length when the two diodes ar...
std::string debugStringRepr() const
Debug representation.
Eigen::Matrix< double, 2, 1 > Vector2D
SiDiodesParameters parameters(const SiCellId &diodeId) const
Get diodes parameters (position and size):
std::shared_ptr< const PixelDiodeMatrix > m_matrix
diode matrix
bool isValid() const
Test if its in a valid state.
static double intersectionLength1D(const double x1, const double dx1, const double x2, const double dx2)
Compute the intersection length along one direction: return 0 if no intersection x1,...
bool m_generalLayout
Flag set to allow for dealing wth more general layouts.
int phiIndex() const
Get phi index. Equivalent to strip().
~PixelDiodeMap()
Destructor.
int etaIndex() const
Get eta index.
double rightColumn() const
void neighboursOfCellGeneral(const SiCellId &cellId, std::vector< SiCellId > &neighbours) const
Slower method.
PixelDiodeMap(std::shared_ptr< const PixelDiodeMatrix > diodeMatrix)
Constructor from Diode matrix description.
double leftColumn() const
void neighboursOfCell(const SiCellId &cellId, std::vector< SiCellId > &neighbours) const
Get the neighbouring PixelDiodes of a given PixelDiode: Cell for which the neighbours must be found L...
PixelDiodeMap & operator=(const PixelDiodeMap &map)
Assignment operator.
double intersectionLengthGeneral(const SiCellId &diode1, const SiCellId &diode2) const
Slower method.
void setGeneralLayout()
Set general layout flag.
SiCellId cellIdOfPosition(const Amg::Vector2D &localPosition) const
cell id for a given local position
SiCellId cellIdInRange(const SiCellId &cellId) const
Check if cellId is within range.