8#include "GaudiKernel/ServiceHandle.h"
9#include "GaudiKernel/ThreadLocalContext.h"
26 "Cannot write out RpcSectorLogic while running with cached RpcPad containers"
27 " as the RpcSectorLogic is not cached at the same time and the written containers will desync."
28 " Please turn off RpcSectorLogic writing when running with cached bytestream container");
29 return StatusCode::FAILURE;
34 return StatusCode::SUCCESS;
45 std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*> vecOfRobf;
47 m_robDataProvider->getROBData(ctx, robIds, vecOfRobf);
53 return this->
convert(vecRobs, Gaudi::Hive::currentContext());
58 std::vector<IdentifierHash> collections;
60 return convert(vecRobs, collections, ctx);
65 return this->
convert(robIds, Gaudi::Hive::currentContext());
70 std::vector<IdentifierHash> collections;
71 std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*> vecOfRobf;
72 m_robDataProvider->getROBData(ctx, robIds, vecOfRobf);
74 return convert(vecOfRobf, collections, ctx);
79 return this->
convert(rdoIdhVect, Gaudi::Hive::currentContext());
86 std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*> vecOfRobf;
87 std::vector<uint32_t> robIds;
89 m_robDataProvider->getROBData(ctx, robIds, vecOfRobf);
91 return convert(vecOfRobf, rdoIdhVect, ctx);
95 return this->
convert(vecRobs, collections, Gaudi::Hive::currentContext());
99 const EventContext& ctx)
const {
109 if (!externalCacheRDO) {
115 ATH_CHECK(rdoContainerHandle.
record(std::make_unique<RpcPadContainer>(update.ptr())));
123 ATH_CHECK(logicHandle.
record(std::make_unique<RpcSectorLogicContainer>()));
124 logic = logicHandle.
ptr();
128 ATH_CHECK(convertIntoContainers(vecRobs, collections, pad, logic,
true));
130 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode giveROB_fromRDO(const IdentifierHash rdoHashId, uint32_t &robId) const
const std::vector< uint32_t > & giveFullListOfRobIds() const
Use IdentifiableContainer with RpcPad.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
eformat::ROBFragment< PointerType > ROBFragment