ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
12
15
20
24
25namespace L0Muon
26{
27
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
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
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"};
69 };
70
71} // end of namespace
72
73#endif // L0MUONRPCSIM_H
Header file to be included by clients of the Monitored infrastructure.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthPartKey
truth containers
virtual StatusCode initialize() override
Gaudi::Property< bool > m_usePatterns
SG::WriteHandleKey< xAOD::RPCCandDataContainer > m_outputCandKey
Output Trigger candidates.
Gaudi::Property< bool > m_useTruth
configuration options
StatusCode buildFromTruth(xAOD::RPCCandDataContainer &outputCands, const EventContext &ctx) const
build the candidates from the MC truth
std::vector< const xAOD::MuonSimHit * > collectHits(const xAOD::TruthParticle &truthPart, const EventContext &ctx) const
SG::ReadDecorHandleKey< xAOD::TruthParticleContainer > m_segmentLinkKey
SG::ReadHandleKey< xAOD::NRPCRDOContainer > m_keyRpcRdo
RPC Rdo.
const MuonGMR4::MuonDetectorManager * m_detMgr
ToolHandle< GenericMonitoringTool > m_monTool
virtual ~RPCSimulation()=default
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
helper service
SG::ReadHandleKey< ActsTrk::GeometryContext > m_geoCtxKey
virtual StatusCode execute(const EventContext &ctx) const override
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
TruthParticle_v1 TruthParticle
Typedef to implementation.