Skip to content
Snippets Groups Projects
Commit 3f2b36c5 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'fixMixingES.AthenaServices-20171024' into 'master'

AthenaServices: Fix DP handling in MixingEventSelector::loadAddresses.

See merge request !5775

Former-commit-id: 6158f49e
parents 1b0e3eab 388fef4e
No related branches found
No related tags found
No related merge requests found
......@@ -276,15 +276,18 @@ MixingEventSelector::loadAddresses(StoreID::type storeID,
return StatusCode::SUCCESS;
CLID mclid = ClassID_traits<MergedEventInfo>::ID();
auto addr = std::make_unique<GenericAddress> (0, mclid);
auto tad = std::make_unique<SG::TransientAddress> (mclid,
m_mergedEventInfoKey,
addr.release(),
false);
auto dp = std::make_unique<SG::DataProxy> (tad.release(),
this,
true);
ATH_CHECK( m_pEventStore->addToStore (mclid, dp.release()) );
if (!m_pEventStore->contains (mclid, m_mergedEventInfoKey)) {
// We create the DataProxy here rather than relying on ProxyProvideSvc
// to do it because we want to set a non-default dataloader on the proxy.
SG::TransientAddress tad (mclid,
m_mergedEventInfoKey,
new GenericAddress (0, mclid),
false);
auto dp = std::make_unique<SG::DataProxy> (std::move(tad),
this,
true);
ATH_CHECK( m_pEventStore->addToStore (mclid, dp.release()) );
}
return StatusCode::SUCCESS;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment