Skip to content
Snippets Groups Projects
Commit 055da244 authored by Stewart Martin-Haugh's avatar Stewart Martin-Haugh
Browse files

Merge branch 'SiTrackerSpacePointFinder_cache_case' into '23.0'

SiTrackerSpacePointFinder allow DataPool for the cache case

See merge request !64402
parents 56bd969c 7a8f9bbf
No related branches found
No related tags found
3 merge requests!64457Daily merge of 23.0 into main,!64425Daily merge of 23.0 into main,!64402SiTrackerSpacePointFinder allow DataPool for the cache case
......@@ -200,8 +200,9 @@ namespace InDet {
bool m_selectSCTs;
bool m_overlap; //!< process all overlapping SCT pairs if true.
bool m_allClusters; //!< process all clusters without limits if true.
bool m_cachemode{false}; //!< used for online MT counters
Gaudi::Property<bool> m_useDataPoolWithCache{
this, "useDataPoolWithCache", false, "use DataPool With Cache"};
//@}
/**
......
......@@ -168,8 +168,11 @@ StatusCode SiTrackerSpacePointFinder::execute (const EventContext& ctx) const
}
const bool hasExternalCache = spacePointContainerPixel->hasExternalCache();
if (!hasExternalCache) {
dataItemsPixel = std::make_unique<DataPool<PixelSpacePoint>>(ctx);
dataItemsPixel->reserve(5000); // Some large default size
dataItemsPixel = std::make_unique<DataPool<PixelSpacePoint>>(ctx);
dataItemsPixel->reserve(5000); // Some large default size
} else if (m_useDataPoolWithCache) {
dataItemsPixel = std::make_unique<DataPool<PixelSpacePoint>>(ctx);
// Default size for now 1024 let it expand on its own
}
}
......@@ -190,6 +193,9 @@ StatusCode SiTrackerSpacePointFinder::execute (const EventContext& ctx) const
if (!hasExternalCache) {
dataItemsSCT = std::make_unique<DataPool<SCT_SpacePoint>>(ctx);
dataItemsSCT->reserve(10000); // Some large default size
} else if (m_useDataPoolWithCache) {
dataItemsSCT = std::make_unique<DataPool<SCT_SpacePoint>>(ctx);
// Default size for now 1024 let it expand on its own
}
}
......
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