|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #include <GaudiKernel/SystemOfUnits.h>
14 #ifndef SIMULATIONBASE
15 # include "Acts/Surfaces/Surface.hpp"
16 # include "Acts/Surfaces/TrapezoidBounds.hpp"
24 ostr<<
"chamber shortWidth/longWidth/length [mm]: "<<(2.*
pars.halfShortWidth)<<
"/";
25 ostr<<(2.*
pars.halfLongWidth)<<
"/"<<(2.*
pars.halfHeight)<<std::endl;
31 m_pars{std::move(
args)} {
42 return StatusCode::FAILURE;
44 #ifndef SIMULATIONBASE
51 IdentifierHash layHash{
layer};
54 return StatusCode::FAILURE;
56 ATH_CHECK(insertTransform<MmReadoutElement>(layHash));
57 #ifndef SIMULATIONBASE
61 design.longHalfHeight(),
66 #ifndef SIMULATIONBASE
69 return StatusCode::SUCCESS;
78 const IdentifierHash lHash =
layerHash(measHash);
79 if (
static_cast<unsigned int>(lHash) <
m_pars.
layers.size()) {
82 ATH_MSG_WARNING(__FILE__<<
":"<<__LINE__<<
" The layer hash "<<
static_cast<unsigned int>(lHash)
83 <<
" is out of range. Maximum range "<<
m_pars.
layers.size());
89 const IdentifierHash lHash =
layerHash(measHash);
90 if (
static_cast<unsigned int>(lHash) <
m_pars.
layers.size()) {
93 ATH_MSG_WARNING(__FILE__<<
":"<<__LINE__<<
" The layer hash "<<
static_cast<unsigned int>(lHash)
94 <<
" is out of range. Maximum range "<<
m_pars.
layers.size());
99 const IdentifierHash lHash =
layerHash(measHash);
100 if (
static_cast<unsigned int>(lHash) <
m_pars.
layers.size()) {
103 ATH_MSG_WARNING(__FILE__<<
":"<<__LINE__<<
" The layer hash "<<
static_cast<unsigned int>(lHash)
104 <<
" is out of range. Maximum range "<<
m_pars.
layers.size());
MmReadoutElement::parameterBook parameterBook
Amg::Transform3D fromGapToChamOrigin(const IdentifierHash &layerHash) const
Set of parameters to describe a RPC chamber.
const Amg::Transform3D & toOrigin() const
Returns the transformation to go from the strip layer center to the origin of the Strip chamber.
The MuonReadoutElement is an abstract class representing the geometry representing the muon detector.
StatusCode createGeoTransform()
double halfShortWidth
width of the lower edge
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
Amg::Vector3D stripPosition(const ActsGeometryContext &ctx, const Identifier &measId) const
Returns the position of the strip center.
const Muon::IMuonIdHelperSvc * idHelperSvc() const
Returns the pointer to the muonIdHelperSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
static unsigned int stripNumber(const IdentifierHash &measHash)
double halfHeight
length in the radial direction
Eigen::Affine3d Transform3D
MsgStream & operator<<(MsgStream &out, const ActsUtils::Stat &stat)
double halfLongWidth
width of the upper edge
Include the GeoPrimitives which need to be put first.
std::vector< StripLayerPtr > layers
Pointers to the strip layers.
Amg::Vector3D leftStripEdge(const ActsGeometryContext &ctx, const Identifier &measId) const
Returns the global position of the strip edge.
const StripLayer & stripLayer(const Identifier &measId) const
const parameterBook & getParameters() const
Amg::Vector3D localStripPos(unsigned int stripum) const
Returns the position of the strip expressed in the local frame.
static IdentifierHash geoTransformHash()
Returns the hash that is associated with the surface cache holding the transformation that is placing...
Identifier identify() const override final
Return the athena identifier.
Eigen::Matrix< double, 3, 1 > Vector3D
StatusCode planeSurfaceFactory(const IdentifierHash &hash, std::shared_ptr< Acts::PlanarBounds > pBounds)
IdentifierHash layerHash(const Identifier &measId) const override final
ActsTrk::SurfaceBoundSetPtr< Acts::TrapezoidBounds > layerBounds
#define ATH_MSG_WARNING(x)
Amg::Vector3D rightStripEdge(const ActsGeometryContext &ctx, const Identifier &measId) const
Returns the global position of the strip edge.
StatusCode initElement() override final
Element initialization.
const Amg::Transform3D & localToGlobalTrans(const ActsGeometryContext &ctx) const
Returns the local to global transformation into the ATLAS coordinate system.
Amg::Vector3D localStripLeftEdge(unsigned int stripNum) const
Returns the position of the left strip edge (positive local y) expressed in the local frame.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Amg::Vector3D localStripRightEdge(unsigned int stripNum) const
Returns the position of the right strip edge (negative local y) exoressed in the local frame.