ATLAS Offline Software
Loading...
Searching...
No Matches
InDetDD::HGTD_ModuleDesign Class Reference

Class used to describe the design of a module (diode segmentation and readout scheme) More...

#include <HGTD_ModuleDesign.h>

Inheritance diagram for InDetDD::HGTD_ModuleDesign:
Collaboration diagram for InDetDD::HGTD_ModuleDesign:

Public Types

enum  Axis { xAxis =0 , yAxis , zAxis }

Public Member Functions

 HGTD_ModuleDesign (double thickness, const int circuitsPerColumn, const int circuitsPerRow, const int cellColumnsPerCircuit, const int cellRowsPerCircuit, const int diodeColumnsPerCircuit, const int diodeRowsPerCircuit, std::shared_ptr< const PixelDiodeMatrix > matrix, InDetDD::CarrierType carrierType, int readoutSide, DetectorDesign::Axis yDirection=InDetDD::DetectorDesign::xAxis, DetectorDesign::Axis depthDirection=InDetDD::DetectorDesign::zAxis)
 Constructor.
virtual ~HGTD_ModuleDesign ()
virtual void distanceToDetectorEdge (const SiLocalPosition &localPosition, double &etaDist, double &phiDist) const
 Returns distance to nearest detector active edge +ve = inside -ve = outside.
double sensorLeftColumn () const
 Global sensor size:
double sensorRightColumn () const
double sensorLeftRow () const
double sensorRightRow () const
int numberOfDiodes () const
 Total number of diodes:
int numberOfCircuits () const
 Total number of circuits:
int columnsPerCircuit () const
 Number of cell columns per circuit:
int rowsPerCircuit () const
 Number of cell rows per circuit:
int columns () const
 Number of cell columns per module:
int rows () const
 Number of cell rows per module:
virtual double length () const
 Method to calculate length of a module.
virtual double width () const
 Method to calculate average width of a module.
virtual double minWidth () const
 Method to calculate minimum width of a module.
virtual double maxWidth () const
 Method to calculate maximum width of a module.
virtual double phiPitch () const
 Pitch in phi direction.
virtual double phiPitch (const SiLocalPosition &localPosition) const
 Pitch in phi direction.
virtual double etaPitch () const
 Pitch in eta direction.
double widthFromColumnRange (const int colMin, const int colMax) const
 Method to calculate eta width from a column range.
double widthFromRowRange (const int rowMin, const int rowMax) const
 Method to calculate phi width from a row range.
virtual bool swapHitPhiReadoutDirection () const
 Return true if hit local direction is the same as readout direction.
virtual bool swapHitEtaReadoutDirection () const
virtual const Trk::SurfaceBoundsbounds () const
 Element boundary.
virtual SiDiodesParameters parameters (const SiCellId &cellId) const
 readout or diode id -> position, size
virtual SiLocalPosition localPositionOfCell (const SiCellId &cellId) const
 readout or diode id -> position.
virtual int numberOfConnectedCells (const SiReadoutCellId &readoutId) const
 readout id -> id of connected diodes
virtual SiCellId connectedCell (const SiReadoutCellId &readoutId, int number) const
 readout id -> id of connected diodes.
virtual SiReadoutCellId readoutIdOfCell (const SiCellId &cellId) const
 diode id -> readout id
virtual SiReadoutCellId readoutIdOfPosition (const SiLocalPosition &localPos) const
 position -> id
virtual SiCellId cellIdOfPosition (const SiLocalPosition &localPos) const
 position -> id
virtual void neighboursOfCell (const SiCellId &cellId, std::vector< SiCellId > &neighbours) const
 Get the neighbouring diodes of a given diode: Cell for which the neighbours must be found List of cells which are neighbours of the given one.
double intersectionLength (const SiCellId &diode1, const SiCellId &diode2) const
 Compute the intersection length of two diodes: return: the intersection length when the two diodes are projected on one of the two axis, or 0 in case of no intersection or problem input: the two diodes for which the intersection length is computed.
virtual SiCellId cellIdInRange (const SiCellId &cellId) const
 Check if cell is in range.
void addMultipleRowConnection (const int lowerRow, const std::vector< int > &connections)
 Add a new multiple connection for rows: lower diode row for which the connection scheme is given vector containing, for each diode, the readout cell row number to which the corresponding diode is connected.
virtual Amg::Vector3D sensorCenter () const
 Return the centre of a sensor in the local reference frame.
virtual SiIntersect inDetector (const SiLocalPosition &localPosition, double phiTol, double etaTol) const
 Test if point is in the active part of the detector with specified tolerances.
void setSymmetry (bool phiSymmetric, bool etaSymmetric, bool depthSymmetric)
 Override default symmetries to prevent swapping of axes.
Axis etaAxis () const
 local axis corresponding to eta direction:
Axis phiAxis () const
 local axis corresponding to phi direction:
Axis depthAxis () const
 local axis corresponding to depth direction:
double thickness () const
 Method which returns thickness of the silicon wafer.
InDetDD::CarrierType carrierType () const
 Return carrier type (ie electrons or holes)
bool phiSymmetric () const
bool etaSymmetric () const
bool depthSymmetric () const
int readoutSide () const
 ReadoutSide.
virtual DetectorShape shape () const
 Shape of element.
virtual DetectorType type () const
 Type of element.
virtual const Amg::Transform3D moduleShift () const

Private Member Functions

 HGTD_ModuleDesign ()
 HGTD_ModuleDesign (const HGTD_ModuleDesign &design)
HGTD_ModuleDesignoperator= (const HGTD_ModuleDesign &design)

Private Attributes

PixelDiodeMap m_diodeMap
PixelReadoutScheme m_readoutScheme
Trk::RectangleBounds m_bounds
Axis m_etaAxis
Axis m_phiAxis
Axis m_depthAxis
double m_thickness
InDetDD::CarrierType m_carrierType
bool m_phiSymmetric
bool m_etaSymmetric
bool m_depthSymmetric
bool m_readoutSidePosDepth

Detailed Description

Class used to describe the design of a module (diode segmentation and readout scheme)

  • to get the PixelReadoutCell connected to a PixelDiode
  • to get the list of PixelDiodes connected to a PixelReadoutCell

Definition at line 43 of file HGTD_ModuleDesign.h.

Member Enumeration Documentation

◆ Axis

Enumerator
xAxis 
yAxis 
zAxis 

Definition at line 59 of file DetectorDesign.h.

Constructor & Destructor Documentation

◆ HGTD_ModuleDesign() [1/3]

InDetDD::HGTD_ModuleDesign::HGTD_ModuleDesign ( double thickness,
const int circuitsPerColumn,
const int circuitsPerRow,
const int cellColumnsPerCircuit,
const int cellRowsPerCircuit,
const int diodeColumnsPerCircuit,
const int diodeRowsPerCircuit,
std::shared_ptr< const PixelDiodeMatrix > matrix,
InDetDD::CarrierType carrierType,
int readoutSide,
DetectorDesign::Axis yDirection = InDetDD::DetectorDesign::xAxis,
DetectorDesign::Axis depthDirection = InDetDD::DetectorDesign::zAxis )

Constructor.

Parameters
thicknessThickness of sensor
circuitsPerColumnNumber of circuits in one circuit column
circuitsPerRowNumber of circuits in one circuit row
cellColumnsPerCircuitNumber of cell columns per circuit
cellRowsPerCircuitNumber of cell rows per circuit
diodeColumnsPerCircuitNumber of diode columns connected to one circuit
diodeRowsPerCircuitNumber of diode rows connected to one circuit
matrixPixelDiodeMatrix, describing segmentation and conversion between cell id and position
carrierTypeCarrier type, either holes or electrons
readoutSideReadout side, +ve = positive Depth Side, -ve = negative depth side

Definition at line 13 of file HGTD_ModuleDesign.cxx.

24 :
26 false, false, true, // phi,eta,depth axes symmetric
29 yDirection,
30 depthDirection),
31 m_diodeMap(std::move(matrix)),
32 m_readoutScheme(circuitsPerColumn,circuitsPerRow,
33 cellColumnsPerCircuit,cellRowsPerCircuit,
34 diodeColumnsPerCircuit,diodeRowsPerCircuit)
35{
36 m_bounds = Trk::RectangleBounds(0.5*HGTD_ModuleDesign::width(), 0.5*HGTD_ModuleDesign::length());
37}
double thickness() const
Method which returns thickness of the silicon wafer.
InDetDD::CarrierType carrierType() const
Return carrier type (ie electrons or holes)
int readoutSide() const
ReadoutSide.
virtual double width() const
Method to calculate average width of a module.
PixelReadoutScheme m_readoutScheme
Trk::RectangleBounds m_bounds
virtual double length() const
Method to calculate length of a module.

◆ ~HGTD_ModuleDesign()

InDetDD::HGTD_ModuleDesign::~HGTD_ModuleDesign ( )
virtual

Definition at line 40 of file HGTD_ModuleDesign.cxx.

40{}

◆ HGTD_ModuleDesign() [2/3]

InDetDD::HGTD_ModuleDesign::HGTD_ModuleDesign ( )
private

◆ HGTD_ModuleDesign() [3/3]

InDetDD::HGTD_ModuleDesign::HGTD_ModuleDesign ( const HGTD_ModuleDesign & design)
private

Member Function Documentation

◆ addMultipleRowConnection()

void InDetDD::HGTD_ModuleDesign::addMultipleRowConnection ( const int lowerRow,
const std::vector< int > & connections )
inline

Add a new multiple connection for rows: lower diode row for which the connection scheme is given vector containing, for each diode, the readout cell row number to which the corresponding diode is connected.

Definition at line 214 of file HGTD_ModuleDesign.h.

216{
217 m_readoutScheme.addMultipleRowConnection(lowerRow,connections);
218}

◆ bounds()

const Trk::SurfaceBounds & InDetDD::HGTD_ModuleDesign::bounds ( ) const
virtual

Element boundary.

Implements InDetDD::DetectorDesign.

Definition at line 135 of file HGTD_ModuleDesign.cxx.

136{
137 return m_bounds;
138}

◆ carrierType()

InDetDD::CarrierType InDetDD::DetectorDesign::carrierType ( ) const
inlineinherited

Return carrier type (ie electrons or holes)

Definition at line 275 of file DetectorDesign.h.

275 {
276 return m_carrierType;
277}
InDetDD::CarrierType m_carrierType

◆ cellIdInRange()

SiCellId InDetDD::HGTD_ModuleDesign::cellIdInRange ( const SiCellId & cellId) const
virtual

Check if cell is in range.

Returns the original cellId if it is in range, otherwise it returns an invalid id.

Implements InDetDD::DetectorDesign.

Definition at line 179 of file HGTD_ModuleDesign.cxx.

180{
181 return m_diodeMap.cellIdInRange(cellId);
182}

◆ cellIdOfPosition()

SiCellId InDetDD::HGTD_ModuleDesign::cellIdOfPosition ( const SiLocalPosition & localPos) const
virtual

position -> id

Implements InDetDD::DetectorDesign.

Definition at line 173 of file HGTD_ModuleDesign.cxx.

174{
175 return m_diodeMap.cellIdOfPosition(localPosition);
176}

◆ columns()

int InDetDD::HGTD_ModuleDesign::columns ( ) const
inline

Number of cell columns per module:

Definition at line 260 of file HGTD_ModuleDesign.h.

261{
262 return m_readoutScheme.columns();
263}

◆ columnsPerCircuit()

int InDetDD::HGTD_ModuleDesign::columnsPerCircuit ( ) const
inline

Number of cell columns per circuit:

Definition at line 250 of file HGTD_ModuleDesign.h.

251{
252 return m_readoutScheme.columnsPerCircuit();
253}

◆ connectedCell()

SiCellId InDetDD::HGTD_ModuleDesign::connectedCell ( const SiReadoutCellId & readoutId,
int number ) const
virtual

readout id -> id of connected diodes.

parameter number = 0 will refer to the primary diode and in general the cell number will be the same. NB. SiCellId cellId = connectedCell(readoutId, 0) will in general be equivalent to SiCellId cellId = readoutId

Implements InDetDD::DetectorDesign.

Definition at line 156 of file HGTD_ModuleDesign.cxx.

157{
158 return m_readoutScheme.connectedCell(readoutId, number);
159}
std::string number(const double &d, const std::string &s)
Definition utils.cxx:186

◆ depthAxis()

DetectorDesign::Axis InDetDD::DetectorDesign::depthAxis ( ) const
inlineinherited

local axis corresponding to depth direction:

Definition at line 267 of file DetectorDesign.h.

267 {
268 return m_depthAxis;
269}

◆ depthSymmetric()

bool InDetDD::DetectorDesign::depthSymmetric ( ) const
inlineinherited

Definition at line 287 of file DetectorDesign.h.

287 {
288 return m_depthSymmetric;
289}

◆ distanceToDetectorEdge()

void InDetDD::HGTD_ModuleDesign::distanceToDetectorEdge ( const SiLocalPosition & localPosition,
double & etaDist,
double & phiDist ) const
virtual

Returns distance to nearest detector active edge +ve = inside -ve = outside.

Implements InDetDD::DetectorDesign.

Definition at line 46 of file HGTD_ModuleDesign.cxx.

48{
49 // This assume element is centered at 0,0
50 // As the calculation is symmetric around 0,0 we only have to test it for one side.
51 double xEta = abs(localPosition.xEta());
52 double xPhi = abs(localPosition.xPhi());
53
54 double xEtaEdge = 0.5*length();
55 double xPhiEdge = 0.5*width();
56
57 // Distance to top/bottom
58 etaDist = xEtaEdge - xEta;
59
60 // Distance to right/left edge
61 phiDist = xPhiEdge - xPhi;
62}
double xPhi() const
position along phi direction:
double xEta() const
position along eta direction:

◆ etaAxis()

DetectorDesign::Axis InDetDD::DetectorDesign::etaAxis ( ) const
inlineinherited

local axis corresponding to eta direction:

Definition at line 259 of file DetectorDesign.h.

259 {
260 return m_etaAxis;
261}

◆ etaPitch()

double InDetDD::HGTD_ModuleDesign::etaPitch ( ) const
virtual

Pitch in eta direction.

Implements InDetDD::DetectorDesign.

Definition at line 128 of file HGTD_ModuleDesign.cxx.

129{
130 // Average pitch
131 return length() / columns();
132}
int columns() const
Number of cell columns per module:

◆ etaSymmetric()

bool InDetDD::DetectorDesign::etaSymmetric ( ) const
inlineinherited

Definition at line 283 of file DetectorDesign.h.

283 {
284 return m_etaSymmetric;
285}

◆ inDetector()

SiIntersect InDetDD::DetectorDesign::inDetector ( const SiLocalPosition & localPosition,
double phiTol,
double etaTol ) const
virtualinherited

Test if point is in the active part of the detector with specified tolerances.

Reimplemented in InDetDD::SCT_ModuleSideDesign, and SCT_ModuleSideDesign.

Definition at line 106 of file DetectorDesign.cxx.

107 {
108 double etaDist = 0;
109 double phiDist = 0;
110
111 distanceToDetectorEdge(localPosition, etaDist, phiDist);
112
113 SiIntersect state;
114
115 if (phiDist < -phiTol || etaDist < -etaTol) {
116 state.setOut();
117 return state;
118 }
119
120 if (phiDist > phiTol && etaDist > etaTol) {
121 state.setIn();
122 return state;
123 }
124
125 // Near boundary.
126 state.setNearBoundary();
127 return state;
128}
virtual void distanceToDetectorEdge(const SiLocalPosition &localPosition, double &etaDist, double &phiDist) const =0
Returns distance to nearest detector active edge +ve = inside -ve = outside.

◆ intersectionLength()

double InDetDD::HGTD_ModuleDesign::intersectionLength ( const SiCellId & diode1,
const SiCellId & diode2 ) const
inline

Compute the intersection length of two diodes: return: the intersection length when the two diodes are projected on one of the two axis, or 0 in case of no intersection or problem input: the two diodes for which the intersection length is computed.

Definition at line 286 of file HGTD_ModuleDesign.h.

288{
289 return m_diodeMap.intersectionLength(diode1, diode2);
290}

◆ length()

double InDetDD::HGTD_ModuleDesign::length ( ) const
virtual

Method to calculate length of a module.

Implements InDetDD::DetectorDesign.

Definition at line 65 of file HGTD_ModuleDesign.cxx.

66{
67 return m_diodeMap.length();
68}

◆ localPositionOfCell()

SiLocalPosition InDetDD::HGTD_ModuleDesign::localPositionOfCell ( const SiCellId & cellId) const
virtual

readout or diode id -> position.

Implements InDetDD::DetectorDesign.

Definition at line 145 of file HGTD_ModuleDesign.cxx.

146{
147 return m_diodeMap.parameters(cellId).centre();
148}

◆ maxWidth()

double InDetDD::HGTD_ModuleDesign::maxWidth ( ) const
virtual

Method to calculate maximum width of a module.

Implements InDetDD::DetectorDesign.

Definition at line 83 of file HGTD_ModuleDesign.cxx.

84{
85 return width();
86}

◆ minWidth()

double InDetDD::HGTD_ModuleDesign::minWidth ( ) const
virtual

Method to calculate minimum width of a module.

Implements InDetDD::DetectorDesign.

Definition at line 77 of file HGTD_ModuleDesign.cxx.

78{
79 return width();
80}

◆ moduleShift()

const Amg::Transform3D InDetDD::DetectorDesign::moduleShift ( ) const
virtualinherited

Reimplemented in InDetDD::StripBoxDesign.

Definition at line 130 of file DetectorDesign.cxx.

130 {
131 return Amg::Transform3D::Identity();
132 }

◆ neighboursOfCell()

void InDetDD::HGTD_ModuleDesign::neighboursOfCell ( const SiCellId & cellId,
std::vector< SiCellId > & neighbours ) const
inlinevirtual

Get the neighbouring diodes of a given diode: Cell for which the neighbours must be found List of cells which are neighbours of the given one.

Implements InDetDD::DetectorDesign.

Definition at line 280 of file HGTD_ModuleDesign.h.

282{
283 return m_diodeMap.neighboursOfCell(cellId, neighbours);
284}

◆ numberOfCircuits()

int InDetDD::HGTD_ModuleDesign::numberOfCircuits ( ) const
inline

Total number of circuits:

Definition at line 245 of file HGTD_ModuleDesign.h.

246{
247 return m_readoutScheme.numberOfCircuits();
248}

◆ numberOfConnectedCells()

int InDetDD::HGTD_ModuleDesign::numberOfConnectedCells ( const SiReadoutCellId & readoutId) const
virtual

readout id -> id of connected diodes

Implements InDetDD::DetectorDesign.

Definition at line 150 of file HGTD_ModuleDesign.cxx.

151{
152 return m_readoutScheme.numberOfConnectedCells(readoutId);
153}

◆ numberOfDiodes()

int InDetDD::HGTD_ModuleDesign::numberOfDiodes ( ) const
inline

Total number of diodes:

Definition at line 240 of file HGTD_ModuleDesign.h.

241{
242 return m_diodeMap.diodes();
243}

◆ operator=()

HGTD_ModuleDesign & InDetDD::HGTD_ModuleDesign::operator= ( const HGTD_ModuleDesign & design)
private

◆ parameters()

SiDiodesParameters InDetDD::HGTD_ModuleDesign::parameters ( const SiCellId & cellId) const
virtual

readout or diode id -> position, size

Implements InDetDD::DetectorDesign.

Definition at line 140 of file HGTD_ModuleDesign.cxx.

141{
142 return m_diodeMap.parameters(cellId);
143}

◆ phiAxis()

DetectorDesign::Axis InDetDD::DetectorDesign::phiAxis ( ) const
inlineinherited

local axis corresponding to phi direction:

Definition at line 263 of file DetectorDesign.h.

263 {
264 return m_phiAxis;
265}

◆ phiPitch() [1/2]

double InDetDD::HGTD_ModuleDesign::phiPitch ( ) const
virtual

Pitch in phi direction.

Implements InDetDD::DetectorDesign.

Definition at line 112 of file HGTD_ModuleDesign.cxx.

113{
114 // Average pitch.
115 return width() / rows();
116}
int rows() const
Number of cell rows per module:

◆ phiPitch() [2/2]

double InDetDD::HGTD_ModuleDesign::phiPitch ( const SiLocalPosition & localPosition) const
virtual

Pitch in phi direction.

Implements InDetDD::DetectorDesign.

Definition at line 120 of file HGTD_ModuleDesign.cxx.

121{
122 // Cheat since we know its constant.
123 return phiPitch();
124}
virtual double phiPitch() const
Pitch in phi direction.

◆ phiSymmetric()

bool InDetDD::DetectorDesign::phiSymmetric ( ) const
inlineinherited

Definition at line 279 of file DetectorDesign.h.

279 {
280 return m_phiSymmetric;
281}

◆ readoutIdOfCell()

SiReadoutCellId InDetDD::HGTD_ModuleDesign::readoutIdOfCell ( const SiCellId & cellId) const
virtual

diode id -> readout id

Implements InDetDD::DetectorDesign.

Definition at line 162 of file HGTD_ModuleDesign.cxx.

163{
164 return m_readoutScheme.readoutIdOfCell(cellId);
165}

◆ readoutIdOfPosition()

SiReadoutCellId InDetDD::HGTD_ModuleDesign::readoutIdOfPosition ( const SiLocalPosition & localPos) const
virtual

position -> id

Implements InDetDD::DetectorDesign.

Definition at line 168 of file HGTD_ModuleDesign.cxx.

169{
170 return m_readoutScheme.readoutIdOfCell(m_diodeMap.cellIdOfPosition(localPos));
171}

◆ readoutSide()

int InDetDD::DetectorDesign::readoutSide ( ) const
inlineinherited

ReadoutSide.

+1 = postive depth side, -1 = negative depth side.

Definition at line 291 of file DetectorDesign.h.

291 {
292 return (m_readoutSidePosDepth) ? +1 : -1;
293}

◆ rows()

int InDetDD::HGTD_ModuleDesign::rows ( ) const
inline

Number of cell rows per module:

Definition at line 265 of file HGTD_ModuleDesign.h.

266{
267 return m_readoutScheme.rows();
268}

◆ rowsPerCircuit()

int InDetDD::HGTD_ModuleDesign::rowsPerCircuit ( ) const
inline

Number of cell rows per circuit:

Definition at line 255 of file HGTD_ModuleDesign.h.

256{
257 return m_readoutScheme.rowsPerCircuit();
258}

◆ sensorCenter()

Amg::Vector3D InDetDD::DetectorDesign::sensorCenter ( ) const
virtualinherited

Return the centre of a sensor in the local reference frame.

For most designs, this is the origin of the local reference frame. For StripStereoAnnulusDesign, this is not the case (coordinate origin is "on the beamline")

Reimplemented in InDetDD::StripAnnulusDesign, and InDetDD::StripStereoAnnulusDesign.

Definition at line 60 of file DetectorDesign.cxx.

60 {
61 return Amg::Vector3D(0., 0., 0.);
62}
Eigen::Matrix< double, 3, 1 > Vector3D

◆ sensorLeftColumn()

double InDetDD::HGTD_ModuleDesign::sensorLeftColumn ( ) const
inline

Global sensor size:

Definition at line 220 of file HGTD_ModuleDesign.h.

221{
222 return m_diodeMap.leftColumn();
223}

◆ sensorLeftRow()

double InDetDD::HGTD_ModuleDesign::sensorLeftRow ( ) const
inline

Definition at line 230 of file HGTD_ModuleDesign.h.

231{
232 return m_diodeMap.leftRow();
233}

◆ sensorRightColumn()

double InDetDD::HGTD_ModuleDesign::sensorRightColumn ( ) const
inline

Definition at line 225 of file HGTD_ModuleDesign.h.

226{
227 return m_diodeMap.rightColumn();
228}

◆ sensorRightRow()

double InDetDD::HGTD_ModuleDesign::sensorRightRow ( ) const
inline

Definition at line 235 of file HGTD_ModuleDesign.h.

236{
237 return m_diodeMap.rightRow();
238}

◆ setSymmetry()

void InDetDD::DetectorDesign::setSymmetry ( bool phiSymmetric,
bool etaSymmetric,
bool depthSymmetric )
inherited

Override default symmetries to prevent swapping of axes.

NB. Flags can be changed from true to false but not false to true.

Definition at line 65 of file DetectorDesign.cxx.

66 {
67 // Flags can be changed from true to false but not false to true.
68 if (m_phiSymmetric) {
70 }
71 else if (phiSymmetric) {
72 std::cout <<
73 "SiDetectorDesign: WARNING! Attempt to allow swapping of xPhi axis direction ignored."
74 << std::endl;
75 }
76
77 if (m_etaSymmetric) {
79 }
80 else if (etaSymmetric) {
81 std::cout <<
82 "SiDetectorDesign: WARNING! Attempt to allow swapping of xEta axis direction ignored."
83 << std::endl;
84 }
85
86 if (m_depthSymmetric) {
88 }
89 else if (depthSymmetric) {
90 std::cout <<
91 "SiDetectorDesign: WARNING! Attempt to allow swapping of xDepth axis direction ignored."
92 << std::endl;
93 }
94}

◆ shape()

DetectorShape InDetDD::DetectorDesign::shape ( ) const
virtualinherited

Shape of element.

Reimplemented in InDetDD::SCT_ForwardModuleSideDesign, and InDetDD::StripStereoAnnulusDesign.

Definition at line 96 of file DetectorDesign.cxx.

96 {
97 // Default is Box.
98 return InDetDD::Box;
99}

◆ swapHitEtaReadoutDirection()

bool InDetDD::HGTD_ModuleDesign::swapHitEtaReadoutDirection ( ) const
inlinevirtual

Implements InDetDD::DetectorDesign.

Definition at line 275 of file HGTD_ModuleDesign.h.

276{
277 return true;
278}

◆ swapHitPhiReadoutDirection()

bool InDetDD::HGTD_ModuleDesign::swapHitPhiReadoutDirection ( ) const
inlinevirtual

Return true if hit local direction is the same as readout direction.

Implements InDetDD::DetectorDesign.

Definition at line 270 of file HGTD_ModuleDesign.h.

271{
272 return true;
273}

◆ thickness()

double InDetDD::DetectorDesign::thickness ( ) const
inlineinherited

Method which returns thickness of the silicon wafer.

Definition at line 271 of file DetectorDesign.h.

271 {
272 return m_thickness;
273}

◆ type()

DetectorType InDetDD::DetectorDesign::type ( ) const
virtualinherited

Type of element.

Reimplemented in InDetDD::PixelModuleDesign, InDetDD::StripBoxDesign, and InDetDD::StripStereoAnnulusDesign.

Definition at line 101 of file DetectorDesign.cxx.

101 {
102 // Default is Undefined.
103 return InDetDD::Undefined;
104}

◆ width()

double InDetDD::HGTD_ModuleDesign::width ( ) const
virtual

Method to calculate average width of a module.

Implements InDetDD::DetectorDesign.

Definition at line 71 of file HGTD_ModuleDesign.cxx.

72{
73 return m_diodeMap.width();
74}

◆ widthFromColumnRange()

double InDetDD::HGTD_ModuleDesign::widthFromColumnRange ( const int colMin,
const int colMax ) const

Method to calculate eta width from a column range.

Definition at line 89 of file HGTD_ModuleDesign.cxx.

90{
91 SiCellId idMin(0, colMin);
92 SiCellId idMax(0, colMax);
93 double minEta = parameters(idMin).xEtaMin();
94 double maxEta = parameters(idMax).xEtaMax();
95
96 return std::abs(maxEta-minEta);
97}
virtual SiDiodesParameters parameters(const SiCellId &cellId) const
readout or diode id -> position, size
double xEtaMin() const
boundaries of the diodes:
constexpr float maxEta

◆ widthFromRowRange()

double InDetDD::HGTD_ModuleDesign::widthFromRowRange ( const int rowMin,
const int rowMax ) const

Method to calculate phi width from a row range.

Definition at line 100 of file HGTD_ModuleDesign.cxx.

101{
102 SiCellId idMin(rowMin, 0);
103 SiCellId idMax(rowMax, 0);
104 double minPhi = parameters(idMin).xPhiMin();
105 double maxPhi = parameters(idMax).xPhiMax();
106
107 return std::abs(maxPhi-minPhi);
108}

Member Data Documentation

◆ m_bounds

Trk::RectangleBounds InDetDD::HGTD_ModuleDesign::m_bounds
private

Definition at line 202 of file HGTD_ModuleDesign.h.

◆ m_carrierType

InDetDD::CarrierType InDetDD::DetectorDesign::m_carrierType
privateinherited

Definition at line 240 of file DetectorDesign.h.

◆ m_depthAxis

Axis InDetDD::DetectorDesign::m_depthAxis
privateinherited

Definition at line 238 of file DetectorDesign.h.

◆ m_depthSymmetric

bool InDetDD::DetectorDesign::m_depthSymmetric
privateinherited

Definition at line 244 of file DetectorDesign.h.

◆ m_diodeMap

PixelDiodeMap InDetDD::HGTD_ModuleDesign::m_diodeMap
private

Definition at line 200 of file HGTD_ModuleDesign.h.

◆ m_etaAxis

Axis InDetDD::DetectorDesign::m_etaAxis
privateinherited

Definition at line 236 of file DetectorDesign.h.

◆ m_etaSymmetric

bool InDetDD::DetectorDesign::m_etaSymmetric
privateinherited

Definition at line 243 of file DetectorDesign.h.

◆ m_phiAxis

Axis InDetDD::DetectorDesign::m_phiAxis
privateinherited

Definition at line 237 of file DetectorDesign.h.

◆ m_phiSymmetric

bool InDetDD::DetectorDesign::m_phiSymmetric
privateinherited

Definition at line 242 of file DetectorDesign.h.

◆ m_readoutScheme

PixelReadoutScheme InDetDD::HGTD_ModuleDesign::m_readoutScheme
private

Definition at line 201 of file HGTD_ModuleDesign.h.

◆ m_readoutSidePosDepth

bool InDetDD::DetectorDesign::m_readoutSidePosDepth
privateinherited

Definition at line 246 of file DetectorDesign.h.

◆ m_thickness

double InDetDD::DetectorDesign::m_thickness
privateinherited

Definition at line 239 of file DetectorDesign.h.


The documentation for this class was generated from the following files: