#include <TRTRawDataProviderTool.h>
Definition at line 28 of file TRTRawDataProviderTool.h.
◆ TRTRawDataProviderTool()
TRTRawDataProviderTool::TRTRawDataProviderTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ convert()
this is the main decoding method
Definition at line 55 of file TRTRawDataProviderTool.cxx.
62 static std::atomic_int DecodeErrCount = 0;
65 return StatusCode::SUCCESS;
68 std::unique_ptr<InDetTimeCollection> LVL1Collection;
69 std::unique_ptr<InDetTimeCollection> BCCollection;
70 std::vector<const ROBFragment*>::const_iterator rob_it = vecRobs.begin();
75 LVL1Collection = std::make_unique<InDetTimeCollection>();
76 LVL1Collection->reserve(vecRobs.size());
78 BCCollection = std::make_unique<InDetTimeCollection>();
79 BCCollection->reserve(vecRobs.size());
83 for(; rob_it!=vecRobs.end(); ++rob_it)
86 uint32_t robid = (*rob_it)->rod_source_id();
93 unsigned int lvl1id = (*rob_it)->rod_lvl1_id();
94 LVL1Collection->emplace_back(robid, lvl1id);
96 unsigned int bcid = (*rob_it)->rod_bc_id();
97 BCCollection->emplace_back(robid,
bcid);
100 ATH_MSG_DEBUG(
"Stored LVL1ID " << lvl1id <<
" and BCID " <<
bcid <<
" in InDetTimeCollections" );
104 if (
sc == StatusCode::FAILURE )
106 if (DecodeErrCount < 100) {
109 }
else if (100 == DecodeErrCount) {
111 "Too many Problem with TRT Decoding messages. Turning message "
125 ATH_CHECK(lvl1id.record(std::move(LVL1Collection)));
131 return StatusCode::SUCCESS;
◆ initialize()
StatusCode TRTRawDataProviderTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_bcidkey
◆ m_decoder
◆ m_lvl1idkey
◆ m_storeInDetTimeColls
Gaudi::Property<bool> TRTRawDataProviderTool::m_storeInDetTimeColls {this, "StoreInDetTimeCollections", true, "Store LVL1ID and BCID"} |
|
private |
The documentation for this class was generated from the following files: