ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonPatternRecognition
MuonTruthAlgsR4
src
PrepDataToSimHitAssocAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONTRUTHALGSR4_PREPDATATOSIMHITASSOCALG_H
5
#define MUONTRUTHALGSR4_PREPDATATOSIMHITASSOCALG_H
6
7
#include <
AthenaBaseComps/AthReentrantAlgorithm.h
>
8
9
#include <
StoreGate/ReadHandleKey.h
>
10
#include <
StoreGate/WriteDecorHandleKey.h
>
11
#include <
xAODMuonSimHit/MuonSimHitContainer.h
>
12
#include <
xAODMuonPrepData/MuonMeasurementContainer.h
>
13
#include <
MuonIdHelpers/IMuonIdHelperSvc.h
>
14
#include <
MuonReadoutGeometryR4/MuonDetectorManager.h
>
15
#include <
xAODMuonViews/ChamberViewer.h
>
16
17
namespace
MuonR4
{
23
class
PrepDataToSimHitAssocAlg
:
public
AthReentrantAlgorithm
{
24
public
:
25
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
26
27
StatusCode
initialize
()
override
final
;
28
StatusCode
execute
(
const
EventContext & ctx)
const
override
final
;
29
private
:
31
template
<
typename
Cont_t>
using
Viewer_t
=
xAOD::ChamberViewer<Cont_t>
;
35
template
<
typename
PrdType_t>
36
const
xAOD::MuonSimHit
*
truthMatchPrd
(
Viewer_t<xAOD::MuonSimHitContainer>
& simHits,
37
const
xAOD::MuonMeasurement
* measurement)
const
;
38
40
SG::ReadHandleKey<xAOD::MuonSimHitContainer>
m_simHitsKey
{
this
,
"SimHits"
,
""
};
42
SG::ReadHandleKey<xAOD::MuonMeasurementContainer>
m_prdHitKey
{
this
,
"Measurements"
,
"Measurements"
};
44
using
LinkType
=
ElementLink<xAOD::MuonSimHitContainer>
;
45
SG::WriteDecorHandleKey<xAOD::MuonMeasurementContainer>
m_decorKey
{
this
,
"Decoration"
,
m_prdHitKey
,
"simHitLink"
};
47
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"IdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
48
};
49
}
50
51
52
#endif
AthReentrantAlgorithm.h
ChamberViewer.h
IMuonIdHelperSvc.h
MuonMeasurementContainer.h
MuonDetectorManager.h
MuonSimHitContainer.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
ElementLink
ElementLink implementation for ROOT usage.
Definition
A/AthLinks/ElementLink.h:40
MuonR4::PrepDataToSimHitAssocAlg
The PrepDataToSimHitAssocAlg matches the uncalibrated measurements to the MuonSimHits or to the MuonS...
Definition
PrepDataToSimHitAssocAlg.h:23
MuonR4::PrepDataToSimHitAssocAlg::Viewer_t
xAOD::ChamberViewer< Cont_t > Viewer_t
Abrivate the chamber viewer type.
Definition
PrepDataToSimHitAssocAlg.h:31
MuonR4::PrepDataToSimHitAssocAlg::m_simHitsKey
SG::ReadHandleKey< xAOD::MuonSimHitContainer > m_simHitsKey
Key to the associated simHit container.
Definition
PrepDataToSimHitAssocAlg.h:40
MuonR4::PrepDataToSimHitAssocAlg::m_prdHitKey
SG::ReadHandleKey< xAOD::MuonMeasurementContainer > m_prdHitKey
Key to the uncalibrated measurements to decorate.
Definition
PrepDataToSimHitAssocAlg.h:42
MuonR4::PrepDataToSimHitAssocAlg::LinkType
ElementLink< xAOD::MuonSimHitContainer > LinkType
Attached sim-hit link decoration to the measurement container.
Definition
PrepDataToSimHitAssocAlg.h:44
MuonR4::PrepDataToSimHitAssocAlg::execute
StatusCode execute(const EventContext &ctx) const override final
Definition
PrepDataToSimHitAssocAlg.cxx:87
MuonR4::PrepDataToSimHitAssocAlg::truthMatchPrd
const xAOD::MuonSimHit * truthMatchPrd(Viewer_t< xAOD::MuonSimHitContainer > &simHits, const xAOD::MuonMeasurement *measurement) const
Searches for the best matching sim hit to a measurement.
Definition
PrepDataToSimHitAssocAlg.cxx:45
MuonR4::PrepDataToSimHitAssocAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
Definition
PrepDataToSimHitAssocAlg.h:47
MuonR4::PrepDataToSimHitAssocAlg::initialize
StatusCode initialize() override final
Definition
PrepDataToSimHitAssocAlg.cxx:36
MuonR4::PrepDataToSimHitAssocAlg::m_decorKey
SG::WriteDecorHandleKey< xAOD::MuonMeasurementContainer > m_decorKey
Definition
PrepDataToSimHitAssocAlg.h:45
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
ServiceHandle
Definition
ClusterMakerTool.h:36
xAOD::ChamberViewer
Definition
ChamberViewer.h:63
MuonR4
This header ties the generic definitions in this package.
Definition
GlobalPattern.h:14
xAOD::MuonMeasurement
MuonMeasurement_v1 MuonMeasurement
Definition
MuonMeasurementFwd.h:11
xAOD::MuonSimHit
MuonSimHit_v1 MuonSimHit
Defined the version of the MuonSimHit.
Definition
MuonSimHit.h:12
Generated on
for ATLAS Offline Software by
1.17.0