diff --git a/InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/PixelClusterization.cxx b/InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/PixelClusterization.cxx index f6560df5b1205ee7407b0ec22b8ab62aa8be41d0..bf694c1e3ed653d2e7fb9c9036426575935eb41e 100644 --- a/InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/PixelClusterization.cxx +++ b/InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/PixelClusterization.cxx @@ -138,7 +138,7 @@ namespace InDet{ const COLLECTION* RDO_Collection(*rdoCollections); if (!RDO_Collection || RDO_Collection->empty()) continue; PixelClusterContainer::IDC_WriteHandle lock = clusterContainer->getWriteHandle(rdoCollections.hashId()); - if( lock.alreadyPresent() ) continue; + if( lock.OnlineAndPresentInAnotherView() ) continue; // Use one of the specific clustering AlgTools to make clusters std::unique_ptr<PixelClusterCollection> clusterCollection (m_clusteringTool->clusterize(*RDO_Collection, *m_idHelper)); @@ -172,7 +172,7 @@ namespace InDet{ if (!RDO_Collection) continue; PixelClusterContainer::IDC_WriteHandle lock = clusterContainer->getWriteHandle(listOfPixIds[i]); - if( lock.alreadyPresent() ) continue; + if( lock.OnlineAndPresentInAnotherView() ) continue; // Use one of the specific clustering AlgTools to make clusters std::unique_ptr<PixelClusterCollection> clusterCollection (m_clusteringTool->clusterize(*RDO_Collection, *m_idHelper)); diff --git a/InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/SCT_Clusterization.cxx b/InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/SCT_Clusterization.cxx index d4304456c733894681100bec6082d536be5fd0b5..0392d0aa6d5161b0fba8f77f16f7e6ce85abf6cd 100644 --- a/InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/SCT_Clusterization.cxx +++ b/InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/SCT_Clusterization.cxx @@ -119,7 +119,7 @@ namespace InDet { const InDetRawDataCollection<SCT_RDORawData>* rd{*rdoCollections}; ATH_MSG_DEBUG("RDO collection size=" << rd->size() << ", Hash=" << rd->identifyHash()); SCT_ClusterContainer::IDC_WriteHandle lock{clusterContainer->getWriteHandle(rdoCollections.hashId())}; - if (lock.alreadyPresent()) { + if (lock.OnlineAndPresentInAnotherView()) { ATH_MSG_DEBUG("Item already in cache , Hash=" << rd->identifyHash()); continue; } @@ -187,7 +187,7 @@ namespace InDet { SCT_ClusterContainer::IDC_WriteHandle lock{clusterContainer->getWriteHandle(listOfSCTIds[i])}; - if (lock.alreadyPresent()) { + if (lock.OnlineAndPresentInAnotherView()) { ATH_MSG_DEBUG("Item already in cache , Hash=" << listOfSCTIds[i]); continue; } diff --git a/InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/TRT_RIO_Maker.cxx b/InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/TRT_RIO_Maker.cxx index b5351ac681a4282614e476d39e0b4ed7a0ede5e3..0008dcf25499700fa4a942159bcbb53a2a6ebe8a 100644 --- a/InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/TRT_RIO_Maker.cxx +++ b/InnerDetector/InDetRecAlgs/InDetPrepRawDataFormation/src/TRT_RIO_Maker.cxx @@ -96,7 +96,7 @@ namespace InDet { for(const auto& rdoCollections : *rdoContainer) { const InDetRawDataCollection<TRT_RDORawData>* currentCollection(rdoCollections); InDet::TRT_DriftCircleContainer::IDC_WriteHandle lock = rioContainer->getWriteHandle(currentCollection->identifyHash()); - if( lock.alreadyPresent() ) continue; + if( lock.OnlineAndPresentInAnotherView() ) continue; std::unique_ptr<TRT_DriftCircleCollection> p_rio(m_driftcircle_tool->convert(m_mode_rio_production, currentCollection, ctx, m_trtBadChannels)); if(p_rio && !p_rio->empty()) { @@ -120,7 +120,7 @@ namespace InDet { const InDetRawDataCollection<TRT_RDORawData>* RDO_Collection (rdoContainer->indexFindPtr(id)); if (!RDO_Collection) continue; InDet::TRT_DriftCircleContainer::IDC_WriteHandle lock = rioContainer->getWriteHandle(id); - if( lock.alreadyPresent() ) continue; + if( lock.OnlineAndPresentInAnotherView() ) continue; // Use one of the specific clustering AlgTools to make clusters std::unique_ptr<TRT_DriftCircleCollection> p_rio(m_driftcircle_tool->convert(m_mode_rio_production, diff --git a/InnerDetector/InDetRecAlgs/SiSpacePointFormation/src/SiTrackerSpacePointFinder.cxx b/InnerDetector/InDetRecAlgs/SiSpacePointFormation/src/SiTrackerSpacePointFinder.cxx index 7f9c9b63e520d7738619457e553c6eee1a80d937..882c26a2835d96863cb384878a3013f9dea42f9d 100755 --- a/InnerDetector/InDetRecAlgs/SiSpacePointFormation/src/SiTrackerSpacePointFinder.cxx +++ b/InnerDetector/InDetRecAlgs/SiSpacePointFormation/src/SiTrackerSpacePointFinder.cxx @@ -221,7 +221,7 @@ StatusCode SiTrackerSpacePointFinder::execute (const EventContext& ctx) const // Create SpacePointCollection IdentifierHash idHash = colNext->identifyHash(); SpacePointContainer::IDC_WriteHandle lock = spacePointContainer_SCT->getWriteHandle(idHash); - if(lock.alreadyPresent()){ + if(lock.OnlineAndPresentInAnotherView()){ ATH_MSG_DEBUG("SCT Hash " << idHash << " is already in cache"); ++sctCacheCount; continue; //Skip if already present in cache @@ -277,7 +277,7 @@ StatusCode SiTrackerSpacePointFinder::execute (const EventContext& ctx) const nReceivedClustersPIX = (*colNext)->size(); IdentifierHash idHash = (*colNext)->identifyHash(); SpacePointContainer::IDC_WriteHandle lock = spacePointContainerPixel->getWriteHandle(idHash); - if(lock.alreadyPresent()){ + if(lock.OnlineAndPresentInAnotherView()){ ATH_MSG_DEBUG("pixel Hash " << idHash << " is already in cache"); ++pixCacheCount; continue;