ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Muon
L0MuonS1RPC
src
RPCSimulation.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 L0MuonS1RPC_RPCSIMULATION_H
5
#define L0MuonS1RPC_RPCSIMULATION_H
6
7
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
8
#include "
AthenaMonitoringKernel/Monitored.h
"
9
#include "
AthenaKernel/IAthRNGSvc.h
"
10
11
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
12
13
#include "
StoreGate/ReadHandleKey.h
"
14
#include "
StoreGate/ReadDecorHandleKey.h
"
15
16
#include "
xAODTruth/TruthParticleContainer.h
"
17
#include "
xAODMuonRDO/NRPCRDOContainer.h
"
18
#include "
xAODTrigger/MuonRoIContainer.h
"
19
#include "
xAODMuonSimHit/MuonSimHit.h
"
20
21
#include "
xAODL0MuonCand/RPCCandDataContainer.h
"
22
#include "
xAODL0MuonCand/RPCCandDataAuxContainer.h
"
23
#include "
MuonReadoutGeometryR4/MuonDetectorManager.h
"
24
25
namespace
L0Muon
26
{
27
28
class
RPCSimulation
:
public
::AthReentrantAlgorithm
29
{
30
public
:
31
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
32
virtual
~RPCSimulation
() =
default
;
33
34
virtual
StatusCode
initialize
()
override
;
35
virtual
StatusCode
execute
(
const
EventContext &ctx)
const override
;
36
37
private
:
39
StatusCode
buildFromTruth
(
xAOD::RPCCandDataContainer
& outputCands,
40
const
EventContext &ctx)
const
;
41
42
std::vector<const xAOD::MuonSimHit*>
collectHits
(
const
xAOD::TruthParticle
& truthPart,
43
const
EventContext& ctx)
const
;
44
45
47
Gaudi::Property<bool>
m_useTruth
{
this
,
"UseTruth"
,
true
,
"Use truth information to build candidates"
};
48
Gaudi::Property<bool>
m_usePatterns
{
this
,
"UsePatterns"
,
false
,
"Use patterns to build candidates"
};
49
51
SG::ReadHandleKey<xAOD::NRPCRDOContainer>
m_keyRpcRdo
{
this
,
"NrpcRdoKey"
,
"NRPCRDO"
,
"Location of input RpcRDO"
};
52
54
SG::WriteHandleKey<xAOD::RPCCandDataContainer>
m_outputCandKey
{
this
,
"RPCCandKey"
,
"RPCCandData"
,
55
"LVL0 xAOD Barrel trigger candidates in the Muon RPC"
};
56
ToolHandle<GenericMonitoringTool>
m_monTool
{
this
,
"MonTool"
,
""
,
"Monitoring Tool"
};
57
59
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_truthPartKey
{
this
,
"TruthPartKey"
,
"MuonTruthParticles"
};
60
61
SG::ReadDecorHandleKey<xAOD::TruthParticleContainer>
m_segmentLinkKey
{
this
,
"SegmentLinkKey"
,
m_truthPartKey
,
62
"truthSegmentLinks"
};
63
65
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
,
66
"Muon Id Helper Service"
};
67
SG::ReadHandleKey<ActsTrk::GeometryContext>
m_geoCtxKey
{
this
,
"AlignmentKey"
,
"ActsAlignment"
,
"cond handle key"
};
68
const
MuonGMR4::MuonDetectorManager
*
m_detMgr
{
nullptr
};
69
};
70
71
}
// end of namespace
72
73
#endif
// L0MUONRPCSIM_H
AthReentrantAlgorithm.h
TruthParticleContainer.h
IAthRNGSvc.h
IMuonIdHelperSvc.h
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
MuonDetectorManager.h
MuonRoIContainer.h
MuonSimHit.h
RPCCandDataContainer.h
NRPCRDOContainer.h
RPCCandDataAuxContainer.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.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
L0Muon::RPCSimulation
Definition
RPCSimulation.h:29
L0Muon::RPCSimulation::m_truthPartKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthPartKey
truth containers
Definition
RPCSimulation.h:59
L0Muon::RPCSimulation::initialize
virtual StatusCode initialize() override
Definition
RPCSimulation.cxx:22
L0Muon::RPCSimulation::m_usePatterns
Gaudi::Property< bool > m_usePatterns
Definition
RPCSimulation.h:48
L0Muon::RPCSimulation::m_outputCandKey
SG::WriteHandleKey< xAOD::RPCCandDataContainer > m_outputCandKey
Output Trigger candidates.
Definition
RPCSimulation.h:54
L0Muon::RPCSimulation::m_useTruth
Gaudi::Property< bool > m_useTruth
configuration options
Definition
RPCSimulation.h:47
L0Muon::RPCSimulation::buildFromTruth
StatusCode buildFromTruth(xAOD::RPCCandDataContainer &outputCands, const EventContext &ctx) const
build the candidates from the MC truth
Definition
RPCSimulation.cxx:105
L0Muon::RPCSimulation::collectHits
std::vector< const xAOD::MuonSimHit * > collectHits(const xAOD::TruthParticle &truthPart, const EventContext &ctx) const
Definition
RPCSimulation.cxx:79
L0Muon::RPCSimulation::m_segmentLinkKey
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_segmentLinkKey
Definition
RPCSimulation.h:61
L0Muon::RPCSimulation::m_keyRpcRdo
SG::ReadHandleKey< xAOD::NRPCRDOContainer > m_keyRpcRdo
RPC Rdo.
Definition
RPCSimulation.h:51
L0Muon::RPCSimulation::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
Definition
RPCSimulation.h:68
L0Muon::RPCSimulation::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition
RPCSimulation.h:56
L0Muon::RPCSimulation::~RPCSimulation
virtual ~RPCSimulation()=default
L0Muon::RPCSimulation::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
helper service
Definition
RPCSimulation.h:65
L0Muon::RPCSimulation::m_geoCtxKey
SG::ReadHandleKey< ActsTrk::GeometryContext > m_geoCtxKey
Definition
RPCSimulation.h:67
L0Muon::RPCSimulation::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
RPCSimulation.cxx:43
MuonGMR4::MuonDetectorManager
Definition
MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
L0Muon
Definition
NSWTPBits.h:7
xAOD::RPCCandDataContainer
RPCCandDataContainer_v1 RPCCandDataContainer
Definition
MuonSpectrometer/MuonPhaseII/Event/xAOD/xAODL0MuonCand/xAODL0MuonCand/RPCCandDataContainer.h:13
xAOD::TruthParticle
TruthParticle_v1 TruthParticle
Typedef to implementation.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h:15
Generated on
for ATLAS Offline Software by
1.17.0