 |
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include <GaudiKernel/SystemOfUnits.h>
13 #ifndef SIMULATIONBASE
14 # include "Acts/Surfaces/Surface.hpp"
15 # include "Acts/Surfaces/TrapezoidBounds.hpp"
23 ostr<<
"chamber shortWidth/longWidth/length [mm]: "<<(2.*
pars.halfShortWidth)<<
"/";
24 ostr<<(2.*
pars.halfLongWidth)<<
"/"<<(2.*
pars.halfHeight)<<std::endl;
30 m_pars{std::move(
args)} {
41 return StatusCode::FAILURE;
43 #ifndef SIMULATIONBASE
51 IdentifierHash layHash{
layer};
54 return StatusCode::FAILURE;
56 ATH_CHECK(insertTransform<MmReadoutElement>(layHash));
57 #ifndef SIMULATIONBASE
62 design.longHalfHeight(),
67 #ifndef SIMULATIONBASE
70 return StatusCode::SUCCESS;
78 #if defined(FLATTEN) && defined(__GNUC__)
87 const IdentifierHash lHash =
layerHash(measHash);
88 if (
static_cast<unsigned int>(lHash) <
m_pars.
layers.size()) {
91 ATH_MSG_WARNING(__FILE__<<
":"<<__LINE__<<
" The layer hash "<<
static_cast<unsigned int>(lHash)
92 <<
" is out of range. Maximum range "<<
m_pars.
layers.size());
97 #if defined(FLATTEN) && defined(__GNUC__)
106 const IdentifierHash lHash =
layerHash(measHash);
107 if (
static_cast<unsigned int>(lHash) <
m_pars.
layers.size()) {
110 ATH_MSG_WARNING(__FILE__<<
":"<<__LINE__<<
" The layer hash "<<
static_cast<unsigned int>(lHash)
111 <<
" is out of range. Maximum range "<<
m_pars.
layers.size());
115 #if defined(FLATTEN) && defined(__GNUC__)
124 const IdentifierHash lHash =
layerHash(measHash);
125 if (
static_cast<unsigned int>(lHash) <
m_pars.
layers.size()) {
128 ATH_MSG_WARNING(__FILE__<<
":"<<__LINE__<<
" The layer hash "<<
static_cast<unsigned int>(lHash)
129 <<
" 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
Amg::Vector3D localStripRightEdge(unsigned int stripNum, bool phiView=false) const
Returns the position of the right strip edge at (negative y in the strip design description) in the l...
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.
Amg::Vector3D localStripPosition(unsigned int stripum, bool phiView=false) const
Returns the position of the strip centre expressed in the frame of the local readout plane.
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
Amg::Vector3D localStripLeftEdge(unsigned int stripNum, bool phiView=false) const
Returns the position of the strip edge at (positive y in the strip design description) in the local c...
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
std::shared_ptr< Acts::SurfaceBoundFactory > layerBounds
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
#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.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...