 |
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());
Amg::Vector3D rightStripEdge(const ActsTrk::GeometryContext &ctx, const Identifier &measId) const
Returns the global position of the strip edge.
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()
Amg::Vector3D stripPosition(const ActsTrk::GeometryContext &ctx, const Identifier &measId) const
Returns the position of the strip center.
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...
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
const Amg::Transform3D & localToGlobalTrans(const ActsTrk::GeometryContext &ctx) const
Returns the local to global transformation into the ATLAS coordinate system.
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...
std::vector< StripLayerPtr > layers
Pointers to the strip layers.
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)
StatusCode initElement() override final
Element initialization.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Amg::Vector3D leftStripEdge(const ActsTrk::GeometryContext &ctx, const Identifier &measId) const
Returns the global position of the strip edge.