ATLAS Offline Software
Loading...
Searching...
No Matches
RPCPatternUtils.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Class to provide utility functions for RPC pattern matching,
6// including functions to extract strip numbers and coordinates from identifiers
7// and to compute virtual strip coordinates for BI-BOR/BOM stations.
8
9#ifndef RPCPatternUtils_H
10#define RPCPatternUtils_H
11
13#include "xAODMuonRDO/NRPCRDO.h"
15#include <GaudiKernel/PhysicalConstants.h>
16
17#include <map>
18#include <vector>
19#include <cstdint>
20
21class MsgStream;
22class Identifier;
23namespace Muon{
24 class IMuonIdHelperSvc;
25 struct RpcCablingData;
26}
27
28namespace MuonGMR4{
31}
32
34
35 using RdoPairs = std::array<const xAOD::NRPCRDO*, 2>;
36 uint32_t getSLStripId(bool side, int sector, int doubletPhi, Muon::MuonStationIndex::StIndex RPClayer,
37 int doubletR, int stationEta, int doubletZ, int stripNumber, bool measuresPhi) ;
38
39 int getVirtualBIPhiStripNumber(float loc_pos_along_BIstrip, const MuonGMR4::RpcReadoutElement& readoutElement);
40
41 uint32_t getVirtualBIPhiStripCoordinate(const Amg::Vector3D& stripPos, float loc_pos_along_BIstrip);
42
43 uint32_t getBMBOPhiStripCoordinate(const Amg::Vector3D& stripPos);
44
45 void getStripIdforAlg(const RdoPairs& rdo_pair, std::vector<uint32_t>& stripIDs, std::map<uint32_t, uint32_t>& strip_coordinates, std::map<uint32_t, uint32_t>& strip_etabin,
46 const Muon::RpcCablingData& cabling, const Identifier& offId, const ActsTrk::GeometryContext& geoCtx,
47 const Muon::IMuonIdHelperSvc* idHelperSvc, const MuonGMR4::MuonDetectorManager* detMgr);
48
49 inline constexpr double s_digitalBiPhiStripWidth = 150.0; // mm
50 inline constexpr double s_propagationVelocity = 2./3. * Gaudi::Units::c_light; // mm/ns
51}
52
53#endif // RPCPatternUtils_H
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Eigen::Matrix< double, 3, 1 > Vector3D
constexpr double s_digitalBiPhiStripWidth
uint32_t getBMBOPhiStripCoordinate(const Amg::Vector3D &stripPos)
void getStripIdforAlg(const RdoPairs &rdo_pair, std::vector< uint32_t > &stripIDs, std::map< uint32_t, uint32_t > &strip_coordinates, std::map< uint32_t, uint32_t > &strip_etabin, const Muon::RpcCablingData &cabling, const Identifier &offId, const ActsTrk::GeometryContext &geoCtx, const Muon::IMuonIdHelperSvc *idHelperSvc, const MuonGMR4::MuonDetectorManager *detMgr)
constexpr double s_propagationVelocity
uint32_t getSLStripId(bool side, int sector, int doubletPhi, Muon::MuonStationIndex::StIndex RPClayer, int doubletR, int stationEta, int doubletZ, int stripNumber, bool measuresPhi)
uint32_t getVirtualBIPhiStripCoordinate(const Amg::Vector3D &stripPos, float loc_pos_along_BIstrip)
int getVirtualBIPhiStripNumber(float loc_pos_along_BIstrip, const MuonGMR4::RpcReadoutElement &readoutElement)
std::array< const xAOD::NRPCRDO *, 2 > RdoPairs
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
StIndex
enum to classify the different station layers in the muon spectrometer
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Helper struct that is parsed to the cabling map to translate between the offline & online Identifiers...