ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Muon
L1MuonS1RPC
L1MuonS1RPC
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
12
#include "
ActsGeometryInterfaces/GeometryContext.h
"
13
#include "
xAODMuonRDO/NRPCRDO.h
"
14
#include "
MuonStationIndex/MuonStationIndex.h
"
15
#include <GaudiKernel/PhysicalConstants.h>
16
17
#include <map>
18
#include <vector>
19
#include <cstdint>
20
21
class
MsgStream;
22
class
Identifier
;
23
namespace
Muon
{
24
class
IMuonIdHelperSvc
;
25
struct
RpcCablingData
;
26
}
27
28
namespace
MuonGMR4
{
29
class
RpcReadoutElement
;
30
class
MuonDetectorManager
;
31
}
32
33
namespace
L1Muon::RPCPatternUtils
{
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
GeometryContext.h
MuonStationIndex.h
NRPCRDO.h
ActsTrk::GeometryContext
Definition
GeometryContext.h:30
MuonGMR4::MuonDetectorManager
Definition
MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
MuonGMR4::RpcReadoutElement
Definition
MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/RpcReadoutElement.h:17
Muon::IMuonIdHelperSvc
Interface for Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition
IMuonIdHelperSvc.h:27
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:48
Identifier
Definition
IdentifierFieldParser.cxx:14
L1Muon::RPCPatternUtils
Definition
RPCPatternUtils.h:33
L1Muon::RPCPatternUtils::s_digitalBiPhiStripWidth
constexpr double s_digitalBiPhiStripWidth
Definition
RPCPatternUtils.h:49
L1Muon::RPCPatternUtils::getBMBOPhiStripCoordinate
uint32_t getBMBOPhiStripCoordinate(const Amg::Vector3D &stripPos)
Definition
RPCPatternUtils.cxx:56
L1Muon::RPCPatternUtils::getStripIdforAlg
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)
Definition
RPCPatternUtils.cxx:64
L1Muon::RPCPatternUtils::s_propagationVelocity
constexpr double s_propagationVelocity
Definition
RPCPatternUtils.h:50
L1Muon::RPCPatternUtils::getSLStripId
uint32_t getSLStripId(bool side, int sector, int doubletPhi, Muon::MuonStationIndex::StIndex RPClayer, int doubletR, int stationEta, int doubletZ, int stripNumber, bool measuresPhi)
Definition
RPCPatternUtils.cxx:13
L1Muon::RPCPatternUtils::getVirtualBIPhiStripCoordinate
uint32_t getVirtualBIPhiStripCoordinate(const Amg::Vector3D &stripPos, float loc_pos_along_BIstrip)
Definition
RPCPatternUtils.cxx:33
L1Muon::RPCPatternUtils::getVirtualBIPhiStripNumber
int getVirtualBIPhiStripNumber(float loc_pos_along_BIstrip, const MuonGMR4::RpcReadoutElement &readoutElement)
Definition
RPCPatternUtils.cxx:21
L1Muon::RPCPatternUtils::RdoPairs
std::array< const xAOD::NRPCRDO *, 2 > RdoPairs
Definition
RPCPatternUtils.h:35
MuonGMR4
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...
Definition
MdtCalibInput.h:19
Muon::MuonStationIndex::StIndex
StIndex
enum to classify the different station layers in the muon spectrometer
Definition
MuonStationIndex.h:24
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Muon::RpcCablingData
Helper struct that is parsed to the cabling map to translate between the offline & online Identifiers...
Definition
RpcCablingData.h:96
Generated on
for ATLAS Offline Software by
1.17.0