ATLAS Offline Software
RpcRdoToRpcPrepDataTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONRPC_CNVTOOLSR4_RPCRDOTOPREPDATACNVTOOL_H
5 #define MUONRPC_CNVTOOLSR4_RPCRDOTOPREPDATACNVTOOL_H
6 
9 
13 
21 #include <GaudiKernel/PhysicalConstants.h>
22 
23 namespace MuonR4{
24  class RpcRdoToRpcPrepDataTool: public extends<AthAlgTool, Muon::IMuonRdoToPrepDataTool> {
25  public:
26  RpcRdoToRpcPrepDataTool(const std::string& n,
27  const std::string& p,
28  const IInterface* iface);
29 
31 
32  StatusCode initialize() override final;
33 
34  StatusCode decode(const EventContext& ctx,
35  const std::vector<IdentifierHash>& idVect) const override final;
36 
37  StatusCode decode(const EventContext& ctx,
38  const std::vector<uint32_t>& robIds) const override final;
39 
41  StatusCode provideEmptyContainer(const EventContext& ctx) const override final;
42 
43  private:
44  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
45 
46 
47  SG::ReadHandleKey<ActsGeometryContext> m_geoCtxKey{this, "AlignmentKey", "ActsAlignment", "cond handle key"};
48 
49  SG::ReadHandleKey<xAOD::NRPCRDOContainer> m_rdoKey{this, "RdoCollection", "NRPCRDO"};
50 
51  SG::ReadCondHandleKey<MuonNRPC_CablingMap> m_cablingKey{this, "CablingKey", "MuonNRPC_CablingMap",
52  "Key of MuonNRPC_CablingMap"};
53 
54 
55  SG::WriteHandleKey<xAOD::RpcStripContainer> m_writeKey{this, "OutputContainer", "xRpcStrips",
56  "Output container"};
57 
58  SG::WriteHandleKey<xAOD::RpcStrip2DContainer> m_writeKeyBI{this, "OutputContainerBI", "xRpcBILStrips",
59  "Output container of the 2D BIL rpc strips"};
60 
62 
63 
64  Gaudi::Property<bool> m_decode2DStrips{this, "decode2DStrips", true};
65 
66  Gaudi::Property<double> m_propagationVelocity{this, "propSpeed", 0.5 * Gaudi::Units::c_light,
67  "Propagation speed of the signal inside the strip"}; // in mm/ns
68 
69  Gaudi::Property<double> m_stripTimeResolution{this, "timeResolution", 0.6 * Gaudi::Units::nanosecond,
70  "Estimated time resolution of the strip readout"};
71 
72  };
73 }
74 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
MuonR4::RpcRdoToRpcPrepDataTool
Definition: RpcRdoToRpcPrepDataTool.h:24
python.SystemOfUnits.nanosecond
int nanosecond
Definition: SystemOfUnits.py:119
MuonR4::RpcRdoToRpcPrepDataTool::decode
StatusCode decode(const EventContext &ctx, const std::vector< IdentifierHash > &idVect) const override final
Definition: RpcRdoToRpcPrepDataTool.cxx:32
MuonGMR4::MuonDetectorManager
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
ActsGeometryContext.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
MuonNRPC_CablingMap.h
MuonR4::RpcRdoToRpcPrepDataTool::initialize
StatusCode initialize() override final
Definition: RpcRdoToRpcPrepDataTool.cxx:21
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey< ActsGeometryContext >
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
RpcStripContainer.h
MuonR4::RpcRdoToRpcPrepDataTool::RpcRdoToRpcPrepDataTool
RpcRdoToRpcPrepDataTool(const std::string &n, const std::string &p, const IInterface *iface)
Definition: RpcRdoToRpcPrepDataTool.cxx:15
MuonR4::RpcRdoToRpcPrepDataTool::m_decode2DStrips
Gaudi::Property< bool > m_decode2DStrips
Definition: RpcRdoToRpcPrepDataTool.h:64
MuonR4::RpcRdoToRpcPrepDataTool::m_rdoKey
SG::ReadHandleKey< xAOD::NRPCRDOContainer > m_rdoKey
Definition: RpcRdoToRpcPrepDataTool.h:49
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
IMuonRdoToPrepDataTool.h
MuonR4::RpcRdoToRpcPrepDataTool::m_propagationVelocity
Gaudi::Property< double > m_propagationVelocity
Definition: RpcRdoToRpcPrepDataTool.h:66
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
vector
Definition: MultiHisto.h:13
AthAlgTool.h
MuonR4::RpcRdoToRpcPrepDataTool::m_writeKey
SG::WriteHandleKey< xAOD::RpcStripContainer > m_writeKey
Definition: RpcRdoToRpcPrepDataTool.h:55
MuonDetectorManager.h
MuonR4::RpcRdoToRpcPrepDataTool::m_geoCtxKey
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
Definition: RpcRdoToRpcPrepDataTool.h:47
MuonR4::RpcRdoToRpcPrepDataTool::~RpcRdoToRpcPrepDataTool
~RpcRdoToRpcPrepDataTool()=default
ReadCondHandleKey.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
RpcStrip2DContainer.h
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
MuonR4::RpcRdoToRpcPrepDataTool::m_writeKeyBI
SG::WriteHandleKey< xAOD::RpcStrip2DContainer > m_writeKeyBI
Definition: RpcRdoToRpcPrepDataTool.h:58
python.PhysicalConstants.c_light
float c_light
Definition: PhysicalConstants.py:63
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
SG::ReadCondHandleKey< MuonNRPC_CablingMap >
MuonR4::RpcRdoToRpcPrepDataTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: RpcRdoToRpcPrepDataTool.h:44
MuonR4::RpcRdoToRpcPrepDataTool::m_cablingKey
SG::ReadCondHandleKey< MuonNRPC_CablingMap > m_cablingKey
Definition: RpcRdoToRpcPrepDataTool.h:51
MuonR4::RpcRdoToRpcPrepDataTool::provideEmptyContainer
StatusCode provideEmptyContainer(const EventContext &ctx) const override final
Method to create the empty containers.. Only used for seeded decoding.
Definition: RpcRdoToRpcPrepDataTool.cxx:155
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
MuonR4::RpcRdoToRpcPrepDataTool::m_stripTimeResolution
Gaudi::Property< double > m_stripTimeResolution
Definition: RpcRdoToRpcPrepDataTool.h:69
IMuonIdHelperSvc.h
MuonR4::RpcRdoToRpcPrepDataTool::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
Definition: RpcRdoToRpcPrepDataTool.h:61
NRPCRDOContainer.h
ServiceHandle
Definition: ClusterMakerTool.h:37