ATLAS Offline Software
Loading...
Searching...
No Matches
ClusterRoadDefiner.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_CLUSTERROADDEFINER_H
6#define TRIGL2MUONSA_CLUSTERROADDEFINER_H
7
8#include <string>
9#include <vector>
10
12
13#include "GaudiKernel/ServiceHandle.h"
14#include "GaudiKernel/ToolHandle.h"
15
17
19
20#include "ClusterPatFinder.h"
21#include "MuonRoad.h"
22#include "RpcFitResult.h"
24#include "xAODTrigger/MuonRoI.h"
25
27
28namespace TrigL2MuonSA {
29
30// --------------------------------------------------------------------------------
31// --------------------------------------------------------------------------------
32
34{
35 public:
36 ClusterRoadDefiner(const std::string& type,
37 const std::string& name,
38 const IInterface* parent);
39
40 virtual StatusCode initialize() override;
41 public:
42 StatusCode defineRoad(const EventContext& ctx,
43 const xAOD::MuonRoI* p_roi,
44 std::vector<TrigL2MuonSA::MuonRoad>& clusterRoad,
45 TrigL2MuonSA::RpcLayerClusters& rpcLayerClusters,
46 const ToolHandle<ClusterPatFinder>* clusterPatFinder,
47 std::vector<TrigL2MuonSA::RpcFitResult>& clusterFitResults,
48 double roiEtaMinLow,
49 double roiEtaMaxLow,
50 double roiEtaMinHigh,
51 double roiEtaMaxHigh) const;
52
53 void setRoadWidthForFailure(double rWidth_RPC_Failed){ m_rWidth_RPC_Failed = rWidth_RPC_Failed; };
54 void setRpcGeometry(bool use_rpc){ m_use_rpc = use_rpc; };
55
56 private:
58 bool m_use_rpc{true};
59
60 ToolHandle<IRegSelTool> m_regionSelector{this, "RegionSelectionTool", "RegSelTool/RegSelTool_MDT", "MDT Region Selector Tool"};
61 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHleperSvc/MuonIdHelperSvc"};
62};
63
64// --------------------------------------------------------------------------------
65// --------------------------------------------------------------------------------
66
67}
68#endif // TRIGL2MUONSA_CLUSTERROADDEFINER_H
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
StatusCode defineRoad(const EventContext &ctx, const xAOD::MuonRoI *p_roi, std::vector< TrigL2MuonSA::MuonRoad > &clusterRoad, TrigL2MuonSA::RpcLayerClusters &rpcLayerClusters, const ToolHandle< ClusterPatFinder > *clusterPatFinder, std::vector< TrigL2MuonSA::RpcFitResult > &clusterFitResults, double roiEtaMinLow, double roiEtaMaxLow, double roiEtaMinHigh, double roiEtaMaxHigh) const
void setRoadWidthForFailure(double rWidth_RPC_Failed)
ToolHandle< IRegSelTool > m_regionSelector
virtual StatusCode initialize() override
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
ClusterRoadDefiner(const std::string &type, const std::string &name, const IInterface *parent)
MuonRoI_v1 MuonRoI
Definition MuonRoI.h:15