ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCnv
MuonTGC_CnvTools
src
TGC_RawDataProviderTool.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
#ifndef MUONTGC_CNVTOOLS_TGC_RAWDATAPROVIDERTOOLMT_H
6
#define MUONTGC_CNVTOOLS_TGC_RAWDATAPROVIDERTOOLMT_H
7
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "
ByteStreamCnvSvcBase/IROBDataProviderSvc.h
"
10
#include "
ByteStreamData/RawEvent.h
"
11
#include "
CxxUtils/CachedPointer.h
"
12
#include "
MuonCnvToolInterfaces/IMuonRawDataProviderTool.h
"
13
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
14
#include "
MuonRDO/TgcRdoContainer.h
"
15
#include "
MuonRDO/TgcRdo_Cache.h
"
16
#include "
MuonTGC_Cabling/TgcCablingMap.h
"
17
#include "
MuonTGC_CnvTools/ITGC_RodDecoder.h
"
18
#include "
TGC_Hid2RESrcID.h
"
19
20
namespace
Muon
{
21
29
30
class
TGC_RawDataProviderTool
31
:
public
extends<AthAlgTool, IMuonRawDataProviderTool> {
32
public
:
34
using
base_class::base_class;
36
virtual
~TGC_RawDataProviderTool
() =
default
;
37
39
virtual
StatusCode
initialize
()
override
;
41
42
virtual
StatusCode
convert
(
const
EventContext&)
const override
;
43
virtual
StatusCode
convert
(
const
std::vector<IdentifierHash>&,
44
const
EventContext&)
const override
;
45
46
private
:
48
StatusCode
convertIntoContainer
(
const
ROBFragmentList& vecRobs,
49
const
EventContext& ctx)
const
;
50
52
ROBFragmentList
getROBData
(
const
std::vector<IdentifierHash>& rdoIdhVect,
53
const
EventContext& ctx)
const
;
54
55
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
56
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
57
58
ToolHandle<ITGC_RodDecoder>
m_decoder
{
59
this
,
"Decoder"
,
"Muon::TGC_RodDecoderReadout/TGC_RodDecoderReadout"
};
60
61
SG::WriteHandleKey<TgcRdoContainer>
m_rdoContainerKey
{
62
this
,
"RdoLocation"
,
"TGCRDO"
,
63
"Name of the TGCRDO produced by RawDataProvider"
};
// MT
64
65
unsigned
int
m_maxhashtoUse
= 0U;
// MT
66
68
TGC_Hid2RESrcID
m_hid2re
;
70
ServiceHandle<IROBDataProviderSvc>
m_robDataProvider
{
71
this
,
"ROBDataProviderSvc"
,
"ROBDataProviderSvc"
};
72
73
SG::ReadCondHandleKey<Muon::TgcCablingMap>
m_cablingKey
{
74
this
,
"CablingKey"
,
"MuonTgc_CablingMap"
};
75
// TGC container cache key
76
SG::UpdateHandleKey<TgcRdo_Cache>
m_rdoContainerCacheKey
{
77
this
,
"TgcContainerCacheKey"
,
""
};
78
79
virtual
StatusCode
convert
(
const
std::vector<uint32_t>&,
80
const
EventContext&)
const override
{
81
return
StatusCode::FAILURE;
82
}
83
};
84
}
// namespace Muon
85
86
#endif
// MUONTGC_CNVTOOLS_TGC_RAWDATAPROVIDERTOOLMT_H
AthAlgTool.h
CachedPointer.h
Cached pointer with atomic update.
IMuonIdHelperSvc.h
IMuonRawDataProviderTool.h
IROBDataProviderSvc.h
ITGC_RodDecoder.h
RawEvent.h
TGC_Hid2RESrcID.h
TgcCablingMap.h
TgcRdoContainer.h
TgcRdo_Cache.h
Muon::TGC_Hid2RESrcID
This class provides conversion between TGC RDO Id and RESrcID.
Definition
TGC_Hid2RESrcID.h:28
Muon::TGC_RawDataProviderTool
A tool to decode TGC ROB fragments into TGC RDO.
Definition
TGC_RawDataProviderTool.h:31
Muon::TGC_RawDataProviderTool::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Rob Data Provider handle.
Definition
TGC_RawDataProviderTool.h:70
Muon::TGC_RawDataProviderTool::m_decoder
ToolHandle< ITGC_RodDecoder > m_decoder
Decoder for ROB fragment RDO conversion.
Definition
TGC_RawDataProviderTool.h:58
Muon::TGC_RawDataProviderTool::m_cablingKey
SG::ReadCondHandleKey< Muon::TgcCablingMap > m_cablingKey
Definition
TGC_RawDataProviderTool.h:73
Muon::TGC_RawDataProviderTool::m_rdoContainerKey
SG::WriteHandleKey< TgcRdoContainer > m_rdoContainerKey
RDO container key.
Definition
TGC_RawDataProviderTool.h:61
Muon::TGC_RawDataProviderTool::m_rdoContainerCacheKey
SG::UpdateHandleKey< TgcRdo_Cache > m_rdoContainerCacheKey
Definition
TGC_RawDataProviderTool.h:76
Muon::TGC_RawDataProviderTool::getROBData
ROBFragmentList getROBData(const std::vector< IdentifierHash > &rdoIdhVect, const EventContext &ctx) const
Function to get the ROB data from a vector of IdentifierHash.
Definition
TGC_RawDataProviderTool.cxx:83
Muon::TGC_RawDataProviderTool::convertIntoContainer
StatusCode convertIntoContainer(const ROBFragmentList &vecRobs, const EventContext &ctx) const
Method that converts the ROBFragments into the passed container.
Definition
TGC_RawDataProviderTool.cxx:31
Muon::TGC_RawDataProviderTool::m_maxhashtoUse
unsigned int m_maxhashtoUse
Definition
TGC_RawDataProviderTool.h:65
Muon::TGC_RawDataProviderTool::convert
virtual StatusCode convert(const EventContext &) const override
EventContext ones.
Definition
TGC_RawDataProviderTool.cxx:122
Muon::TGC_RawDataProviderTool::m_hid2re
TGC_Hid2RESrcID m_hid2re
ID converter.
Definition
TGC_RawDataProviderTool.h:68
Muon::TGC_RawDataProviderTool::convert
virtual StatusCode convert(const std::vector< uint32_t > &, const EventContext &) const override
EventContext ones.
Definition
TGC_RawDataProviderTool.h:79
Muon::TGC_RawDataProviderTool::~TGC_RawDataProviderTool
virtual ~TGC_RawDataProviderTool()=default
Default destructor.
Muon::TGC_RawDataProviderTool::initialize
virtual StatusCode initialize() override
Standard AlgTool method.
Definition
TGC_RawDataProviderTool.cxx:9
Muon::TGC_RawDataProviderTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
TGC_RawDataProviderTool.h:55
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::UpdateHandleKey
Property holding a SG store/key/clid from which an UpdateHandle is made.
Definition
UpdateHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
Generated on
for ATLAS Offline Software by
1.17.0