#include <MDT_RawDataProviderToolMT.h>
|
| ToolHandle< MdtROD_Decoder > | m_decoder {this, "Decoder", "MdtROD_Decoder/MdtROD_Decoder"} |
| SG::WriteHandleKey< MdtCsmContainer > | m_rdoContainerKey |
| ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
| unsigned int | m_maxhashtoUse = 0U |
| ServiceHandle< IROBDataProviderSvc > | m_robDataProvider {this, "ROBDataProviderSvc", "ROBDataProviderSvc"} |
| SG::ReadCondHandleKey< MuonMDT_CablingMap > | m_readKey {this, "ReadKey", "MuonMDT_CablingMap", "Key of MuonMDT_CablingMap"} |
| SG::UpdateHandleKey< MdtCsm_Cache > | m_rdoContainerCacheKey |
| | This is the key for the cache for the CSM containers, can be empty.
|
◆ MDT_RawDataProviderToolMT()
| Muon::MDT_RawDataProviderToolMT::MDT_RawDataProviderToolMT |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
Definition at line 11 of file MDT_RawDataProviderToolMT.cxx.
11 :
12 base_class(t, n, p) {
13 declareInterface<Muon::IMuonRawDataProviderTool>(this);
14
15}
◆ ~MDT_RawDataProviderToolMT()
| virtual Muon::MDT_RawDataProviderToolMT::~MDT_RawDataProviderToolMT |
( |
| ) |
|
|
virtualdefault |
◆ convert() [1/10]
| StatusCode Muon::MDT_RawDataProviderToolMT::convert |
( |
| ) |
const |
|
overridevirtual |
◆ convert() [2/10]
| StatusCode Muon::MDT_RawDataProviderToolMT::convert |
( |
const EventContext & | ctx | ) |
const |
|
overridevirtual |
for the entire event
Definition at line 65 of file MDT_RawDataProviderToolMT.cxx.
67{
68 SG::ReadCondHandle<MuonMDT_CablingMap> readHandle{
m_readKey, ctx};
69 const MuonMDT_CablingMap* readCdo{*readHandle};
70 if (!readCdo) {
72 return StatusCode::FAILURE;
73 }
75}
const ListOfROB & getAllROBId() const
return the ROD id of a given chamber
◆ convert() [3/10]
◆ convert() [4/10]
EventContext.
Definition at line 115 of file MDT_RawDataProviderToolMT.cxx.
116 {
118
120
121 MdtCsmContainer* rdoContainer = nullptr;
122
123
124
125
126
128 if (!externalCacheRDO) {
129
132 rdoContainer = rdoContainerHandle.ptr();
133 } else {
134
137 ATH_CHECK(rdoContainerHandle.record(std::make_unique<MdtCsmContainer>(
update.ptr())));
139 rdoContainer = rdoContainerHandle.ptr();
140 }
141
142
143 if (!rdoContainer) {
144 ATH_MSG_ERROR(
"MdtCsmContainer is null, cannot convert MDT raw data");
145 return StatusCode::FAILURE;
146 }
147
148
150
151 return StatusCode::SUCCESS;
152}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
◆ convert() [5/10]
◆ convert() [6/10]
◆ convert() [7/10]
| StatusCode Muon::MDT_RawDataProviderToolMT::convert |
( |
const std::vector< IdentifierHash > & | HashVec | ) |
const |
|
overridevirtual |
◆ convert() [8/10]
| StatusCode Muon::MDT_RawDataProviderToolMT::convert |
( |
const std::vector< IdentifierHash > & | HashVec, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 81 of file MDT_RawDataProviderToolMT.cxx.
81 {
82 SG::ReadCondHandle<MuonMDT_CablingMap> readHandle{
m_readKey, ctx};
83 const MuonMDT_CablingMap* readCdo{*readHandle};
84 if (!readCdo) {
86 return StatusCode::FAILURE;
87 }
89}
uint32_t getROBId(const IdentifierHash &stationCode, MsgStream &log) const
return the ROD id of a given chamber, given the hash id
◆ convert() [9/10]
| StatusCode Muon::MDT_RawDataProviderToolMT::convert |
( |
const std::vector< uint32_t > & | robIds | ) |
const |
|
overridevirtual |
◆ convert() [10/10]
| StatusCode Muon::MDT_RawDataProviderToolMT::convert |
( |
const std::vector< uint32_t > & | robIds, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
for a particular vector of ROBId's
Definition at line 95 of file MDT_RawDataProviderToolMT.cxx.
95 {
96 std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*> vecOfRobf;
99}
◆ convertIntoContainer()
Convert method.
Definition at line 41 of file MDT_RawDataProviderToolMT.cxx.
42 {
44
46
47 if (frag->rod_ndata() != 0) {
48 m_decoder->fillCollections(*frag, mdtContainer).ignore();
49 } else {
50 ATH_MSG_DEBUG(
" ROB " << MSG::hex << frag->source_id() <<
" is delivered with an empty payload" );
51
52 }
53 }
54
56 return StatusCode::SUCCESS;
57}
virtual size_t numberOfCollections() const override final
return number of collections
eformat::ROBFragment< PointerType > ROBFragment
◆ initialize()
| StatusCode Muon::MDT_RawDataProviderToolMT::initialize |
( |
| ) |
|
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 17 of file MDT_RawDataProviderToolMT.cxx.
17 {
19
21
22
25
27
28
32
36
38 return StatusCode::SUCCESS;
39}
◆ m_decoder
| ToolHandle<MdtROD_Decoder> Muon::MDT_RawDataProviderToolMT::m_decoder {this, "Decoder", "MdtROD_Decoder/MdtROD_Decoder"} |
|
private |
◆ m_idHelperSvc
◆ m_maxhashtoUse
| unsigned int Muon::MDT_RawDataProviderToolMT::m_maxhashtoUse = 0U |
|
private |
◆ m_rdoContainerCacheKey
Initial value:{this, "CsmContainerCacheKey", "",
"Optional external cache for the CSM container"
}
This is the key for the cache for the CSM containers, can be empty.
Definition at line 79 of file MDT_RawDataProviderToolMT.h.
79 {this, "CsmContainerCacheKey", "",
80 "Optional external cache for the CSM container"
81 };
◆ m_rdoContainerKey
Initial value:{this, "RdoLocation", "MDTCSM",
"Name of the MDTCSM produced by RawDataProvider"}
Definition at line 67 of file MDT_RawDataProviderToolMT.h.
67 {this, "RdoLocation", "MDTCSM",
68 "Name of the MDTCSM produced by RawDataProvider"};
◆ m_readKey
◆ m_robDataProvider
The documentation for this class was generated from the following files: