ATLAS Offline Software
Loading...
Searching...
No Matches
RpcDataPreparator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGL2MUONSA_RPCDATAPREPARATOR_H
6#define TRIGL2MUONSA_RPCDATAPREPARATOR_H
7
9#include "GaudiKernel/ServiceHandle.h"
10#include "GaudiKernel/ToolHandle.h"
11
14
15#include "RpcData.h"
16#include "RpcFitResult.h"
17#include "RpcPatFinder.h"
18#include "RecMuonRoIUtils.h"
21
24
26
28
29// --------------------------------------------------------------------------------
30// --------------------------------------------------------------------------------
31
32namespace TrigL2MuonSA {
33
35{
36 public:
37
38 RpcDataPreparator(const std::string& type,
39 const std::string& name,
40 const IInterface* parent);
41
42 virtual StatusCode initialize() override;
43
44 StatusCode prepareData(const EventContext& ctx,
45 const TrigRoiDescriptor* p_roids,
46 TrigL2MuonSA::RpcHits& rpcHits,
47 TrigL2MuonSA::RpcLayerHits& rpcLayerHits,
48 const ToolHandle<RpcPatFinder>* rpcPatFinder,
49 const bool dynamicDeltaRpc) const;
50
51 //for multi-track SA mode
52 StatusCode prepareData(const EventContext& ctx,
53 const TrigRoiDescriptor* p_roids,
54 TrigL2MuonSA::RpcLayerClusters& rpcLayerClusters,
55 const ToolHandle<ClusterPatFinder>* clusterPatFinder,
56 const bool dynamicDeltaRpc) const;
57
58 void setRoIBasedDataAccess(bool use_RoIBasedDataAccess);
59
60 private:
61 ToolHandle<IRegSelTool> m_regionSelector{this,"RegSel_RPC","RegSelTool/RegSelTool_RPC"};
62 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
63
64 ToolHandle<LVL1::ITrigT1MuonRecRoiTool> m_recRPCRoiTool{ this, "TrigT1RPCRecRoiTool", "LVL1::TrigT1RPCRecRoiTool/TrigT1RPCRecRoiTool"};
65
66 // handles to the RoI driven data access
68 this, "RpcPrepDataContainer", "RPC_Measurements", "Name of the RPCContainer to read in"};
69
70 //for multi-track SA mode
71 ToolHandle<RpcClusterPreparator> m_clusterPreparator{this, "RpcClusterPreparator", "TrigL2MuonSA::RpcClusterPreparator"};
72
73 // Declare the keys used to access the data: one for reading and one
74 // for writing.
76
77 Gaudi::Property< bool > m_emulateNoRpcHit { this, "EmulateNoRpcHit", false, "Flag for emulation of no RPC hit events" };
78};
79
80} // namespace TrigL2MuonSA
81
82#endif // TRIGL2MUONSA_RPCDATAPREPARATOR_H
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Property holding a SG store/key/clid from which a ReadHandle is made.
ToolHandle< RpcClusterPreparator > m_clusterPreparator
StatusCode prepareData(const EventContext &ctx, const TrigRoiDescriptor *p_roids, TrigL2MuonSA::RpcHits &rpcHits, TrigL2MuonSA::RpcLayerHits &rpcLayerHits, const ToolHandle< RpcPatFinder > *rpcPatFinder, const bool dynamicDeltaRpc) const
ToolHandle< LVL1::ITrigT1MuonRecRoiTool > m_recRPCRoiTool
void setRoIBasedDataAccess(bool use_RoIBasedDataAccess)
RpcDataPreparator(const std::string &type, const std::string &name, const IInterface *parent)
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Gaudi::Property< bool > m_emulateNoRpcHit
ToolHandle< IRegSelTool > m_regionSelector
virtual StatusCode initialize() override
SG::ReadHandleKey< Muon::RpcPrepDataContainer > m_rpcPrepContainerKey
nope - should be used for standalone also, perhaps need to protect the class def bits ifndef XAOD_ANA...
std::vector< RpcHitData > RpcHits
Definition RpcData.h:57