ATLAS Offline Software
|
#include <StripBoxDesign.h>
Public Types | |
enum | Axis { xAxis =0, yAxis, zAxis } |
Public Member Functions | |
StripBoxDesign () | |
StripBoxDesign (const SiDetectorDesign::Axis stripDirection, const SiDetectorDesign::Axis thicknessDirection, const double thickness, const int readoutSide, const InDetDD::CarrierType carrier, const int nRows, const int nStrips, const double pitch, const double length, InDetDD::DetectorType detectorType=InDetDD::Undefined, const double zShift=0.0) | |
~StripBoxDesign ()=default | |
StripBoxDesign (const StripBoxDesign &design) | |
StripBoxDesign & | operator= (const StripBoxDesign &design) |
std::pair< int, int > | getStripRow (SiCellId id) const final |
Get the strip and row number of the cell. More... | |
virtual int | strip1Dim (int strip, int row) const override |
only relevant for SCT. More... | |
int | diodes () const |
virtual int | diodesInRow (const int row) const override |
virtual void | distanceToDetectorEdge (const SiLocalPosition &localPosition, double &etaDist, double &phiDist) const override |
DEPRECATED: Unused (2014) More... | |
virtual bool | inActiveArea (const SiLocalPosition &chargePos, bool checkBondGap=true) const override |
check if the position is in active area More... | |
virtual const Trk::SurfaceBounds & | bounds () const override |
Element boundary. More... | |
virtual std::pair< SiLocalPosition, SiLocalPosition > | endsOfStrip (const SiLocalPosition &position) const override |
Give end points of the strip that covers the given position. More... | |
virtual double | stripPitch (const SiLocalPosition &localPosition) const override |
give the strip pitch (dependence on position needed for forward) More... | |
double | stripPitch (const SiCellId &cellId) const |
virtual double | stripPitch () const override |
give the strip pitch (For Forward returns pitch at center) More... | |
virtual double | phiPitch (const SiLocalPosition &localPosition) const override |
Pitch in phi direction. More... | |
double | phiPitch (const SiCellId &cellId) const |
virtual double | phiPitch () const override |
Pitch in phi direction. More... | |
virtual double | scaledDistanceToNearestDiode (const SiLocalPosition &chargePos) const override |
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... | |
virtual SiDiodesParameters | parameters (const SiCellId &cellId) const override |
Return strip width, centre, length etc. Hard to find if this is used or not. More... | |
virtual SiLocalPosition | localPositionOfCell (const SiCellId &cellId) const override |
id -> position More... | |
virtual SiLocalPosition | localPositionOfCluster (const SiCellId &cellId, int clusterSize) const override |
virtual SiCellId | cellIdOfPosition (const SiLocalPosition &localPos) const override |
position -> id More... | |
SiLocalPosition | positionFromStrip (const SiCellId &cellId) const |
virtual SiLocalPosition | positionFromStrip (const int stripNumber) const override |
gives position of strip center ALTERNATIVE/PREFERED way is to use localPositionOfCell(const SiCellId & cellId) or rawLocalPositionOfCell method in SiDetectorElement. More... | |
virtual int | row (int stripId1Dim) const override |
virtual int | strip (int stripId1Dim) const override |
virtual void | neighboursOfCell (const SiCellId &cellId, std::vector< SiCellId > &neighbours) const override |
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... | |
virtual SiCellId | cellIdInRange (const SiCellId &) const override |
DEPRECATED: only used in a stupid example (2014) Check if cell is in range. More... | |
virtual SiReadoutCellId | readoutIdOfCell (const SiCellId &cellId) const override |
diode id -> readout id More... | |
virtual const Amg::Transform3D | moduleShift () const override final |
virtual InDetDD::DetectorType | type () const override final |
Type of element. More... | |
virtual HepGeom::Vector3D< double > | phiMeasureSegment (const SiLocalPosition &position) const override |
Helper method for stereo angle computation, DEPRECATED. More... | |
virtual double | length () const override |
Method to calculate length of a module. More... | |
virtual double | width () const override |
Method to calculate average width of a module. More... | |
virtual double | minWidth () const override |
Method to calculate minimum width of a module. More... | |
virtual double | maxWidth () const override |
Method to calculate maximum width of a module. More... | |
virtual double | etaPitch () const override |
virtual bool | swapHitPhiReadoutDirection () const override |
Return true if hit local direction is the same as readout direction. More... | |
virtual bool | swapHitEtaReadoutDirection () const override |
virtual bool | nearBondGap (const SiLocalPosition &, double) const override |
Test if near bond gap within tolerances, only relevant for SCT. More... | |
double | pitch (const SiCellId &cellId) const |
double | stripLength (const SiCellId &cellId) const |
virtual double | deadAreaUpperBoundary () const override |
DEPRECATED for StripBoxDesign; no dead area. More... | |
virtual double | deadAreaLowerBoundary () const override |
give lower boundary of dead area More... | |
virtual double | deadAreaLength () const override |
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 | cells () const |
number of readout stips within module side: More... | |
int | shift () const |
number of edge strips before first readout strip. More... | |
void | setMother (SCT_ModuleSideDesign *mother) |
const SCT_ModuleSideDesign * | getMother () const |
const std::map< int, const SCT_ModuleSideDesign * > & | getChildren () const |
void | addChildDesign (int index, const SCT_ModuleSideDesign *element) |
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... | |
virtual Amg::Vector3D | sensorCenter () const |
Return the centre of a sensor in the local reference 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... | |
Protected Attributes | |
SCT_ReadoutScheme | m_scheme |
InDetDD::DetectorType | m_detectorType {Undefined} |
Private Attributes | |
int | m_nRows |
int | m_nStrips |
double | m_pitch |
double | m_length |
double | m_zShift |
Trk::RectangleBounds | m_bounds |
bool | m_swapStripReadout |
const SCT_ModuleSideDesign * | m_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 |
Definition at line 31 of file StripBoxDesign.h.
|
inherited |
Enumerator | |
---|---|
xAxis | |
yAxis | |
zAxis |
Definition at line 59 of file DetectorDesign.h.
InDetDD::StripBoxDesign::StripBoxDesign | ( | ) |
InDetDD::StripBoxDesign::StripBoxDesign | ( | const SiDetectorDesign::Axis | stripDirection, |
const SiDetectorDesign::Axis | thicknessDirection, | ||
const double | thickness, | ||
const int | readoutSide, | ||
const InDetDD::CarrierType | carrier, | ||
const int | nRows, | ||
const int | nStrips, | ||
const double | pitch, | ||
const double | length, | ||
InDetDD::DetectorType | detectorType = InDetDD::Undefined , |
||
const double | zShift = 0.0 |
||
) |
Definition at line 14 of file StripBoxDesign.cxx.
|
default |
InDetDD::StripBoxDesign::StripBoxDesign | ( | const StripBoxDesign & | design | ) |
|
inlineinherited |
Definition at line 292 of file SCT_ModuleSideDesign.h.
|
overridevirtual |
Element boundary.
Implements InDetDD::DetectorDesign.
Definition at line 85 of file StripBoxDesign.cxx.
|
inlineinherited |
Return carrier type (ie electrons or holes)
Definition at line 275 of file DetectorDesign.h.
DEPRECATED: only used in a stupid example (2014) Check if cell is in range.
Returns the original cellId if it is in range, otherwise it
Reimplemented from InDetDD::SCT_ModuleSideDesign.
Definition at line 197 of file StripBoxDesign.cxx.
|
overridevirtual |
position -> id
Implements InDetDD::DetectorDesign.
Definition at line 91 of file StripBoxDesign.cxx.
|
inlineinherited |
number of readout stips within module side:
Definition at line 228 of file SCT_ModuleSideDesign.h.
|
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.
|
inlineinherited |
number of crystals within module side:
Definition at line 216 of file SCT_ModuleSideDesign.h.
|
overridevirtual |
give length of dead area
Implements InDetDD::SCT_ModuleSideDesign.
Definition at line 237 of file StripBoxDesign.h.
|
overridevirtual |
give lower boundary of dead area
Implements InDetDD::SCT_ModuleSideDesign.
Definition at line 233 of file StripBoxDesign.h.
|
overridevirtual |
DEPRECATED for StripBoxDesign; no dead area.
Implements InDetDD::SCT_ModuleSideDesign.
Definition at line 229 of file StripBoxDesign.h.
|
inlineinherited |
local axis corresponding to depth direction:
Definition at line 267 of file DetectorDesign.h.
|
inlineinherited |
Definition at line 287 of file DetectorDesign.h.
|
inline |
Definition at line 169 of file StripBoxDesign.h.
|
inlineoverridevirtual |
Reimplemented from InDetDD::SCT_ModuleSideDesign.
Definition at line 173 of file StripBoxDesign.h.
|
overridevirtual |
DEPRECATED: Unused (2014)
Implements InDetDD::DetectorDesign.
Definition at line 235 of file StripBoxDesign.cxx.
|
overridevirtual |
Give end points of the strip that covers the given position.
Implements InDetDD::SCT_ModuleSideDesign.
Definition at line 140 of file StripBoxDesign.cxx.
|
inlineinherited |
local axis corresponding to eta direction:
Definition at line 259 of file DetectorDesign.h.
|
overridevirtual |
Implements InDetDD::DetectorDesign.
Definition at line 225 of file StripBoxDesign.cxx.
|
inlineinherited |
Definition at line 283 of file DetectorDesign.h.
|
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.
|
inlineinherited |
Definition at line 287 of file SCT_ModuleSideDesign.h.
|
inlineinherited |
Definition at line 283 of file SCT_ModuleSideDesign.h.
|
finalvirtual |
Get the strip and row number of the cell.
Can be used as auto [strip, row] = getStripRow(cellId);
cellId | The SiCellId |
Reimplemented from InDetDD::SCT_ModuleSideDesign.
Definition at line 51 of file StripBoxDesign.cxx.
|
overridevirtual |
check if the position is in active area
Implements InDetDD::SCT_ModuleSideDesign.
Definition at line 159 of file StripBoxDesign.cxx.
|
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.
|
overridevirtual |
Method to calculate length of a module.
Implements InDetDD::DetectorDesign.
Definition at line 209 of file StripBoxDesign.cxx.
|
overridevirtual |
id -> position
Implements InDetDD::SCT_ModuleSideDesign.
Definition at line 113 of file StripBoxDesign.cxx.
|
overridevirtual |
Implements InDetDD::SCT_ModuleSideDesign.
Definition at line 124 of file StripBoxDesign.cxx.
|
overridevirtual |
Method to calculate maximum width of a module.
Implements InDetDD::DetectorDesign.
Definition at line 221 of file StripBoxDesign.cxx.
|
overridevirtual |
Method to calculate minimum width of a module.
Implements InDetDD::DetectorDesign.
Definition at line 217 of file StripBoxDesign.cxx.
|
finaloverridevirtual |
|
inlineoverridevirtual |
Test if near bond gap within tolerances, only relevant for SCT.
Implements InDetDD::SiDetectorDesign.
Definition at line 204 of file StripBoxDesign.h.
|
overridevirtual |
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 62 of file StripBoxDesign.cxx.
|
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.
StripBoxDesign& InDetDD::StripBoxDesign::operator= | ( | const StripBoxDesign & | design | ) |
|
overridevirtual |
Return strip width, centre, length etc. Hard to find if this is used or not.
Implements InDetDD::DetectorDesign.
Definition at line 179 of file StripBoxDesign.cxx.
|
inlineinherited |
local axis corresponding to phi direction:
Definition at line 263 of file DetectorDesign.h.
|
overridevirtual |
Helper method for stereo angle computation, DEPRECATED.
Implements InDetDD::SiDetectorDesign.
Definition at line 229 of file StripBoxDesign.cxx.
|
inlineoverridevirtual |
Pitch in phi direction.
Implements InDetDD::DetectorDesign.
Definition at line 200 of file StripBoxDesign.h.
Definition at line 196 of file StripBoxDesign.h.
|
inlineoverridevirtual |
Pitch in phi direction.
Implements InDetDD::DetectorDesign.
Definition at line 192 of file StripBoxDesign.h.
|
inlineinherited |
Definition at line 279 of file DetectorDesign.h.
|
overridevirtual |
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 190 of file StripBoxDesign.cxx.
SiLocalPosition InDetDD::StripBoxDesign::positionFromStrip | ( | const SiCellId & | cellId | ) | const |
Definition at line 184 of file StripBoxDesign.cxx.
|
inlineoverridevirtual |
diode id -> readout id
Reimplemented from InDetDD::SCT_ModuleSideDesign.
Definition at line 209 of file StripBoxDesign.h.
|
inlineoverridevirtualinherited |
position -> id
Implements InDetDD::DetectorDesign.
Definition at line 256 of file SCT_ModuleSideDesign.h.
|
inlineinherited |
ReadoutSide.
+1 = postive depth side, -1 = negative depth side.
Definition at line 291 of file DetectorDesign.h.
|
inlineoverridevirtual |
Reimplemented from InDetDD::SCT_ModuleSideDesign.
Definition at line 216 of file StripBoxDesign.h.
|
overridevirtual |
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 169 of file StripBoxDesign.cxx.
|
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::StripStereoAnnulusDesign, and InDetDD::StripAnnulusDesign.
Definition at line 60 of file DetectorDesign.cxx.
|
inherited |
Definition at line 109 of file SCT_ModuleSideDesign.cxx.
|
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.
|
virtualinherited |
Shape of element.
Reimplemented in InDetDD::StripStereoAnnulusDesign, and InDetDD::SCT_ForwardModuleSideDesign.
Definition at line 96 of file DetectorDesign.cxx.
|
inlineinherited |
number of edge strips before first readout strip.
Definition at line 232 of file SCT_ModuleSideDesign.h.
|
inlinevirtualinherited |
Give strip angle in the reco frame.
Reimplemented in InDetDD::StripStereoAnnulusDesign, and InDetDD::SCT_ForwardModuleSideDesign.
Definition at line 132 of file SiDetectorDesign.h.
|
inlineoverridevirtual |
Reimplemented from InDetDD::SCT_ModuleSideDesign.
Definition at line 220 of file StripBoxDesign.h.
|
overridevirtual |
only relevant for SCT.
Return strip1Dim(int strip, int row) if SCT; otherwise -1
Reimplemented from InDetDD::SCT_ModuleSideDesign.
Definition at line 58 of file StripBoxDesign.cxx.
|
inlineoverridevirtual |
give the strip pitch (For Forward returns pitch at center)
Implements InDetDD::SCT_ModuleSideDesign.
Definition at line 188 of file StripBoxDesign.h.
Definition at line 184 of file StripBoxDesign.h.
|
inlineoverridevirtual |
give the strip pitch (dependence on position needed for forward)
Implements InDetDD::SCT_ModuleSideDesign.
Definition at line 180 of file StripBoxDesign.h.
|
overridevirtual |
Reimplemented from InDetDD::SCT_ModuleSideDesign.
Definition at line 245 of file StripBoxDesign.h.
|
overridevirtual |
Return true if hit local direction is the same as readout direction.
Reimplemented from InDetDD::SCT_ModuleSideDesign.
Definition at line 241 of file StripBoxDesign.h.
|
inlineinherited |
Method which returns thickness of the silicon wafer.
Definition at line 271 of file DetectorDesign.h.
|
inlinefinaloverridevirtual |
Type of element.
Reimplemented from InDetDD::DetectorDesign.
Definition at line 224 of file StripBoxDesign.h.
|
overridevirtual |
Method to calculate average width of a module.
Implements InDetDD::DetectorDesign.
Definition at line 213 of file StripBoxDesign.cxx.
|
private |
Definition at line 163 of file StripBoxDesign.h.
|
privateinherited |
Definition at line 240 of file DetectorDesign.h.
|
privateinherited |
Definition at line 210 of file SCT_ModuleSideDesign.h.
|
privateinherited |
Definition at line 238 of file DetectorDesign.h.
|
privateinherited |
Definition at line 244 of file DetectorDesign.h.
|
protectedinherited |
Definition at line 197 of file SCT_ModuleSideDesign.h.
|
privateinherited |
Definition at line 236 of file DetectorDesign.h.
|
privateinherited |
Definition at line 243 of file DetectorDesign.h.
|
private |
Definition at line 161 of file StripBoxDesign.h.
|
privateinherited |
Definition at line 208 of file SCT_ModuleSideDesign.h.
|
private |
Definition at line 158 of file StripBoxDesign.h.
|
private |
Definition at line 159 of file StripBoxDesign.h.
|
privateinherited |
Definition at line 237 of file DetectorDesign.h.
|
privateinherited |
Definition at line 242 of file DetectorDesign.h.
|
private |
Definition at line 160 of file StripBoxDesign.h.
|
privateinherited |
Definition at line 246 of file DetectorDesign.h.
|
protectedinherited |
Definition at line 196 of file SCT_ModuleSideDesign.h.
|
privateinherited |
Definition at line 204 of file SCT_ModuleSideDesign.h.
|
privateinherited |
Definition at line 239 of file DetectorDesign.h.
|
private |
Definition at line 162 of file StripBoxDesign.h.