ATLAS Offline Software
MuonChamberToolTest.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONGEOMODELTESTR4_MUONCHAMBERTOOLTEST_H
5 #define MUONGEOMODELTESTR4_MUONCHAMBERTOOLTEST_H
6 
8 
16 
20 
21 namespace MuonGMR4 {
22 
23 
25  public:
26  MuonChamberToolTest(const std::string& name, ISvcLocator* pSvcLocator);
27 
28  ~MuonChamberToolTest() = default;
29 
30  StatusCode execute(const EventContext& ctx) const override;
31  StatusCode initialize() override;
32 
33  bool isReEntrant() const override final {return false;}
34 
35  private:
36  std::array<Amg::Vector3D, 8> cornerPoints(const Acts::Volume& volume) const;
38  template <class EnvelopeType>
40  const EnvelopeType& envelope) const;
41 
49  template <class EnvelopeType>
50  StatusCode pointInside(const EnvelopeType& envelope,
51  const Acts::Volume& boundVol,
52  const Amg::Vector3D& point,
53  const std::string& descr,
54  const Identifier& channelId) const;
55 
62  template <class EnvelopeType>
64  const MdtReadoutElement& readOutEle,
65  const EnvelopeType& envelope,
66  const Acts::Volume& boundVol) const;
67  template <class EnvelopeType>
69  const RpcReadoutElement& readOutEle,
70  const EnvelopeType& envelope,
71  const Acts::Volume& boundVol) const;
72  template <class EnvelopeType>
74  const TgcReadoutElement& readOutEle,
75  const EnvelopeType& envelope,
76  const Acts::Volume& boundVol) const;
77  template <class EnvelopeType>
79  const sTgcReadoutElement& readOutEle,
80  const EnvelopeType& envelope,
81  const Acts::Volume& boundVol) const;
82  template <class EnvelopeType>
84  const MmReadoutElement& readOutEle,
85  const EnvelopeType& envelope,
86  const Acts::Volume& boundVol) const;
87 
88 
89 
91  "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
92 
93  SG::ReadHandleKey<ActsGeometryContext> m_geoCtxKey{this, "AlignmentKey", "ActsAlignment", "cond handle key"};
94 
95  const MuonDetectorManager* m_detMgr{nullptr};
96 
97 };
98 }
99 #endif
MuonGMR4::MuonChamberToolTest::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonChamberToolTest.h:90
MuonGMR4::MmReadoutElement
Definition: MmReadoutElement.h:19
MuonGMR4::MuonChamberToolTest::testReadoutEle
StatusCode testReadoutEle(const ActsGeometryContext &gctx, const MmReadoutElement &readOutEle, const EnvelopeType &envelope, const Acts::Volume &boundVol) const
MuonGMR4::MuonDetectorManager
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
ActsGeometryContext.h
MuonGMR4::MuonChamberToolTest::~MuonChamberToolTest
~MuonChamberToolTest()=default
MuonGMR4::MuonChamberToolTest::execute
StatusCode execute(const EventContext &ctx) const override
Definition: MuonChamberToolTest.cxx:139
MuonGMR4::MuonChamberToolTest::m_detMgr
const MuonDetectorManager * m_detMgr
Definition: MuonChamberToolTest.h:95
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey< ActsGeometryContext >
MuonGMR4::RpcReadoutElement
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/RpcReadoutElement.h:17
MuonGMR4::MuonChamberToolTest::testReadoutEle
StatusCode testReadoutEle(const ActsGeometryContext &gctx, const MdtReadoutElement &readOutEle, const EnvelopeType &envelope, const Acts::Volume &boundVol) const
Checks whether all channels of a given readout element are fully covered by the envelope.
Definition: MuonChamberToolTest.cxx:170
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
sTgcReadoutElement.h
MuonGMR4::MuonChamberToolTest::isReEntrant
bool isReEntrant() const override final
Definition: MuonChamberToolTest.h:33
MuonGMR4
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
Definition: MdtCalibInput.h:20
MuonGMR4::MuonChamberToolTest
Definition: MuonChamberToolTest.h:24
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonDetectorManager.h
python.TransformConfig.descr
descr
print "%s.properties()" % self.__name__
Definition: TransformConfig.py:360
MuonGMR4::MuonChamberToolTest::m_geoCtxKey
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Definition: MuonChamberToolTest.h:93
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:27
ReadCondHandleKey.h
AthReentrantAlgorithm.h
IDetectorVolumeSvc.h
MuonGMR4::MdtReadoutElement
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MdtReadoutElement.h:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
MuonGMR4::MuonChamberToolTest::pointInside
StatusCode pointInside(const EnvelopeType &envelope, const Acts::Volume &boundVol, const Amg::Vector3D &point, const std::string &descr, const Identifier &channelId) const
Checks whether the point is inside of an envelope object, i.e.
Definition: MuonChamberToolTest.cxx:34
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonGMR4::sTgcReadoutElement
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/sTgcReadoutElement.h:20
RpcReadoutElement.h
Chamber.h
MuonGMR4::MuonChamberToolTest::cornerPoints
std::array< Amg::Vector3D, 8 > cornerPoints(const Acts::Volume &volume) const
Definition: MuonChamberToolTest.cxx:117
MdtReadoutElement.h
MuonGMR4::MuonChamberToolTest::initialize
StatusCode initialize() override
Definition: MuonChamberToolTest.cxx:27
MuonGMR4::MuonChamberToolTest::allReadoutInEnvelope
StatusCode allReadoutInEnvelope(const ActsGeometryContext &ctx, const EnvelopeType &envelope) const
Checks whether the readout elements of an enevelope are completely embedded into the envelope.
Definition: MuonChamberToolTest.cxx:67
MuonGMR4::MuonChamberToolTest::testReadoutEle
StatusCode testReadoutEle(const ActsGeometryContext &gctx, const TgcReadoutElement &readOutEle, const EnvelopeType &envelope, const Acts::Volume &boundVol) const
MuonGMR4::MuonChamberToolTest::MuonChamberToolTest
MuonChamberToolTest(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonChamberToolTest.cxx:24
TgcReadoutElement.h
MuonGMR4::TgcReadoutElement
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/TgcReadoutElement.h:19
MmReadoutElement.h
ServiceHandle< Muon::IMuonIdHelperSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14