ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonValidation
MuonObjectMarker
src
TruthMeasMarkerAlg.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 MUONOBJECTMARKER_TRUTHMEASMARKER_H
5
#define MUONOBJECTMARKER_TRUTHMEASMARKER_H
6
7
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
8
9
#include "
StoreGate/ReadHandleKey.h
"
10
#include "
StoreGate/ReadDecorHandleKey.h
"
11
#include "
StoreGate/WriteDecorHandleKeyArray.h
"
12
#include "
StoreGate/ReadDecorHandleKeyArray.h
"
13
14
#include "
xAODMuon/MuonSegmentContainer.h
"
15
#include "
xAODMuonPrepData/MuonMeasurementContainer.h
"
16
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
17
18
namespace
MuonR4
{
19
/*** @brief TruthMeasMarkerAlg loops over the truth segments and searches the xAOD::UncalibrtedMeasurements
20
* matched to the sim hits making up the segment */
21
class
TruthMeasMarkerAlg
:
public
AthReentrantAlgorithm
{
22
public
:
23
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
24
~TruthMeasMarkerAlg
() =
default
;
25
26
virtual
StatusCode
initialize
() override final;
27
virtual StatusCode
execute
(
const
EventContext& ctx)
const
override final;
28
private
:
30
ServiceHandle
<
Muon
::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"IdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
32
SG::ReadHandleKey<xAOD::MuonSegmentContainer>
m_segKey
{
this
,
"SegmentKey"
,
"MuonTruthSegments"
};
34
Gaudi::Property<std::string>
m_writeMarker
{
this
,
"writeMarker"
,
"matchedToTruthSeg"
};
36
Gaudi::Property<std::string>
m_segLink
{
this
,
"SegmentLinkKey"
,
"truthSegmentLinks"
};
38
Gaudi::Property<std::string>
m_simLink
{
this
,
"SimHitLink"
,
"simHitLink"
};
40
SG::ReadHandleKeyArray<xAOD::MuonMeasurementContainer>
m_measKeys
{
this
,
"PrdContainer"
,{}};
42
SG::ReadDecorHandleKeyArray<xAOD::MuonMeasurementContainer>
m_prdLinkKeys
{
this
,
"PrdLinkKeys"
, {}};
44
SG::WriteDecorHandleKeyArray<xAOD::MuonMeasurementContainer>
m_writeMarkKeys
{
this
,
"OutMarkerKeys"
, {}};
46
SG::WriteDecorHandleKeyArray<xAOD::MuonMeasurementContainer>
m_writeSegLinkKeys
{
this
,
"SegLinkKeys"
, {}};
47
};
48
}
49
50
#endif
AthReentrantAlgorithm.h
IMuonIdHelperSvc.h
MuonMeasurementContainer.h
MuonSegmentContainer.h
ReadDecorHandleKeyArray.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKeyArray.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
MuonR4::TruthMeasMarkerAlg
Definition
TruthMeasMarkerAlg.h:21
MuonR4::TruthMeasMarkerAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
IdHelperSvc to decode the Identifiers.
Definition
TruthMeasMarkerAlg.h:30
MuonR4::TruthMeasMarkerAlg::m_segLink
Gaudi::Property< std::string > m_segLink
Key to indicate the associated MuonSegment link.
Definition
TruthMeasMarkerAlg.h:36
MuonR4::TruthMeasMarkerAlg::m_measKeys
SG::ReadHandleKeyArray< xAOD::MuonMeasurementContainer > m_measKeys
Key to the prd containers in the event.
Definition
TruthMeasMarkerAlg.h:40
MuonR4::TruthMeasMarkerAlg::m_writeSegLinkKeys
SG::WriteDecorHandleKeyArray< xAOD::MuonMeasurementContainer > m_writeSegLinkKeys
Key to the segment link decoration.
Definition
TruthMeasMarkerAlg.h:46
MuonR4::TruthMeasMarkerAlg::m_writeMarkKeys
SG::WriteDecorHandleKeyArray< xAOD::MuonMeasurementContainer > m_writeMarkKeys
Key to the marker decoration.
Definition
TruthMeasMarkerAlg.h:44
MuonR4::TruthMeasMarkerAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition
TruthMeasMarkerAlg.cxx:41
MuonR4::TruthMeasMarkerAlg::m_simLink
Gaudi::Property< std::string > m_simLink
Decoration key of the prd -> simHit association.
Definition
TruthMeasMarkerAlg.h:38
MuonR4::TruthMeasMarkerAlg::~TruthMeasMarkerAlg
~TruthMeasMarkerAlg()=default
MuonR4::TruthMeasMarkerAlg::initialize
virtual StatusCode initialize() override final
Definition
TruthMeasMarkerAlg.cxx:24
MuonR4::TruthMeasMarkerAlg::m_prdLinkKeys
SG::ReadDecorHandleKeyArray< xAOD::MuonMeasurementContainer > m_prdLinkKeys
Dependency on the sim hit decoration.
Definition
TruthMeasMarkerAlg.h:42
MuonR4::TruthMeasMarkerAlg::m_segKey
SG::ReadHandleKey< xAOD::MuonSegmentContainer > m_segKey
Key to the primary muon container to select the muon from.
Definition
TruthMeasMarkerAlg.h:32
MuonR4::TruthMeasMarkerAlg::m_writeMarker
Gaudi::Property< std::string > m_writeMarker
Key that's decorated to mark the uncalibrated measurement.
Definition
TruthMeasMarkerAlg.h:34
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
const
MuonR4
This header ties the generic definitions in this package.
Definition
GlobalPattern.h:14
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
SG::ReadDecorHandleKeyArray
DecorHandleKeyArray< ReadDecorHandle< T, S >, ReadDecorHandleKey< T >, Gaudi::DataHandle::Reader > ReadDecorHandleKeyArray
Definition
StoreGate/StoreGate/ReadDecorHandleKeyArray.h:35
SG::WriteDecorHandleKeyArray
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
Definition
StoreGate/StoreGate/WriteDecorHandleKeyArray.h:35
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0