14 ISvcLocator* pSvcLocator) :
59 return StatusCode::SUCCESS;
74 rdoContainer = std::make_unique<TRT_RDO_Container>(updateh.
ptr());
79 std::unique_ptr<TRT_BSErrContainer> bsErrCont=std::make_unique<TRT_BSErrContainer>();
81 std::vector<uint32_t> listOfRobs;
94 for (; roi!=roiE; ++roi) {
101 std::vector<const ROBFragment*> listOfRobf;
104 ATH_MSG_DEBUG(
"Number of ROB fragments " << listOfRobf.size() );
107 const bool hasExternalCache = rdoContainer->hasExternalCache();
108 std::unique_ptr<DataPool<TRT_LoLumRawData>> dataItemsPool =
nullptr;
109 if (!hasExternalCache) {
110 dataItemsPool = std::make_unique<DataPool<TRT_LoLumRawData>>(ctx);
111 dataItemsPool->reserve(100000);
113 dataItemsPool = std::make_unique<DataPool<TRT_LoLumRawData>>(ctx);
117 if (
m_rawDataTool->convert(listOfRobf,&(*rdoContainer),bsErrCont.get(), dataItemsPool.get(), ctx).isFailure()){
120 ATH_MSG_DEBUG(
"Number of Collections in IDC " << rdoContainer->numberOfCollections() );
130 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
An algorithm that can be simultaneously executed in multiple threads.
DataModel_detail::const_iterator< DataVector > const_iterator
void push_back(const IRoiDescriptor *roi)
add a RoiDescriptor
bool manageConstituents() const
always manage constituents ???
void setComposite(bool b=true)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
pointer_type ptr()
Dereference the pointer.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
TRTRawDataProvider(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
SG::WriteHandleKey< TRT_BSErrContainer > m_bsErrContKey
SG::ReadHandleKey< TrigRoiDescriptorCollection > m_roiCollectionKey
ToolHandle< ITRTRawDataProviderTool > m_rawDataTool
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
virtual StatusCode initialize()
Initialize.
virtual StatusCode execute(const EventContext &ctx) const
Execute.
SG::WriteHandleKey< TRT_RDO_Container > m_rdoContainerKey
ToolHandle< IRegSelTool > m_regionSelector
SG::UpdateHandleKey< TRT_RDO_Cache > m_rdoCacheKey
Gaudi::Property< bool > m_useDataPoolWithCache
ServiceHandle< ITRT_CablingSvc > m_CablingSvc
nope - should be used for standalone also, perhaps need to protect the class def bits ifndef XAOD_ANA...
eformat::ROBFragment< PointerType > ROBFragment