28 return StatusCode::SUCCESS;
32 const ROBFragmentList& vecRobs,
const EventContext& ctx)
const {
39 if (!externalCacheRDO) {
47 std::make_unique<TgcRdoContainer>(update.ptr())));
57 ATH_MSG_ERROR(
"TGC RDO Container is null, cannot decode TGC data");
58 return StatusCode::FAILURE;
61 static thread_local int DecodeErrCount = 0;
65 if (
m_decoder->fillCollection(*fragment, *rdoContainer, ctx)
67 if (DecodeErrCount < 100) {
70 }
else if (100 == DecodeErrCount) {
72 "Too many Problems with TGC Decoding messages. Turning "
79 return StatusCode::SUCCESS;
82TGC_RawDataProviderTool::ROBFragmentList
84 const std::vector<IdentifierHash>& rdoIdhVect,
85 const EventContext& ctx)
const {
86 ROBFragmentList vecOfRobf;
90 "Could not get cabling, return empty vector of ROB fragments");
96 std::vector<uint32_t> robIds;
98 unsigned int size = rdoIdhVect.size();
99 for (
unsigned int i = 0; i <
size; ++i) {
104 "Unable to get TGC Identifier from collection hash id ");
108 uint32_t rodId =
m_hid2re.getRodID(tgcId, cabling);
109 uint32_t robId =
m_hid2re.getRobID(rodId);
110 std::vector<uint32_t>::iterator it_robId =
111 std::find(robIds.begin(), robIds.end(), robId);
112 if (it_robId == robIds.end()) {
113 robIds.push_back(robId);
123 ROBFragmentList vecOfRobf;
129 const std::vector<IdentifierHash>& rdoIdhVect,
130 const EventContext& ctx)
const {
131 ROBFragmentList vecOfRobf =
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
size_t size() const
Number of registered mappings.
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
size_t size() const
Duplicate of fullSize for backwards compatability.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
eformat::ROBFragment< PointerType > ROBFragment
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.