ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MuonGMR4::StripLayer Class Reference

#include <StripLayer.h>

Collaboration diagram for MuonGMR4::StripLayer:

Public Member Functions

 StripLayer (const Amg::Transform3D &layerTransform, StripDesignPtr design, const IdentifierHash hash)
 
const Amg::Transform3DtoOrigin () const
 Returns the transformation to go from the strip layer center to the origin of the Strip chamber. More...
 
const StripDesigndesign () const
 Returns the underlying strip design. More...
 
const IdentifierHash hash () const
 Returns the hash of the strip layer. More...
 
Amg::Vector3D stripPosition (unsigned int stripNum) const
 Returns the position of the strip expressed in the chamber frame. More...
 
Amg::Vector3D localStripPos (unsigned int stripum) const
 Returns the position of the strip expressed in the local frame. More...
 
Amg::Vector3D localStripLeftEdge (unsigned int stripNum) const
 Returns the position of the left strip edge (positive local y) expressed in the local frame. More...
 
Amg::Vector3D localStripRightEdge (unsigned int stripNum) const
 Returns the position of the right strip edge (negative local y) exoressed in the local frame. More...
 
bool operator< (const StripLayer &other) const
 

Private Attributes

Amg::Transform3D m_transform {Amg::Transform3D::Identity()}
 
StripDesignPtr m_design {}
 
IdentifierHash m_hash {}
 

Detailed Description

Definition at line 10 of file StripLayer.h.

Constructor & Destructor Documentation

◆ StripLayer()

MuonGMR4::StripLayer::StripLayer ( const Amg::Transform3D layerTransform,
StripDesignPtr  design,
const IdentifierHash  hash 
)

Definition at line 14 of file StripLayer.cxx.

16  :
17  m_transform{layerTransform},
18  m_design{std::move(design)},
19  m_hash{hash} {
20  }

Member Function Documentation

◆ design()

const StripDesign& MuonGMR4::StripLayer::design ( ) const

Returns the underlying strip design.

◆ hash()

const IdentifierHash MuonGMR4::StripLayer::hash ( ) const

Returns the hash of the strip layer.

◆ localStripLeftEdge()

Amg::Vector3D MuonGMR4::StripLayer::localStripLeftEdge ( unsigned int  stripNum) const

Returns the position of the left strip edge (positive local y) expressed in the local frame.

◆ localStripPos()

Amg::Vector3D MuonGMR4::StripLayer::localStripPos ( unsigned int  stripum) const

Returns the position of the strip expressed in the local frame.

◆ localStripRightEdge()

Amg::Vector3D MuonGMR4::StripLayer::localStripRightEdge ( unsigned int  stripNum) const

Returns the position of the right strip edge (negative local y) exoressed in the local frame.

◆ operator<()

bool MuonGMR4::StripLayer::operator< ( const StripLayer other) const

Definition at line 21 of file StripLayer.cxx.

21  {
22  if (hash() != other.hash()) {
23  return hash() < other.hash();
24  }
25  const GeoTrf::TransformSorter sorter{};
26  const int trf = sorter.compare(m_transform, other.m_transform);
27  if (trf) {
28  return trf <0;
29  }
30  return (*m_design) < (*other.m_design);
31  }

◆ stripPosition()

Amg::Vector3D MuonGMR4::StripLayer::stripPosition ( unsigned int  stripNum) const

Returns the position of the strip expressed in the chamber frame.

◆ toOrigin()

const Amg::Transform3D& MuonGMR4::StripLayer::toOrigin ( ) const

Returns the transformation to go from the strip layer center to the origin of the Strip chamber.

Member Data Documentation

◆ m_design

StripDesignPtr MuonGMR4::StripLayer::m_design {}
private

Definition at line 36 of file StripLayer.h.

◆ m_hash

IdentifierHash MuonGMR4::StripLayer::m_hash {}
private

Definition at line 37 of file StripLayer.h.

◆ m_transform

Amg::Transform3D MuonGMR4::StripLayer::m_transform {Amg::Transform3D::Identity()}
private

Definition at line 35 of file StripLayer.h.


The documentation for this class was generated from the following files:
MuonGMR4::StripLayer::m_hash
IdentifierHash m_hash
Definition: StripLayer.h:37
MuonGMR4::StripLayer::m_transform
Amg::Transform3D m_transform
Definition: StripLayer.h:35
postInclude.sorter
sorter
Definition: postInclude.SortInput.py:23
MuonGMR4::StripLayer::m_design
StripDesignPtr m_design
Definition: StripLayer.h:36
MuonGMR4::StripLayer::design
const StripDesign & design() const
Returns the underlying strip design.
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonGMR4::StripLayer::hash
const IdentifierHash hash() const
Returns the hash of the strip layer.
CaloLCW_tf.trf
trf
Definition: CaloLCW_tf.py:20