5#ifndef EVENT_BOOKKEEPER_TOOLS__CUT_BOOKKEEPERS_LOCAL_CACHE_H
6#define EVENT_BOOKKEEPER_TOOLS__CUT_BOOKKEEPERS_LOCAL_CACHE_H
16 std::vector<std::unique_ptr<xAOD::CutBookkeeperContainer>>
cont;
17 std::vector<std::unique_ptr<xAOD::CutBookkeeperAuxContainer>>
aux;
20 std::size_t
size()
const {
return cont.size(); }
29 if (!target.empty() && !extend) {
33 size_t toAdd =
size - target.size();
34 for (std::size_t i = 0; i < toAdd; ++i) {
35 auto container = std::make_unique<xAOD::CutBookkeeperContainer>();
36 auto auxContainer = std::make_unique<xAOD::CutBookkeeperAuxContainer>();
37 container->
setStore(auxContainer.get());
38 target.cont.push_back(std::move(container));
39 target.aux.push_back(std::move(auxContainer));
void setStore(SG::IAuxStore *store)
Set the store associated with this object.
CutBookkeeperContainer_v1 CutBookkeeperContainer
Define the latest version of the CutBookkeeperContainer class.
Helper in-memory structure.
std::vector< std::unique_ptr< xAOD::CutBookkeeperContainer > > cont
std::vector< std::unique_ptr< xAOD::CutBookkeeperAuxContainer > > aux
xAOD::CutBookkeeperContainer * at(std::size_t n) const
static void prepareContainers(CutBookkeepersLocalCache &target, size_t size, bool extend=false)