ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CutBookkeepersLocalCache Struct Referencefinal

Helper in-memory structure. More...

#include <CutBookkeepersLocalCache.h>

Collaboration diagram for CutBookkeepersLocalCache:

Public Member Functions

bool empty () const
 
std::size_t size () const
 
xAOD::CutBookkeeperContainerat (std::size_t n) const
 
void clear ()
 

Static Public Member Functions

static void prepareContainers (CutBookkeepersLocalCache &target, size_t size, bool extend=false)
 

Public Attributes

std::vector< std::unique_ptr< xAOD::CutBookkeeperContainer > > cont
 
std::vector< std::unique_ptr< xAOD::CutBookkeeperAuxContainer > > aux
 

Detailed Description

Helper in-memory structure.

Author
Tadej Novak tadej.nosp@m.@cer.nosp@m.n.ch

Definition at line 14 of file CutBookkeepersLocalCache.h.

Member Function Documentation

◆ at()

xAOD::CutBookkeeperContainer* CutBookkeepersLocalCache::at ( std::size_t  n) const
inline

Definition at line 21 of file CutBookkeepersLocalCache.h.

21 { return cont.at(n).get(); }

◆ clear()

void CutBookkeepersLocalCache::clear ( )
inline

Definition at line 22 of file CutBookkeepersLocalCache.h.

22 { cont.clear(); aux.clear(); }

◆ empty()

bool CutBookkeepersLocalCache::empty ( ) const
inline

Definition at line 19 of file CutBookkeepersLocalCache.h.

19 { return cont.empty(); }

◆ prepareContainers()

static void CutBookkeepersLocalCache::prepareContainers ( CutBookkeepersLocalCache target,
size_t  size,
bool  extend = false 
)
inlinestatic

Definition at line 25 of file CutBookkeepersLocalCache.h.

28  {
29  if (!target.empty() && !extend) {
30  return;
31  }
32 
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));
40  }
41  }

◆ size()

std::size_t CutBookkeepersLocalCache::size ( ) const
inline

Definition at line 20 of file CutBookkeepersLocalCache.h.

20 { return cont.size(); }

Member Data Documentation

◆ aux

std::vector<std::unique_ptr<xAOD::CutBookkeeperAuxContainer> > CutBookkeepersLocalCache::aux

Definition at line 17 of file CutBookkeepersLocalCache.h.

◆ cont

std::vector<std::unique_ptr<xAOD::CutBookkeeperContainer> > CutBookkeepersLocalCache::cont

Definition at line 16 of file CutBookkeepersLocalCache.h.


The documentation for this struct was generated from the following file:
CutBookkeepersLocalCache::size
std::size_t size() const
Definition: CutBookkeepersLocalCache.h:20
CutBookkeepersLocalCache::cont
std::vector< std::unique_ptr< xAOD::CutBookkeeperContainer > > cont
Definition: CutBookkeepersLocalCache.h:16
lumiFormat.i
int i
Definition: lumiFormat.py:85
CutBookkeepersLocalCache::aux
std::vector< std::unique_ptr< xAOD::CutBookkeeperAuxContainer > > aux
Definition: CutBookkeepersLocalCache.h:17
beamspotman.n
n
Definition: beamspotman.py:731
DeMoUpdate.toAdd
bool toAdd
Definition: DeMoUpdate.py:1304
ActsTrk::detail::MakeDerivedVariant::extend
constexpr std::variant< Args..., T > extend(const std::variant< Args... > &, const T &)
Definition: MakeDerivedVariant.h:17
copySelective.target
string target
Definition: copySelective.py:37