ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Private Attributes | List of all members
InDetDD::StripAnnulusDesign Class Reference

#include <StripAnnulusDesign.h>

Inheritance diagram for InDetDD::StripAnnulusDesign:
Collaboration diagram for InDetDD::StripAnnulusDesign:

Public Types

enum  Axis { xAxis =0, yAxis, zAxis }
 

Public Member Functions

 StripAnnulusDesign (const SiDetectorDesign::Axis &stripDirection, const SiDetectorDesign::Axis &thicknessDirection, const double &thickness, const int &readoutSide, const InDetDD::CarrierType &carrier, const int &nStrips, const double &pitch, const double &stripStart, const double &stripEnd)
 
 ~StripAnnulusDesign ()=default
 
Amg::Vector3D sensorCenter () const
 Return the centre of a sensor in the local reference frame. More...
 
 StripAnnulusDesign (const StripAnnulusDesign &design)
 
StripAnnulusDesignoperator= (const StripAnnulusDesign &design)
 
void distanceToDetectorEdge (const SiLocalPosition &localPosition, double &etaDist, double &phiDist) const
 DEPRECATED: Unused (2014) More...
 
bool inActiveArea (const SiLocalPosition &chargePos, bool checkBondGap=false) const
 check if the position is in active area More...
 
const Trk::SurfaceBoundsbounds () const
 Element boundary. More...
 
std::pair< SiLocalPosition, SiLocalPositionendsOfStrip (const SiLocalPosition &position) const
 Give end points of the strip that covers the given position. More...
 
double stripPitch (const SiLocalPosition &localPosition) const
 give the strip pitch (dependence on position needed for forward)
More...
 
double stripPitch () const
 give the strip pitch (For Forward returns pitch at center) More...
 
double phiPitch (const SiLocalPosition &localPosition) const
 Pitch in phi direction. More...
 
double phiPitch () const
 Pitch in phi direction. More...
 
double scaledDistanceToNearestDiode (const SiLocalPosition &chargePos) const
 give distance to the nearest diode in units of pitch, from 0.0 to 0.5, this method should be fast as it is called for every surface charge in the SCT_SurfaceChargesGenerator More...
 
SiDiodesParameters parameters (const SiCellId &cellId) const
 Return strip width, centre, length etc. Hard to find if this is used or not. More...
 
SiLocalPosition localPositionOfCell (const SiCellId &cellId) const
 id -> position More...
 
SiLocalPosition localPositionOfCluster (const SiCellId &cellId, int clusterSize) const
 
SiCellId cellIdOfPosition (const SiLocalPosition &localPos) const
 position -> id More...
 
SiLocalPosition positionFromStrip (const SiCellId &cellId) const
 
SiLocalPosition positionFromStrip (const int stripNumber) const
 gives position of strip center ALTERNATIVE/PREFERED way is to use localPositionOfCell(const SiCellId & cellId) or rawLocalPositionOfCell method in SiDetectorElement. More...
 
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. More...
 
SiCellId cellIdInRange (const SiCellId &) const
 Check if cell is in range. More...
 
SiReadoutCellId readoutIdOfCell (const SiCellId &cellId) const
 diode id -> readout id More...
 
HepGeom::Vector3D< double > phiMeasureSegment (const SiLocalPosition &position) const
 Helper method for stereo angle computation, DEPRECATED. More...
 
double length () const
 Method to calculate length of a module. More...
 
double width () const
 Method to calculate average width of a module. More...
 
double minWidth () const
 Method to calculate minimum width of a module. More...
 
double maxWidth () const
 Method to calculate maximum width of a module. More...
 
double etaPitch () const
 
bool swapHitPhiReadoutDirection () const
 Return true if hit local direction is the same as readout direction. More...
 
bool swapHitEtaReadoutDirection () const
 
bool nearBondGap (const SiLocalPosition &, double) const
 Test if near bond gap within tolerances, only relevant for SCT. More...
 
double pitch (const SiCellId &cellId) const
 
double stripLength (const SiCellId &cellId) const
 
double deadAreaUpperBoundary () const
 DEPRECATED for StripAnnulusDesign; no dead area. More...
 
double deadAreaLowerBoundary () const
 give lower boundary of dead area More...
 
double deadAreaLength () const
 give length of dead area More...
 
virtual int numberOfConnectedCells (const SiReadoutCellId &readoutId) const override
 readout id -> id of connected diodes Not particularly useful for the SCT but implemented to keep a uniform interface. More...
 
virtual SiCellId connectedCell (const SiReadoutCellId &readoutId, int number) const override
 readout id -> id of connected diodes. More...
 
virtual SiCellId gangedCell (const SiCellId &cellId) const override
 If cell is ganged return the other cell, otherwise return an invalid id. More...
 
virtual SiReadoutCellId readoutIdOfPosition (const SiLocalPosition &localPos) const override
 position -> id More...
 
int crystals () const
 number of crystals within module side: More...
 
int diodes () const
 number of strips within crystal: More...
 
virtual int diodesInRow (const int row) const
 
int cells () const
 number of readout stips within module side: More...
 
int shift () const
 number of edge strips before first readout strip. More...
 
virtual int row (int stripId1Dim) const
 
virtual int strip (int stripId1Dim) const
 
virtual int strip1Dim (int strip, int row) const override
 only relevant for SCT. More...
 
void setMother (SCT_ModuleSideDesign *mother)
 
const SCT_ModuleSideDesigngetMother () const
 
const std::map< int, const SCT_ModuleSideDesign * > & getChildren () const
 
void addChildDesign (int index, const SCT_ModuleSideDesign *element)
 
virtual std::pair< int, int > getStripRow (SiCellId id) const
 Get the strip and row number of the cell. More...
 
virtual SiIntersect inDetector (const SiLocalPosition &localPosition, double phiTol, double etaTol) const override
 Test if point is in the active part of the detector with specified tolerances. More...
 
virtual double sinStripAngleReco (double phiCoord, double etaCoord) const
 Give strip angle in the reco frame. More...
 
void setSymmetry (bool phiSymmetric, bool etaSymmetric, bool depthSymmetric)
 Override default symmetries to prevent swapping of axes. More...
 
Axis etaAxis () const
 local axis corresponding to eta direction: More...
 
Axis phiAxis () const
 local axis corresponding to phi direction: More...
 
Axis depthAxis () const
 local axis corresponding to depth direction: More...
 
double thickness () const
 Method which returns thickness of the silicon wafer. More...
 
InDetDD::CarrierType carrierType () const
 Return carrier type (ie electrons or holes) More...
 
bool phiSymmetric () const
 
bool etaSymmetric () const
 
bool depthSymmetric () const
 
int readoutSide () const
 ReadoutSide. More...
 
virtual DetectorShape shape () const
 Shape of element. More...
 
virtual DetectorType type () const
 Type of element. More...
 
virtual const Amg::Transform3D moduleShift () const
 

Static Public Member Functions

static const Amg::Transform3D SiHitToGeoModel ()
 

Protected Attributes

SCT_ReadoutScheme m_scheme
 
InDetDD::DetectorType m_detectorType {Undefined}
 

Private Attributes

int m_nStrips
 
double m_pitch
 
double m_stripStartRadius
 
double m_stripEndRadius
 
std::unique_ptr< Trk::RectangleBoundsm_bounds
 
bool m_swapStripReadout
 
const SCT_ModuleSideDesignm_motherDesign {nullptr}
 
std::map< int, const SCT_ModuleSideDesign * > m_childDesigns
 
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

Definition at line 45 of file StripAnnulusDesign.h.

Member Enumeration Documentation

◆ Axis

Enumerator
xAxis 
yAxis 
zAxis 

Definition at line 59 of file DetectorDesign.h.

59  {
60  xAxis=0, yAxis, zAxis
61  };

Constructor & Destructor Documentation

◆ StripAnnulusDesign() [1/2]

InDetDD::StripAnnulusDesign::StripAnnulusDesign ( const SiDetectorDesign::Axis stripDirection,
const SiDetectorDesign::Axis thicknessDirection,
const double &  thickness,
const int &  readoutSide,
const InDetDD::CarrierType carrier,
const int &  nStrips,
const double &  pitch,
const double &  stripStart,
const double &  stripEnd 
)

Definition at line 15 of file StripAnnulusDesign.cxx.

23  :
24  SCT_ModuleSideDesign(thickness, true, true, true, 1, 0, 0, 0, false, carrier, readoutSide, stripDirection, thicknessDirection) {
25 
27  m_pitch = pitch;
28  m_stripStartRadius = stripStartRadius;
29  m_stripEndRadius = stripEndRadius;
30 
33 
34  double width = m_nStrips * m_pitch;
36  std::unique_ptr<Trk::SurfaceBounds> m_bounds = std::make_unique<Trk::RectangleBounds>(width / 2.0, length / 2.0); // Awaiting new boundclass for Annulus shape
37 }

◆ ~StripAnnulusDesign()

InDetDD::StripAnnulusDesign::~StripAnnulusDesign ( )
default

◆ StripAnnulusDesign() [2/2]

InDetDD::StripAnnulusDesign::StripAnnulusDesign ( const StripAnnulusDesign design)

Member Function Documentation

◆ addChildDesign()

void InDetDD::SCT_ModuleSideDesign::addChildDesign ( int  index,
const SCT_ModuleSideDesign element 
)
inlineinherited

Definition at line 292 of file SCT_ModuleSideDesign.h.

292  {
293  m_childDesigns.emplace(index,child);
294  }

◆ bounds()

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

Element boundary.

Implements InDetDD::DetectorDesign.

Definition at line 65 of file StripAnnulusDesign.cxx.

65  {
66 
67  return *m_bounds;
68 }

◆ 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 }

◆ cellIdInRange()

SiCellId InDetDD::StripAnnulusDesign::cellIdInRange ( const SiCellId cellId) const
virtual

Check if cell is in range.

Check if cell is in range. Returns the original cellId if it is in range, otherwise it.

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

Reimplemented from InDetDD::SCT_ModuleSideDesign.

Definition at line 161 of file StripAnnulusDesign.cxx.

161  {
162 
163  if (!cellId.isValid()) {
164  return {}; // Invalid
165  }
166  int strip = cellId.strip();
167  if (strip < 0 || strip >= m_nStrips) {
168  return {}; // Invalid
169  }
170  return cellId;
171 }

◆ cellIdOfPosition()

SiCellId InDetDD::StripAnnulusDesign::cellIdOfPosition ( const SiLocalPosition localPos) const
virtual

position -> id

Implements InDetDD::DetectorDesign.

Definition at line 70 of file StripAnnulusDesign.cxx.

70  {
71  double phi = pos.phi();
72 //
73 // Find the strip
74 //
75  int strip = std::floor(phi / m_pitch) + m_nStrips * 0.5;
76  return {strip};
77 }

◆ cells()

int InDetDD::SCT_ModuleSideDesign::cells ( ) const
inlineinherited

number of readout stips within module side:

Definition at line 228 of file SCT_ModuleSideDesign.h.

228  {
229  return m_scheme.cells();
230 }

◆ connectedCell()

SiCellId InDetDD::SCT_ModuleSideDesign::connectedCell ( const SiReadoutCellId readoutId,
int  number 
) const
inlineoverridevirtualinherited

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 241 of file SCT_ModuleSideDesign.h.

242  {
243  return m_scheme.connectedCell(readoutId, number);
244 }

◆ crystals()

int InDetDD::SCT_ModuleSideDesign::crystals ( ) const
inlineinherited

number of crystals within module side:

Definition at line 216 of file SCT_ModuleSideDesign.h.

216  {
217  return m_scheme.crystals();
218 }

◆ deadAreaLength()

double InDetDD::StripAnnulusDesign::deadAreaLength ( ) const
virtual

give length of dead area

Implements InDetDD::SCT_ModuleSideDesign.

Definition at line 219 of file StripAnnulusDesign.h.

219  {
220  return 0.;
221 }

◆ deadAreaLowerBoundary()

double InDetDD::StripAnnulusDesign::deadAreaLowerBoundary ( ) const
virtual

give lower boundary of dead area

Implements InDetDD::SCT_ModuleSideDesign.

Definition at line 215 of file StripAnnulusDesign.h.

215  {
216  return 0.;
217 }

◆ deadAreaUpperBoundary()

double InDetDD::StripAnnulusDesign::deadAreaUpperBoundary ( ) const
virtual

DEPRECATED for StripAnnulusDesign; no dead area.

Implements InDetDD::SCT_ModuleSideDesign.

Definition at line 211 of file StripAnnulusDesign.h.

211  {
212  return 0.;
213 }

◆ 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 }

◆ diodes()

int InDetDD::SCT_ModuleSideDesign::diodes ( ) const
inlineinherited

number of strips within crystal:

Definition at line 220 of file SCT_ModuleSideDesign.h.

220  {
221  return m_scheme.diodes();
222 }

◆ diodesInRow()

int InDetDD::SCT_ModuleSideDesign::diodesInRow ( const int  row) const
inlinevirtualinherited

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

Definition at line 224 of file SCT_ModuleSideDesign.h.

224  {
225  return m_scheme.diodes();
226 }

◆ distanceToDetectorEdge()

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

DEPRECATED: Unused (2014)

Implements InDetDD::DetectorDesign.

Definition at line 203 of file StripAnnulusDesign.h.

205  {
206  throw std::runtime_error(
207  "Call to distanceToDetectorEdge which is Deprecated and not yet implemented");
208 }

◆ endsOfStrip()

std::pair< SiLocalPosition, SiLocalPosition > InDetDD::StripAnnulusDesign::endsOfStrip ( const SiLocalPosition position) const
virtual

Give end points of the strip that covers the given position.

Implements InDetDD::SCT_ModuleSideDesign.

Definition at line 108 of file StripAnnulusDesign.cxx.

108  {
109 
110  SiCellId cellId = cellIdOfPosition(pos);
111 
112  int strip = cellId.strip();
113 
114  double rStart = m_stripStartRadius;
115  double rEnd = m_stripEndRadius;
116  double phi = (strip - m_nStrips*0.5 + 0.5) * m_pitch;
117 
118  SiLocalPosition end1(rStart * std::cos(phi), rStart * std::sin(phi), 0.0);
119  SiLocalPosition end2(rEnd * std::cos(phi), rEnd * std::sin(phi), 0.0);
120 
121  return std::pair<SiLocalPosition, SiLocalPosition>(end1, end2);
122 }

◆ 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::StripAnnulusDesign::etaPitch ( ) const
virtual

Implements InDetDD::DetectorDesign.

Definition at line 189 of file StripAnnulusDesign.cxx.

189  { // DEPRECATED
190  return length();
191 }

◆ etaSymmetric()

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

Definition at line 283 of file DetectorDesign.h.

283  {
284  return m_etaSymmetric;
285 }

◆ gangedCell()

SiCellId InDetDD::SCT_ModuleSideDesign::gangedCell ( const SiCellId cellId) const
inlineoverridevirtualinherited

If cell is ganged return the other cell, otherwise return an invalid id.

Not particularly useful for the SCT but implemented to keep a uniform interface. For SCT always returns an invalid id.

Implements InDetDD::SiDetectorDesign.

Definition at line 246 of file SCT_ModuleSideDesign.h.

246  {
247  // No ganged cells in SCT so always return invalid id.
248  return SiCellId();
249 }

◆ getChildren()

const std::map< int, const SCT_ModuleSideDesign * > & InDetDD::SCT_ModuleSideDesign::getChildren ( ) const
inlineinherited

Definition at line 287 of file SCT_ModuleSideDesign.h.

287  {
288  return m_childDesigns;
289  }

◆ getMother()

const SCT_ModuleSideDesign * InDetDD::SCT_ModuleSideDesign::getMother ( ) const
inlineinherited

Definition at line 283 of file SCT_ModuleSideDesign.h.

283  {
284  return m_motherDesign;
285  }

◆ getStripRow()

std::pair< int, int > InDetDD::SCT_ModuleSideDesign::getStripRow ( SiCellId  id) const
virtualinherited

Get the strip and row number of the cell.

Can be used as auto [strip, row] = getStripRow(cellId); For SCT sensors, return 0 as there should only be one row; derived versions for ITk strip implement specializations

Parameters
cellIdThe SiCellId
Returns
std::pair<int,int> A pair of ints representing the strip ID and row ID. In this case, [0,0].

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

Definition at line 127 of file SCT_ModuleSideDesign.cxx.

127  {
128  return {0,0};
129  }

◆ inActiveArea()

bool InDetDD::StripAnnulusDesign::inActiveArea ( const SiLocalPosition chargePos,
bool  checkBondGap = false 
) const
virtual

check if the position is in active area

Implements InDetDD::SCT_ModuleSideDesign.

Definition at line 124 of file StripAnnulusDesign.cxx.

124  {
125 
126 
127  SiCellId id = cellIdOfPosition(pos);
128 
129  return id.isValid();
130 }

◆ inDetector()

SiIntersect InDetDD::SCT_ModuleSideDesign::inDetector ( const SiLocalPosition localPosition,
double  phiTol,
double  etaTol 
) const
overridevirtualinherited

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

Reimplemented from InDetDD::DetectorDesign.

Definition at line 131 of file SCT_ModuleSideDesign.cxx.

131  {
132 
133  double etaDist = 0;
134  double phiDist = 0;
135 
136  distanceToDetectorEdge(localPosition, etaDist, phiDist);
137 
138  SiIntersect state;
139 
140  if (phiDist < -phiTol || etaDist < -etaTol) {
141  state.setOut();
142  return state;
143  }
144 
145  if (phiDist > phiTol && etaDist > etaTol) {
146  state.setIn();
147  return state;
148  }
149 
150  // Near boundary.
151  state.setNearBoundary();
152  return state;
153 }

◆ length()

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

Method to calculate length of a module.

Implements InDetDD::DetectorDesign.

Definition at line 173 of file StripAnnulusDesign.cxx.

173  { // DEPRECATED:
175 }

◆ localPositionOfCell()

SiLocalPosition InDetDD::StripAnnulusDesign::localPositionOfCell ( const SiCellId cellId) const
virtual

id -> position

Implements InDetDD::SCT_ModuleSideDesign.

Definition at line 79 of file StripAnnulusDesign.cxx.

79  {
80 
81  int strip = cellId.strip();
82  double r = (m_stripEndRadius - m_stripStartRadius) *0.5;
83  double phi = (strip - m_nStrips*0.5 + 0.5) * m_pitch;
84  double xEta = r * std::cos(phi);
85  double xPhi = r * std::sin(phi);
86  return SiLocalPosition(xEta, xPhi, 0.0);
87 }

◆ localPositionOfCluster()

SiLocalPosition InDetDD::StripAnnulusDesign::localPositionOfCluster ( const SiCellId cellId,
int  clusterSize 
) const
virtual

Implements InDetDD::SCT_ModuleSideDesign.

Definition at line 89 of file StripAnnulusDesign.cxx.

89  {
90 
91  SiLocalPosition pos = localPositionOfCell(cellId);
92 
93  if (clusterSize <= 1) {
94  return pos;
95  }
96 
97  double clusterWidth = clusterSize * m_pitch;
98  double phi = pos.phi() + clusterWidth *0.5;
99  double r = pos.r();
100 
101  pos.xPhi(r * std::sin(phi));
102  pos.xEta(r * std::cos(phi));
103 
104  return pos;
105 }

◆ maxWidth()

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

Method to calculate maximum width of a module.

Implements InDetDD::DetectorDesign.

Definition at line 185 of file StripAnnulusDesign.cxx.

185  { // DEPRECATED
186  return width();
187 }

◆ minWidth()

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

Method to calculate minimum width of a module.

Implements InDetDD::DetectorDesign.

Definition at line 181 of file StripAnnulusDesign.cxx.

181  { // DEPRECATED
182  return width();
183 }

◆ 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  }

◆ nearBondGap()

bool InDetDD::StripAnnulusDesign::nearBondGap ( const SiLocalPosition localPosition,
double  etaTol 
) const
inlinevirtual

Test if near bond gap within tolerances, only relevant for SCT.

Implements InDetDD::SiDetectorDesign.

Definition at line 187 of file StripAnnulusDesign.h.

187  {
188 // No bond gap in strip modules
189  return false;
190 }

◆ neighboursOfCell()

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

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.

Reimplemented from InDetDD::SCT_ModuleSideDesign.

Definition at line 44 of file StripAnnulusDesign.cxx.

44  {
45 
46  neighbours.clear();
47 
48  if (!cellId.isValid()) {
49  return;
50  }
51 
52  int strip = cellId.strip();
53  int stripM = strip - 1;
54  int stripP = strip + 1;
55 
56  if (stripM > 0) {
57  neighbours.emplace_back(stripM);
58  }
59  if (stripP < m_nStrips) {
60  neighbours.emplace_back(stripP);
61  }
62 
63 }

◆ numberOfConnectedCells()

int InDetDD::SCT_ModuleSideDesign::numberOfConnectedCells ( const SiReadoutCellId readoutId) const
inlineoverridevirtualinherited

readout id -> id of connected diodes Not particularly useful for the SCT but implemented to keep a uniform interface.

Implements InDetDD::DetectorDesign.

Definition at line 236 of file SCT_ModuleSideDesign.h.

237  {
238  return m_scheme.numberOfConnectedCells(readoutId);
239 }

◆ operator=()

StripAnnulusDesign& InDetDD::StripAnnulusDesign::operator= ( const StripAnnulusDesign design)

◆ parameters()

SiDiodesParameters InDetDD::StripAnnulusDesign::parameters ( const SiCellId cellId) const
virtual

Return strip width, centre, length etc. Hard to find if this is used or not.

Implements InDetDD::DetectorDesign.

Definition at line 142 of file StripAnnulusDesign.cxx.

142  {
143  throw std::runtime_error("Call to StripAnnulusDesign::parameters; not yet implemented");
144 }

◆ 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 }

◆ phiMeasureSegment()

HepGeom::Vector3D< double > InDetDD::StripAnnulusDesign::phiMeasureSegment ( const SiLocalPosition position) const
virtual

Helper method for stereo angle computation, DEPRECATED.

Implements InDetDD::SiDetectorDesign.

Definition at line 197 of file StripAnnulusDesign.h.

198  {
199  throw std::runtime_error("Call to phiMeasureSegment, DEPRECATED, not implemented.");
200 }

◆ phiPitch() [1/2]

double InDetDD::StripAnnulusDesign::phiPitch ( ) const
inlinevirtual

Pitch in phi direction.

Implements InDetDD::DetectorDesign.

Definition at line 183 of file StripAnnulusDesign.h.

183  {
184  return m_pitch;
185 }

◆ phiPitch() [2/2]

double InDetDD::StripAnnulusDesign::phiPitch ( const SiLocalPosition localPosition) const
inlinevirtual

Pitch in phi direction.

Implements InDetDD::DetectorDesign.

Definition at line 179 of file StripAnnulusDesign.h.

179  {
180  return m_pitch;
181 }

◆ phiSymmetric()

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

Definition at line 279 of file DetectorDesign.h.

279  {
280  return m_phiSymmetric;
281 }

◆ pitch()

double InDetDD::StripAnnulusDesign::pitch ( const SiCellId cellId) const

◆ positionFromStrip() [1/2]

SiLocalPosition InDetDD::StripAnnulusDesign::positionFromStrip ( const int  stripNumber) const
virtual

gives position of strip center ALTERNATIVE/PREFERED way is to use localPositionOfCell(const SiCellId & cellId) or rawLocalPositionOfCell method in SiDetectorElement.

DEPRECATED

Reimplemented from InDetDD::SCT_ModuleSideDesign.

Definition at line 152 of file StripAnnulusDesign.cxx.

152  {
153  return localPositionOfCell(SiCellId(strip));
154 }

◆ positionFromStrip() [2/2]

SiLocalPosition InDetDD::StripAnnulusDesign::positionFromStrip ( const SiCellId cellId) const

Definition at line 147 of file StripAnnulusDesign.cxx.

147  {
148 // throw std::runtime_error("Deprecated positionFromStrip called.");
149  return localPositionOfCell(cellId);
150 }

◆ readoutIdOfCell()

SiReadoutCellId InDetDD::StripAnnulusDesign::readoutIdOfCell ( const SiCellId cellId) const
inlinevirtual

diode id -> readout id

Reimplemented from InDetDD::SCT_ModuleSideDesign.

Definition at line 192 of file StripAnnulusDesign.h.

192  {
193  int strip1D = cellId.phiIndex();
194  return SiReadoutCellId(strip1D, 0);
195 }

◆ readoutIdOfPosition()

SiReadoutCellId InDetDD::SCT_ModuleSideDesign::readoutIdOfPosition ( const SiLocalPosition localPos) const
inlineoverridevirtualinherited

position -> id

Implements InDetDD::DetectorDesign.

Definition at line 256 of file SCT_ModuleSideDesign.h.

257  {
258  // Get the cellId then convert it to a readoutId.
259  // NEED to think about active area and bond gap check
260  return readoutIdOfCell(cellIdOfPosition(localPos));
261 }

◆ 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 }

◆ row()

int InDetDD::SCT_ModuleSideDesign::row ( int  stripId1Dim) const
inlinevirtualinherited

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

Definition at line 271 of file SCT_ModuleSideDesign.h.

271  {
272  return -1; // Use -1 to realise this is an SCT module without rows
273 }

◆ scaledDistanceToNearestDiode()

double InDetDD::StripAnnulusDesign::scaledDistanceToNearestDiode ( const SiLocalPosition chargePos) const
virtual

give distance to the nearest diode in units of pitch, from 0.0 to 0.5, this method should be fast as it is called for every surface charge in the SCT_SurfaceChargesGenerator

Implements InDetDD::SCT_ModuleSideDesign.

Definition at line 133 of file StripAnnulusDesign.cxx.

133  {
134 
135  SiCellId cellId = cellIdOfPosition(pos);
136  SiLocalPosition posStrip = localPositionOfCell(cellId);
137 
138  return std::abs(pos.xPhi() - posStrip.xPhi()) / m_pitch;
139 }

◆ sensorCenter()

Amg::Vector3D InDetDD::StripAnnulusDesign::sensorCenter ( ) const
virtual

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 from InDetDD::DetectorDesign.

Definition at line 39 of file StripAnnulusDesign.cxx.

39  {
40  double centerR = (m_stripStartRadius + m_stripEndRadius) * 0.5;
41  return Amg::Vector3D(centerR, 0., 0.);
42 }

◆ setMother()

void InDetDD::SCT_ModuleSideDesign::setMother ( SCT_ModuleSideDesign mother)
inherited

Definition at line 109 of file SCT_ModuleSideDesign.cxx.

109  {
110  if(m_motherDesign){
111  const std::string errMsg=std::string("SCT_ModuleSideDesign already has a mother set!");
112  throw std::runtime_error(errMsg);
113  }
114  m_motherDesign = mother;
115 
116  }

◆ 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::StripStereoAnnulusDesign, and InDetDD::SCT_ForwardModuleSideDesign.

Definition at line 96 of file DetectorDesign.cxx.

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

◆ shift()

int InDetDD::SCT_ModuleSideDesign::shift ( ) const
inlineinherited

number of edge strips before first readout strip.

Definition at line 232 of file SCT_ModuleSideDesign.h.

232  {
233  return m_scheme.shift();
234 }

◆ SiHitToGeoModel()

const Amg::Transform3D InDetDD::StripAnnulusDesign::SiHitToGeoModel ( )
static

Definition at line 193 of file StripAnnulusDesign.cxx.

193  {
194  return Amg::getRotateY3D(90.*CLHEP::deg);
195 }

◆ sinStripAngleReco()

double InDetDD::SiDetectorDesign::sinStripAngleReco ( double  phiCoord,
double  etaCoord 
) const
inlinevirtualinherited

Give strip angle in the reco frame.

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

Definition at line 132 of file SiDetectorDesign.h.

132  {
133  return 0.0; // pixel and barrel strip sensors always zero
134  }

◆ strip()

int InDetDD::SCT_ModuleSideDesign::strip ( int  stripId1Dim) const
inlinevirtualinherited

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

Definition at line 275 of file SCT_ModuleSideDesign.h.

275  {
276  return stripId1Dim;
277 }

◆ strip1Dim()

int InDetDD::SCT_ModuleSideDesign::strip1Dim ( int  strip,
int  row 
) const
inlineoverridevirtualinherited

only relevant for SCT.

Return strip1Dim(int strip, int row) if SCT; otherwise -1

Reimplemented from InDetDD::SiDetectorDesign.

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

Definition at line 279 of file SCT_ModuleSideDesign.h.

279  {
280  return strip;
281 }

◆ stripLength()

double InDetDD::StripAnnulusDesign::stripLength ( const SiCellId cellId) const

◆ stripPitch() [1/2]

double InDetDD::StripAnnulusDesign::stripPitch ( ) const
inlinevirtual

give the strip pitch (For Forward returns pitch at center)

Implements InDetDD::SCT_ModuleSideDesign.

Definition at line 175 of file StripAnnulusDesign.h.

175  {
176  return phiPitch();
177 }

◆ stripPitch() [2/2]

double InDetDD::StripAnnulusDesign::stripPitch ( const SiLocalPosition chargePos) const
inlinevirtual

give the strip pitch (dependence on position needed for forward)

Implements InDetDD::SCT_ModuleSideDesign.

Definition at line 171 of file StripAnnulusDesign.h.

171  {
172  return phiPitch();
173 }

◆ swapHitEtaReadoutDirection()

bool InDetDD::StripAnnulusDesign::swapHitEtaReadoutDirection ( ) const
virtual

Reimplemented from InDetDD::SCT_ModuleSideDesign.

Definition at line 227 of file StripAnnulusDesign.h.

227  {
228  return false;
229 }

◆ swapHitPhiReadoutDirection()

bool InDetDD::StripAnnulusDesign::swapHitPhiReadoutDirection ( ) const
virtual

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

Reimplemented from InDetDD::SCT_ModuleSideDesign.

Definition at line 223 of file StripAnnulusDesign.h.

223  {
224  return false;
225 }

◆ 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::StripStereoAnnulusDesign, InDetDD::StripBoxDesign, and InDetDD::PixelModuleDesign.

Definition at line 101 of file DetectorDesign.cxx.

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

◆ width()

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

Method to calculate average width of a module.

Implements InDetDD::DetectorDesign.

Definition at line 177 of file StripAnnulusDesign.cxx.

177  { // DEPRECATED
178  return m_pitch * m_nStrips;
179 }

Member Data Documentation

◆ m_bounds

std::unique_ptr<Trk::RectangleBounds> InDetDD::StripAnnulusDesign::m_bounds
private

Definition at line 161 of file StripAnnulusDesign.h.

◆ m_carrierType

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

Definition at line 240 of file DetectorDesign.h.

◆ m_childDesigns

std::map<int, const SCT_ModuleSideDesign *> InDetDD::SCT_ModuleSideDesign::m_childDesigns
privateinherited

Definition at line 210 of file SCT_ModuleSideDesign.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_detectorType

InDetDD::DetectorType InDetDD::SCT_ModuleSideDesign::m_detectorType {Undefined}
protectedinherited

Definition at line 197 of file SCT_ModuleSideDesign.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_motherDesign

const SCT_ModuleSideDesign* InDetDD::SCT_ModuleSideDesign::m_motherDesign {nullptr}
privateinherited

Definition at line 208 of file SCT_ModuleSideDesign.h.

◆ m_nStrips

int InDetDD::StripAnnulusDesign::m_nStrips
private

Definition at line 157 of file StripAnnulusDesign.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_pitch

double InDetDD::StripAnnulusDesign::m_pitch
private

Definition at line 158 of file StripAnnulusDesign.h.

◆ m_readoutSidePosDepth

bool InDetDD::DetectorDesign::m_readoutSidePosDepth
privateinherited

Definition at line 246 of file DetectorDesign.h.

◆ m_scheme

SCT_ReadoutScheme InDetDD::SCT_ModuleSideDesign::m_scheme
protectedinherited

Definition at line 196 of file SCT_ModuleSideDesign.h.

◆ m_stripEndRadius

double InDetDD::StripAnnulusDesign::m_stripEndRadius
private

Definition at line 160 of file StripAnnulusDesign.h.

◆ m_stripStartRadius

double InDetDD::StripAnnulusDesign::m_stripStartRadius
private

Definition at line 159 of file StripAnnulusDesign.h.

◆ m_swapStripReadout

bool InDetDD::SCT_ModuleSideDesign::m_swapStripReadout
privateinherited

Definition at line 204 of file SCT_ModuleSideDesign.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:
InDetDD::DetectorDesign::xAxis
@ xAxis
Definition: DetectorDesign.h:60
InDetDD::SCT_ReadoutScheme::cells
int cells() const
Definition: SCT_ReadoutScheme.h:123
InDetDD::SCT_ReadoutScheme::diodes
int diodes() const
Definition: SCT_ReadoutScheme.h:118
beamspotman.r
def r
Definition: beamspotman.py:676
InDetDD::DetectorDesign::m_etaSymmetric
bool m_etaSymmetric
Definition: DetectorDesign.h:243
InDetDD::DetectorDesign::m_phiSymmetric
bool m_phiSymmetric
Definition: DetectorDesign.h:242
InDetDD::DetectorDesign::depthSymmetric
bool depthSymmetric() const
Definition: DetectorDesign.h:287
InDetDD::DetectorDesign::m_thickness
double m_thickness
Definition: DetectorDesign.h:239
InDetDD::DetectorDesign::thickness
double thickness() const
Method which returns thickness of the silicon wafer.
Definition: DetectorDesign.h:271
InDetDD::DetectorDesign::etaSymmetric
bool etaSymmetric() const
Definition: DetectorDesign.h:283
InDetDD::DetectorDesign::m_carrierType
InDetDD::CarrierType m_carrierType
Definition: DetectorDesign.h:240
InDetDD::DetectorDesign::m_depthAxis
Axis m_depthAxis
Definition: DetectorDesign.h:238
InDetDD::StripAnnulusDesign::m_bounds
std::unique_ptr< Trk::RectangleBounds > m_bounds
Definition: StripAnnulusDesign.h:161
index
Definition: index.py:1
InDetDD::SCT_ModuleSideDesign::m_childDesigns
std::map< int, const SCT_ModuleSideDesign * > m_childDesigns
Definition: SCT_ModuleSideDesign.h:210
InDetDD::StripAnnulusDesign::length
double length() const
Method to calculate length of a module.
Definition: StripAnnulusDesign.cxx:173
InDetDD::DetectorDesign::yAxis
@ yAxis
Definition: DetectorDesign.h:60
InDetDD::SCT_ModuleSideDesign::strip
virtual int strip(int stripId1Dim) const
Definition: SCT_ModuleSideDesign.h:275
InDetDD::StripAnnulusDesign::m_pitch
double m_pitch
Definition: StripAnnulusDesign.h:158
InDetDD::DetectorDesign::m_phiAxis
Axis m_phiAxis
Definition: DetectorDesign.h:237
InDetDD::SCT_ReadoutScheme::shift
int shift() const
Definition: SCT_ReadoutScheme.h:128
deg
#define deg
Definition: SbPolyhedron.cxx:17
InDetDD::DetectorDesign::readoutSide
int readoutSide() const
ReadoutSide.
Definition: DetectorDesign.h:291
InDetDD::StripAnnulusDesign::cellIdOfPosition
SiCellId cellIdOfPosition(const SiLocalPosition &localPos) const
position -> id
Definition: StripAnnulusDesign.cxx:70
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
InDetDD::DetectorDesign::m_etaAxis
Axis m_etaAxis
Definition: DetectorDesign.h:236
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
InDetDD::StripAnnulusDesign::phiPitch
double phiPitch() const
Pitch in phi direction.
Definition: StripAnnulusDesign.h:183
InDetDD::SCT_ModuleSideDesign::m_motherDesign
const SCT_ModuleSideDesign * m_motherDesign
Definition: SCT_ModuleSideDesign.h:208
InDetDD::StripAnnulusDesign::m_stripStartRadius
double m_stripStartRadius
Definition: StripAnnulusDesign.h:159
InDetDD::SCT_ReadoutScheme::connectedCell
SiCellId connectedCell(const SiReadoutCellId &readoutId, int number) const
Definition: SCT_ReadoutScheme.h:141
InDetDD::SCT_ReadoutScheme::numberOfConnectedCells
int numberOfConnectedCells(const SiReadoutCellId &readoutId) const
Definition: SCT_ReadoutScheme.h:133
InDetDD::SCT_ModuleSideDesign::m_scheme
SCT_ReadoutScheme m_scheme
Definition: SCT_ModuleSideDesign.h:196
InDetDD::StripAnnulusDesign::width
double width() const
Method to calculate average width of a module.
Definition: StripAnnulusDesign.cxx:177
InDetDD::SCT_ReadoutScheme::crystals
int crystals() const
Definition: SCT_ReadoutScheme.h:113
InDetDD::DetectorDesign::distanceToDetectorEdge
virtual void distanceToDetectorEdge(const SiLocalPosition &localPosition, double &etaDist, double &phiDist) const =0
Returns distance to nearest detector active edge +ve = inside -ve = outside.
MuonGM::nStrips
int nStrips(const MuonGM::TgcReadoutElement &readoutEle, int layer)
Definition: MuonDetDescr/MuonGeoModelTest/src/GeoModelTgcTest.cxx:46
python.selection.number
number
Definition: selection.py:20
InDetDD::SCT_ModuleSideDesign::readoutIdOfCell
virtual SiReadoutCellId readoutIdOfCell(const SiCellId &cellId) const override
diode id -> readout id
Definition: SCT_ModuleSideDesign.h:251
Amg::getRotateY3D
Amg::Transform3D getRotateY3D(double angle)
get a rotation transformation around Y-axis
Definition: GeoPrimitivesHelpers.h:261
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
InDetDD::SCT_ReadoutScheme::setCells
void setCells(int numReadoutCells)
Definition: SCT_ReadoutScheme.h:109
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
InDetDD::StripAnnulusDesign::m_nStrips
int m_nStrips
Definition: StripAnnulusDesign.h:157
InDetDD::DetectorDesign::cellIdOfPosition
virtual SiCellId cellIdOfPosition(const SiLocalPosition &localPos) const =0
position -> id
InDetDD::DetectorDesign::phiSymmetric
bool phiSymmetric() const
Definition: DetectorDesign.h:279
InDetDD::StripAnnulusDesign::pitch
double pitch(const SiCellId &cellId) const
InDetDD::DetectorDesign::m_depthSymmetric
bool m_depthSymmetric
Definition: DetectorDesign.h:244
InDetDD::DetectorDesign::m_readoutSidePosDepth
bool m_readoutSidePosDepth
Definition: DetectorDesign.h:246
InDetDD::Box
@ Box
Definition: DetectorDesign.h:42
InDetDD::Undefined
@ Undefined
Definition: DetectorDesign.h:46
InDetDD::StripAnnulusDesign::m_stripEndRadius
double m_stripEndRadius
Definition: StripAnnulusDesign.h:160
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
InDetDD::SCT_ReadoutScheme::setDiodes
void setDiodes(int numDiodes)
Definition: SCT_ReadoutScheme.h:105
InDetDD::SCT_ModuleSideDesign::SCT_ModuleSideDesign
SCT_ModuleSideDesign()
InDetDD::DetectorDesign::zAxis
@ zAxis
Definition: DetectorDesign.h:60
InDetDD::StripAnnulusDesign::localPositionOfCell
SiLocalPosition localPositionOfCell(const SiCellId &cellId) const
id -> position
Definition: StripAnnulusDesign.cxx:79