ATLAS Offline Software
MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.cxx
Go to the documentation of this file.
1 
2 /*
3  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
4 */
5 #include "GeoModelMmTest.h"
9 #include <fstream>
10 
11 using namespace ActsTrk;
12 
13 namespace MuonGMR4{
14 
15 GeoModelMmTest::GeoModelMmTest(const std::string& name, ISvcLocator* pSvcLocator):
16  AthHistogramAlgorithm(name,pSvcLocator) {}
17 
19  ATH_CHECK(m_idHelperSvc.retrieve());
22  ATH_CHECK(m_tree.init(this));
23 
24  const MmIdHelper& id_helper{m_idHelperSvc->mmIdHelper()};
25  for (const std::string& testCham : m_selectStat) {
26  if (testCham.size() != 6) {
27  ATH_MSG_FATAL("Wrong format given " << testCham);
28  return StatusCode::FAILURE;
29  }
31  std::string statName = testCham.substr(0, 3);
32  unsigned int statEta = std::atoi(testCham.substr(3, 1).c_str()) *
33  (testCham[4] == 'A' ? 1 : -1);
34  unsigned int statPhi = std::atoi(testCham.substr(5, 1).c_str());
35  bool is_valid{false};
36  const Identifier eleId = id_helper.elementID(statName, statEta, statPhi, is_valid);
37  if (!is_valid) {
38  ATH_MSG_FATAL("Failed to deduce a station name for " << testCham);
39  return StatusCode::FAILURE;
40  }
41  std::copy_if(id_helper.detectorElement_begin(),
42  id_helper.detectorElement_end(),
43  std::inserter(m_testStations, m_testStations.end()),
44  [&](const Identifier& id) {
45  return id_helper.elementID(id) == eleId;
46  });
47  }
49  if (m_testStations.empty()){
50  std::copy(id_helper.detectorElement_begin(),
51  id_helper.detectorElement_end(),
52  std::inserter(m_testStations, m_testStations.end()));
53  } else {
54  std::stringstream sstr{};
55  for (const Identifier& id : m_testStations) {
56  sstr<<" *** "<<m_idHelperSvc->toString(id)<<std::endl;
57  }
58  ATH_MSG_DEBUG("Test only the following stations "<<std::endl<<sstr.str());
59  }
61  return StatusCode::SUCCESS;
62 }
65  return StatusCode::SUCCESS;
66 }
68  const EventContext& ctx{Gaudi::Hive::currentContext()};
69  SG::ReadHandle<ActsGeometryContext> geoContextHandle{m_geoCtxKey, ctx};
70  ATH_CHECK(geoContextHandle.isPresent());
71  const ActsGeometryContext& gctx{*geoContextHandle};
72 
73  for (const Identifier& test_me : m_testStations) {
74  ATH_MSG_DEBUG("Test retrieval of Mm detector element "<<m_idHelperSvc->toStringDetEl(test_me));
75  const MmReadoutElement* reElement = m_detMgr->getMmReadoutElement(test_me);
76  if (!reElement) {
77  continue;
78  }
80  if (reElement->identify() != test_me) {
81  ATH_MSG_FATAL("Expected to retrieve "<<m_idHelperSvc->toStringDetEl(test_me)
82  <<". But got instead "<<m_idHelperSvc->toStringDetEl(reElement->identify()));
83  return StatusCode::FAILURE;
84  }
85  const Amg::Transform3D globToLocal{reElement->globalToLocalTrans(gctx)};
86  const Amg::Transform3D& localToGlob{reElement->localToGlobalTrans(gctx)};
88  if (!Amg::doesNotDeform(globToLocal * localToGlob)) {
89  ATH_MSG_FATAL("Closure test failed for "<<m_idHelperSvc->toStringDetEl(test_me)
90  <<" "<<Amg::toString(globToLocal * localToGlob));
91  return StatusCode::FAILURE;
92  }
93  const MmIdHelper& id_helper{m_idHelperSvc->mmIdHelper()};
94  for (unsigned int layer = 1; layer <= reElement->nGasGaps(); ++layer) {
95  const IdentifierHash layerHash{MuonGMR4::MmReadoutElement::createHash(layer, 0)};
96  const int numStrips = reElement->numStrips(layerHash);
97  const int fStrip = reElement->firstStrip(layerHash);
98  const int lStrip = fStrip+numStrips-1;
99 
100  for (int strip = fStrip; strip <= lStrip; ++strip) {
101  bool isValid{false};
102 
103  const Identifier chId = id_helper.channelID(reElement->identify(),
104  reElement->multilayer(),
105  layer, strip, isValid);
106  if (!isValid) {
107  continue;
108  }
109 
111  const IdentifierHash channelHash = reElement->measurementHash(chId);
112  const IdentifierHash layHash = reElement->layerHash(chId);
113  const Identifier backCnv = reElement->measurementId(channelHash);
114  if (backCnv != chId) {
115  ATH_MSG_FATAL("The back and forth conversion of "<<m_idHelperSvc->toString(chId)
116  <<" failed. Got "<<m_idHelperSvc->toString(backCnv));
117  return StatusCode::FAILURE;
118  }
119  if (layHash != reElement->layerHash(channelHash)) {
120  ATH_MSG_FATAL("Constructing the layer hash from the identifier "<<
121  m_idHelperSvc->toString(chId)<<" leads to different layer hashes "<<
122  layHash<<" vs. "<< reElement->layerHash(channelHash));
123  return StatusCode::FAILURE;
124  }
125  const MuonGMR4::StripDesign& design{reElement->stripLayer(layHash).design()};
126  const Amg::Vector3D stripPos = reElement->stripPosition(gctx, channelHash);
127  const Amg::Vector3D locStripPos = reElement->globalToLocalTrans(gctx, layHash) * stripPos;
128  const Amg::Vector2D stripPos2D{locStripPos.block<2,1>(0,0)};
129  const double stripLen{design.stripLength(strip)};
130  if (stripLen && (design.stripNumber(stripPos2D) != strip ||
131  design.stripNumber(stripPos2D - 0.49 * stripLen * Amg::Vector2D::UnitY()) != strip ||
132  design.stripNumber(stripPos2D + 0.49 * stripLen * Amg::Vector2D::UnitY()) != strip)) {
133  ATH_MSG_FATAL("Conversion channel -> strip -> channel failed for "
134  <<m_idHelperSvc->toString(chId)<<" "<<Amg::toString(stripPos)<<", local: "
135  <<Amg::toString(locStripPos)<<" got "<<design.stripNumber(stripPos2D)
136  <<", first strip: "<<fStrip<<std::endl<<design);
137  return StatusCode::FAILURE;
138  }
139  ATH_MSG_VERBOSE("first strip "<<fStrip<<", numStrips "<< numStrips << ", channel "
140  << m_idHelperSvc->toString(chId) <<", strip position " << Amg::toString(stripPos));
141  }
142  }
143  ATH_CHECK(dumpToTree(ctx,gctx,reElement));
144  }
145 
146  return StatusCode::SUCCESS;
147 }
148 StatusCode GeoModelMmTest::dumpToTree(const EventContext& ctx,
149  const ActsGeometryContext& gctx,
150  const MmReadoutElement* reElement) {
151 
152 
153 
154  m_stIndex = reElement->stationName();
155  m_stEta = reElement->stationEta();
156  m_stPhi = reElement->stationPhi();
157  m_stML = reElement->multilayer();
158  m_chamberDesign = reElement->chamberDesign();
162  const Amg::Transform3D& transform{reElement->localToGlobalTrans(gctx)};
164  m_alignableNode = reElement->alignableTransform()->getDefTransform();
165 
167  m_moduleHeight = reElement->moduleHeight();
168  m_moduleWidthS = reElement->moduleWidthL();
169  m_moduleWidthL = reElement->moduleWidthS();
170 
171  const MmIdHelper& id_helper{m_idHelperSvc->mmIdHelper()};
172  for (unsigned int layer = 1; layer <= reElement->nGasGaps(); ++layer) {
173 
174  const IdentifierHash layHash{MuonGMR4::MmReadoutElement::createHash(layer, 0)};
175  unsigned int numStrips = reElement->numStrips(layHash);
176  unsigned int fStrip = reElement->firstStrip(layHash);
177  unsigned int lStrip = fStrip+numStrips-1;
178 
179  for (unsigned int strip = fStrip; strip <= lStrip ; ++strip) {
180  bool isValid{false};
181  const Identifier chId = id_helper.channelID(reElement->identify(),
182  reElement->multilayer(),
183  layer, strip, isValid);
184  if (!isValid) {
185  ATH_MSG_WARNING("Invalid Identifier detected for readout element "
186  <<m_idHelperSvc->toStringDetEl(reElement->identify())
187  <<" layer: "<<layer<<" strip: "<<strip);
188  continue;
189  }
190  const IdentifierHash measHash{reElement->measurementHash(chId)};
191 
192  const MuonGMR4::StripDesign& design{reElement->stripLayer(measHash).design()};
193  m_locStripCenter.push_back(design.center(strip).value_or(Amg::Vector2D::Zero()));
194  m_isStereo.push_back(design.hasStereoAngle());
195  m_stripCenter.push_back(reElement->stripPosition(gctx, measHash));
196  m_stripLeftEdge.push_back(reElement->leftStripEdge(gctx,measHash));
197  m_stripRightEdge.push_back(reElement->rightStripEdge(gctx,measHash));
198  m_stripLength.push_back(reElement->stripLength(measHash));
200  m_channel.push_back(strip);
201 
202  m_ActiveWidthS = reElement->gapLengthS(measHash);
203  m_ActiveWidthL = reElement->gapLengthL(measHash);
204  m_ActiveHeightR = reElement->gapHeight(measHash);
205 
206  if (strip != fStrip) continue;
207  const Amg::Transform3D stripGlobToLoc = reElement->globalToLocalTrans(gctx, chId);
208  ATH_MSG_VERBOSE("The global to local transformation on layers is: " << Amg::toString(stripGlobToLoc));
209  ATH_MSG_VERBOSE("The local to global transformation on layers is: " << Amg::toString(reElement->localToGlobalTrans(gctx, chId)));
210  m_stripRot.push_back(stripGlobToLoc);
212  m_firstStripPos.push_back(design.firstStripPos());
213  m_readoutFirstStrip.push_back(design.firstStripNumber());
214  m_readoutSide.push_back(reElement->readoutSide(measHash));
215 
216  }
217 
218  }
219  return m_tree.fill(ctx) ? StatusCode::SUCCESS : StatusCode::FAILURE;
220 }
221 
222 }
223 
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
MuonGMR4::MmReadoutElement::moduleWidthS
double moduleWidthS() const
Returns the width at the short edge.
MuonGMR4::GeoModelMmTest::m_stripRightEdge
MuonVal::ThreeVectorBranch m_stripRightEdge
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:77
MuonGMR4::MmReadoutElement
Definition: MmReadoutElement.h:18
MuonGMR4::MmReadoutElement::stripLength
double stripLength(const IdentifierHash &measHash) const
Returns the strip length.
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
MuonGMR4::StripDesign
Definition: StripDesign.h:30
MuonGMR4::GeoModelMmTest::m_channel
MuonVal::VectorBranch< uint > & m_channel
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:81
GeoModelMmTest.h
MuonGMR4::MmReadoutElement::createHash
static IdentifierHash createHash(const int gasGap, const int strip)
MuonGMR4::GeoModelMmTest::m_readoutSide
MuonVal::VectorBranch< int > & m_readoutSide
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:69
MuonGMR4::MmReadoutElement::nGasGaps
unsigned int nGasGaps() const
Returns the number of gas gaps.
MuonVal::MuonTesterTree::init
StatusCode init(OWNER *instance)
Initialize method.
MuonGMR4::GeoModelMmTest::m_readoutFirstStrip
MuonVal::VectorBranch< unsigned > & m_readoutFirstStrip
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:70
ActsGeometryContext.h
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
MuonGMR4::GeoModelMmTest::m_chamberDesign
MuonVal::ScalarBranch< std::string > & m_chamberDesign
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:57
MuonGMR4::MmReadoutElement::gapLengthS
double gapLengthS(const IdentifierHash &layerHash) const
Length of gas Gap on short side.
MuonGMR4::MuonReadoutElement::chamberDesign
std::string chamberDesign() const
The chamber design refers to the construction parameters of a readout element.
MuonGMR4::GeoModelMmTest::m_isStereo
MuonVal::VectorBranch< bool > & m_isStereo
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:74
MuonGMR4::MuonReadoutElement::globalToLocalTrans
Amg::Transform3D globalToLocalTrans(const ActsGeometryContext &ctx) const
Transformations to translate between local <-> global coordinates.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx:73
MuonGMR4::MmReadoutElement::gapLengthL
double gapLengthL(const IdentifierHash &layerHash) const
Length of gas Gap on long side.
MuonGMR4::MmReadoutElement::numStrips
unsigned int numStrips(const IdentifierHash &layerHash) const
Returns the number of total active strips.
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
isValid
bool isValid(const T &p)
Definition: AtlasPID.h:214
MuonGMR4::GeoModelMmTest::m_ActiveWidthS
MuonVal::ScalarBranch< float > & m_ActiveWidthS
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:89
MuonGMR4::GeoModelMmTest::m_selectStat
Gaudi::Property< std::vector< std::string > > m_selectStat
String should be formated like MM_<Large/Small Sector + Module type><Quadruplet number>
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:42
MuonGMR4::GeoModelMmTest::m_stEta
MuonVal::ScalarBranch< short > & m_stEta
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:54
AthCommonDataStore< AthCommonMsg< Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
MuonGMR4::GeoModelMmTest::m_ActiveHeightR
MuonVal::ScalarBranch< float > & m_ActiveHeightR
GasGap Lengths for debug.
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:88
MuonVal::ThreeVectorBranch::push_back
void push_back(const Amg::Vector3D &vec)
interface using the Amg::Vector3D
Definition: ThreeVectorBranch.cxx:23
MuonGMR4::GeoModelMmTest::m_tree
MuonVal::MuonTesterTree m_tree
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:50
MuonGMR4::GeoModelMmTest::m_stripRot
MuonVal::CoordSystemsBranch m_stripRot
Rotation matrix of the respective strip layers.
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:66
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
MuonGMR4::MmReadoutElement::multilayer
int multilayer() const
Returns the multi layer of the element [1-2].
MuonGMR4
A muon chamber is a collection of readout elements belonging to the same station.
Definition: ChamberAssembleTool.h:16
MuonGMR4::GeoModelMmTest::m_stIndex
MuonVal::ScalarBranch< unsigned short > & m_stIndex
Identifier of the readout element.
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:53
EventPrimitivesToStringConverter.h
MuonVal::TwoVectorBranch::push_back
void push_back(const Amg::Vector2D &vec)
interface using the Amg::Vector3D
Definition: TwoVectorBranch.cxx:21
MuonGMR4::MmReadoutElement::stripPosition
Amg::Vector3D stripPosition(const ActsGeometryContext &ctx, const Identifier &measId) const
Returns the position of the strip center.
MuonGMR4::MmReadoutElement::moduleWidthL
double moduleWidthL() const
Returns the width at the top edge.
MuonGMR4::GeoModelMmTest::m_gasGap
MuonVal::VectorBranch< short > & m_gasGap
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
MuonGMR4::GeoModelMmTest::m_stripCenter
MuonVal::ThreeVectorBranch m_stripCenter
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:75
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
Amg::doesNotDeform
bool doesNotDeform(const Amg::Transform3D &trans)
Checks whether the linear part of the transformation rotates or stetches any of the basis vectors.
Definition: GeoPrimitivesHelpers.h:338
MuonGMR4::GeoModelMmTest::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:32
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
MuonGMR4::GeoModelMmTest::m_stripRotGasGap
MuonVal::VectorBranch< uint8_t > & m_stripRotGasGap
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:67
MuonGMR4::MmReadoutElement::measurementId
Identifier measurementId(const IdentifierHash &measHash) const override final
Converts the measurement hash back to the full Identifier.
MuonGMR4::MmReadoutElement::readoutSide
int readoutSide(const IdentifierHash &measHash) const
Returns the readout side.
AnalysisUtils::copy_if
Out copy_if(In first, const In &last, Out res, const Pred &p)
Definition: IFilterUtils.h:30
MuonGMR4::MmReadoutElement::firstStrip
unsigned int firstStrip(const IdentifierHash &layerHash) const
Returns the first active strip.
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
MuonGMR4::GeoModelMmTest::m_stML
MuonVal::ScalarBranch< short > & m_stML
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:56
AthHistogramAlgorithm
Definition: AthHistogramAlgorithm.h:32
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:28
MuonGMR4::GeoModelMmTest::m_moduleHeight
MuonVal::ScalarBranch< float > & m_moduleHeight
Chamber Length for debug.
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:84
MuonVal::VectorBranch::push_back
void push_back(const T &value)
Adds a new element at the end of the vector.
MuonGMR4::GeoModelMmTest::m_alignableNode
MuonVal::CoordTransformBranch m_alignableNode
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:63
MuonGMR4::MmReadoutElement::leftStripEdge
Amg::Vector3D leftStripEdge(const ActsGeometryContext &ctx, const Identifier &measId) const
Returns the global position of the strip edge.
MuonGMR4::MmReadoutElement::stripLayer
const StripLayer & stripLayer(const Identifier &measId) const
MuonGMR4::GeoModelMmTest::m_geoCtxKey
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:35
MuonGMR4::GeoModelMmTest::m_stPhi
MuonVal::ScalarBranch< short > & m_stPhi
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:55
MuonGMR4::GeoModelMmTest::m_stripLeftEdge
MuonVal::ThreeVectorBranch m_stripLeftEdge
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:76
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
MuonGMR4::MuonReadoutElement::alignableTransform
const GeoAlignableTransform * alignableTransform() const
Returnsthe alignable transform of the readout element.
MuonGMR4::MuonReadoutElement::identify
Identifier identify() const override final
Return the athena identifier.
MuonGMR4::GeoModelMmTest::m_firstStripPos
MuonVal::TwoVectorBranch m_firstStripPos
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:68
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonGMR4::StripLayer::design
const StripDesign & design() const
Returns the underlying strip design.
MuonGMR4::GeoModelMmTest::finalize
StatusCode finalize() override
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.cxx:63
MuonGMR4::MmReadoutElement::gapHeight
double gapHeight(const IdentifierHash &layerHash) const
Height of gas Gap.
MuonGMR4::GeoModelMmTest::dumpToTree
StatusCode dumpToTree(const EventContext &ctx, const ActsGeometryContext &gctx, const MmReadoutElement *readoutEle)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.cxx:148
MuonGMR4::MuonReadoutElement::stationName
int stationName() const
Returns the stationName (BIS, BOS, etc) encoded into the integer.
MuonGMR4::GeoModelMmTest::m_stripLength
MuonVal::VectorBranch< float > & m_stripLength
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:80
MmIdHelper
Definition: MmIdHelper.h:54
MuonGMR4::MmReadoutElement::measurementHash
IdentifierHash measurementHash(const Identifier &measId) const override final
Constructs the identifier hash from the full measurement Identifier.
MuonGMR4::MmReadoutElement::layerHash
IdentifierHash layerHash(const Identifier &measId) const override final
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
MuonGMR4::GeoModelMmTest::execute
StatusCode execute() override
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.cxx:67
MuonGMR4::GeoModelMmTest::m_ActiveWidthL
MuonVal::ScalarBranch< float > & m_ActiveWidthL
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:90
MuonGMR4::MmReadoutElement::moduleHeight
double moduleHeight() const
Returns the height along the z-axis.
MuonVal::CoordSystemsBranch::push_back
void push_back(const Amg::Transform3D &trans)
Definition: CoordTransformBranch.cxx:28
MuonGMR4::MmReadoutElement::rightStripEdge
Amg::Vector3D rightStripEdge(const ActsGeometryContext &ctx, const Identifier &measId) const
Returns the global position of the strip edge.
MuonVal::MuonTesterTree::fill
bool fill(const EventContext &ctx)
Fills the tree per call.
Definition: MuonTesterTree.cxx:89
MuonGMR4::MuonReadoutElement::localToGlobalTrans
const Amg::Transform3D & localToGlobalTrans(const ActsGeometryContext &ctx) const
Returns the local to global transformation into the ATLAS coordinate system.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonReadoutElement.cxx:76
MuonVal::MuonTesterTree::write
StatusCode write()
Finally write the TTree objects.
Definition: MuonTesterTree.cxx:178
CxxUtils::atoi
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
Definition: Control/CxxUtils/Root/StringUtils.cxx:85
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:34
MuonGMR4::MuonReadoutElement::stationEta
int stationEta() const
Returns the stationEta (positive A site, negative O site)
calibdata.copy
bool copy
Definition: calibdata.py:27
MuonGMR4::StripDesign::stripPitch
double stripPitch() const
Distance between two adjacent strips.
MuonGMR4::GeoModelMmTest::initialize
StatusCode initialize() override
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.cxx:18
MuonGMR4::GeoModelMmTest::m_moduleWidthL
MuonVal::ScalarBranch< float > & m_moduleWidthL
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:86
MuonGMR4::MuonReadoutElement::stationPhi
int stationPhi() const
Returns the stationPhi (1-8) -> sector (2*phi - (isSmall))
MuonGMR4::GeoModelMmTest::m_moduleWidthS
MuonVal::ScalarBranch< float > & m_moduleWidthS
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:85
MuonGMR4::GeoModelMmTest::m_locStripCenter
MuonVal::TwoVectorBranch m_locStripCenter
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:78
MuonGMR4::GeoModelMmTest::m_stStripPitch
MuonVal::ScalarBranch< float > & m_stStripPitch
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:58
MmReadoutElement.h
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32
MuonGMR4::GeoModelMmTest::m_readoutTransform
MuonVal::CoordTransformBranch m_readoutTransform
Transformation of the readout element (Translation, ColX, ColY, ColZ)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:62
MuonGMR4::GeoModelMmTest::m_detMgr
const MuonDetectorManager * m_detMgr
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:44
MuonGMR4::GeoModelMmTest::m_testStations
std::set< Identifier > m_testStations
Set of stations to be tested.
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/src/GeoModelMmTest.h:38