ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCnv
MuonSTGC_CnvTools
src
STGC_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_STGC_RawDataProviderTool_H
6
#define MUONTGC_CNVTOOLS_STGC_RawDataProviderTool_H
7
8
9
#include "
AthenaBaseComps/AthAlgTool.h
"
10
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
11
#include "
ByteStreamCnvSvcBase/IROBDataProviderSvc.h
"
12
#include "
MuonSTGC_CnvTools/ISTGC_ROD_Decoder.h
"
13
#include "
MuonRDO/STGC_RawDataContainer.h
"
14
15
#include "
MuonCnvToolInterfaces/IMuonRawDataProviderTool.h
"
16
#include "
MuonRDO/STGC_RawDataCollection_Cache.h
"
17
18
namespace
Muon
19
{
23
24
class
STGC_RawDataProviderTool
:
public
extends<AthAlgTool, IMuonRawDataProviderTool> {
25
public
:
27
using
base_class::base_class;
29
virtual
~STGC_RawDataProviderTool
() =
default
;
30
32
virtual
StatusCode
initialize
()
override
;
33
// used
34
35
36
virtual
StatusCode
convert
(
const
EventContext& ctx)
const override
;
37
virtual
StatusCode
convert
(
const
std::vector<IdentifierHash>& chamberHashes,
38
const
EventContext& ctx)
const override
;
39
virtual
StatusCode
convert
(
const
std::vector<uint32_t>& robIDs,
40
const
EventContext& ctx)
const override
;
41
42
private
:
44
StatusCode
convertIntoContainer
(
const
EventContext& ctx,
45
const
ROBFragmentList& fragements,
46
const
std::vector<IdentifierHash>& chamberHashes,
47
STGC_RawDataContainer
& target)
const
;
48
50
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
51
53
ToolHandle<ISTGC_ROD_Decoder>
m_decoder
{
this
,
"Decoder"
,
"Muon::STGC_ROD_Decoder/STGC_ROD_Decoder"
};
54
56
SG::WriteHandleKey<STGC_RawDataContainer>
m_rdoContainerKey
{
this
,
"RdoLocation"
,
"sTGCRDO"
,
"Name of the sTGCRDO produced by RawDataProvider"
};
//MT
57
58
unsigned
int
m_maxhashtoUse
{0};
//MT
59
61
ServiceHandle<IROBDataProviderSvc>
m_robDataProvider
{
this
,
"RobProviderSvc"
,
"ROBDataProviderSvc"
};
62
64
Gaudi::Property<bool>
m_skipDecoding
{
this
,
"SkipDecoding"
,
false
,
"Skip the decoding but still write the container"
};
65
66
67
StatusCode
initRdoContainer
(
const
EventContext&,
STGC_RawDataContainer
*&)
const
;
68
std::vector<uint32_t>
m_allRobIds
;
69
70
SG::UpdateHandleKey<STGC_RawDataCollection_Cache>
m_rdoContainerCacheKey
{
this
,
"sTgcContainerCacheKey"
,
""
,
71
"Optional external cache for the sTGC container"
};
72
};
73
}
// end of namespace
74
75
#endif
// MUONTGC_CNVTOOLS_TGC_RAWDATAPROVIDERTOOLMT_H
AthAlgTool.h
IMuonIdHelperSvc.h
IMuonRawDataProviderTool.h
IROBDataProviderSvc.h
ISTGC_ROD_Decoder.h
STGC_RawDataCollection_Cache.h
STGC_RawDataContainer.h
Muon::STGC_RawDataContainer
Definition
STGC_RawDataContainer.h:18
Muon::STGC_RawDataProviderTool
A tool to decode STGC ROB fragments into STGC RDO (based on the TGC tool).
Definition
STGC_RawDataProviderTool.h:24
Muon::STGC_RawDataProviderTool::convertIntoContainer
StatusCode convertIntoContainer(const EventContext &ctx, const ROBFragmentList &fragements, const std::vector< IdentifierHash > &chamberHashes, STGC_RawDataContainer &target) const
Method that converts the ROBFragments into the passed container.
Definition
STGC_RawDataProviderTool.cxx:56
Muon::STGC_RawDataProviderTool::m_rdoContainerKey
SG::WriteHandleKey< STGC_RawDataContainer > m_rdoContainerKey
RDO container key.
Definition
STGC_RawDataProviderTool.h:56
Muon::STGC_RawDataProviderTool::m_skipDecoding
Gaudi::Property< bool > m_skipDecoding
Flag to skip decoding and write empty container.
Definition
STGC_RawDataProviderTool.h:64
Muon::STGC_RawDataProviderTool::initRdoContainer
StatusCode initRdoContainer(const EventContext &, STGC_RawDataContainer *&) const
Definition
STGC_RawDataProviderTool.cxx:102
Muon::STGC_RawDataProviderTool::m_decoder
ToolHandle< ISTGC_ROD_Decoder > m_decoder
Decoder for ROB fragment RDO conversion.
Definition
STGC_RawDataProviderTool.h:53
Muon::STGC_RawDataProviderTool::m_maxhashtoUse
unsigned int m_maxhashtoUse
Definition
STGC_RawDataProviderTool.h:58
Muon::STGC_RawDataProviderTool::~STGC_RawDataProviderTool
virtual ~STGC_RawDataProviderTool()=default
Default destructor.
Muon::STGC_RawDataProviderTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
The ID helper.
Definition
STGC_RawDataProviderTool.h:50
Muon::STGC_RawDataProviderTool::m_allRobIds
std::vector< uint32_t > m_allRobIds
Definition
STGC_RawDataProviderTool.h:68
Muon::STGC_RawDataProviderTool::initialize
virtual StatusCode initialize() override
Standard AlgTool method.
Definition
STGC_RawDataProviderTool.cxx:15
Muon::STGC_RawDataProviderTool::m_rdoContainerCacheKey
SG::UpdateHandleKey< STGC_RawDataCollection_Cache > m_rdoContainerCacheKey
Definition
STGC_RawDataProviderTool.h:70
Muon::STGC_RawDataProviderTool::convert
virtual StatusCode convert(const EventContext &ctx) const override
Definition
STGC_RawDataProviderTool.cxx:147
Muon::STGC_RawDataProviderTool::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Rob Data Provider handle.
Definition
STGC_RawDataProviderTool.h:61
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