ATLAS Offline Software
SegmentExtpTest.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONTRACKFINDINGTEST_SEGMENTEXTPTEST_H
5 #define MUONTRACKFINDINGTEST_SEGMENTEXTPTEST_H
6 
9 
14 
15 namespace MuonValR4{
16  /*** @brief Algorithm to test the extrapolation on a fitted segment. For each segment,
17  * the fitted parameters are used to construct Acts Track paramters and to extrapolate
18  * the line onto each measurement's surface. The result is then compared with the obtained
19  * fit */
21  public:
22  using AthReentrantAlgorithm::AthReentrantAlgorithm;
23  virtual ~SegmentExtpTest() = default;
24  virtual StatusCode initialize() override final;
25  virtual StatusCode execute(const EventContext& ctx) const override final;
26  private:
28  SG::ReadHandleKey<xAOD::MuonSegmentContainer> m_readKey{this, "SegmentKey", "MuonSegmentsFromR4"};
30  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
32  ToolHandle<ActsTrk::IExtrapolationTool> m_extrapolationTool{this, "ExtrapolationTool" ,"" };
34  SG::ReadHandleKey<ActsTrk::GeometryContext> m_geoCtxKey{this, "AlignmentKey", "ActsAlignment", "cond handle key"};
38  Gaudi::Property<bool> m_drawEvent{this , "drawEvent", false };
39  };
40 }
41 
42 
43 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
MuonValR4::SegmentExtpTest::m_extrapolationTool
ToolHandle< ActsTrk::IExtrapolationTool > m_extrapolationTool
Track extrapolation tool.
Definition: SegmentExtpTest.h:32
MuonValR4::SegmentExtpTest::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
Definition: SegmentExtpTest.h:30
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonGMR4::MuonDetectorManager
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
IExtrapolationTool.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey< ActsTrk::GeometryContext >
MuonValR4::SegmentExtpTest::initialize
virtual StatusCode initialize() override final
Definition: SegmentExtpTest.cxx:34
MuonSegmentContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
MuonValR4::SegmentExtpTest::m_geoCtxKey
SG::ReadHandleKey< ActsTrk::GeometryContext > m_geoCtxKey
Dependency on the geometry alignment.
Definition: SegmentExtpTest.h:34
MuonValR4::SegmentExtpTest::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: SegmentExtpTest.cxx:42
MuonValR4::SegmentExtpTest::m_drawEvent
Gaudi::Property< bool > m_drawEvent
Option to draw every extrapolation asan obj file.
Definition: SegmentExtpTest.h:38
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonDetectorManager.h
xAOD::MuonSegmentContainer
MuonSegmentContainer_v1 MuonSegmentContainer
Definition of the current "MuonSegment container version".
Definition: MuonSegmentContainer.h:14
MuonValR4
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
Definition: IPatternVisualizationTool.h:23
AthReentrantAlgorithm.h
MuonValR4::SegmentExtpTest::~SegmentExtpTest
virtual ~SegmentExtpTest()=default
MuonValR4::SegmentExtpTest
Definition: SegmentExtpTest.h:20
private
#define private
Definition: xAODTruthCnvAlg.h:20
MuonValR4::SegmentExtpTest::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
Detector manager to fetch the sector surfaces.
Definition: SegmentExtpTest.h:36
MuonValR4::SegmentExtpTest::m_readKey
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_readKey
Declare the data dependency on the standard Mdt+Rpc+Tgc segment container.
Definition: SegmentExtpTest.h:28
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >