Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
RAuxManager.cxx
Go to the documentation of this file.
1 // Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2 
3 // Local include(s):
5 
8 
9 namespace xAOD {
10 
12  ::Bool_t sharedOwner)
13  : m_store(), m_storePtr(store), m_entry(entry) {
14 
15  if (sharedOwner) {
16  m_store.reset(store);
17  }
18 }
19 
20 ::Int_t RAuxManager::getEntry(::Int_t getall) {
21 
22  if (m_storePtr->getEntry(m_entry.get(), getall).isFailure()) {
23  return -1;
24  } else {
25  return 0;
26  }
27 }
28 
29 const void* RAuxManager::object() const {
30 
31  return m_storePtr;
32 }
33 
35 
36  return m_storePtr;
37 }
38 
40 
41  if (m_store.get()) {
42  m_store.reset(reinterpret_cast<RAuxStore*>(ptr));
43  }
44  m_storePtr = reinterpret_cast<RAuxStore*>(ptr);
45 
46  return;
47 }
48 
51 ::Bool_t RAuxManager::create() {
52 
53  return kTRUE;
54 }
55 
60 ::Bool_t RAuxManager::isSet() const {
61 
62  return kTRUE;
63 }
64 
70 
71  // Clear the store if it's a container store:
73  m_storePtr->resize(0);
74  m_storePtr->reset();
75  }
76 
77  return;
78 }
79 
81 
82  return m_storePtr;
83 }
84 
86 
87  return m_storePtr;
88 }
89 
90 } // namespace xAOD
SGTest::store
TestStore store
Definition: TestStore.cxx:23
xAOD::RAuxManager::m_entry
std::reference_wrapper<::Long64_t > m_entry
Entry number.
Definition: RAuxManager.h:62
xAOD::RAuxManager::getStore
RAuxStore * getStore()
Get a type-specific pointer to the managed object.
Definition: RAuxManager.cxx:80
RAuxManager.h
RAuxStore.h
xAOD::RAuxManager::m_storePtr
RAuxStore * m_storePtr
Pointer to the auxiliary store object.
Definition: RAuxManager.h:60
xAOD::RAuxStore
"ROOT @c RNTuple implementation" of IAuxStore
Definition: RAuxStore.h:31
xAOD::RAuxManager::getEntry
virtual ::Int_t getEntry(::Int_t getall=0) override
Function for updating the object in memory if needed.
Definition: RAuxManager.cxx:20
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
xAOD::RAuxStore::getEntry
StatusCode getEntry(std::int64_t entry, int getall=0)
Get entry from the input RNTuple.
Definition: RAuxStore.cxx:691
xAOD::details::AuxStoreBase::structMode
EStructMode structMode() const
Get what structure mode the object was constructed with.
Definition: AuxStoreBase.cxx:27
xAOD::details::AuxStoreBase::EStructMode::kContainerStore
@ kContainerStore
The object describes an entire container.
Message.h
xAOD::RAuxManager::reset
virtual void reset() override
Reset the object at the end of processing of an event.
Definition: RAuxManager.cxx:69
xAOD::RAuxManager::m_store
std::shared_ptr< RAuxStore > m_store
The auxiliary store object.
Definition: RAuxManager.h:58
xAOD::RAuxManager::RAuxManager
RAuxManager(RAuxStore *store, ::Long64_t &entry, ::Bool_t sharedOwner=kTRUE)
Constructor getting hold of an auxiliary store object.
Definition: RAuxManager.cxx:11
xAOD::RAuxManager::getConstStore
const SG::IConstAuxStore * getConstStore() const
Get a convenience pointer to the managed object.
Definition: RAuxManager.cxx:85
xAOD::RAuxManager::isSet
virtual ::Bool_t isSet() const override
Check if the object was set for the current event.
Definition: RAuxManager.cxx:60
xAOD::details::AuxStoreBase::resize
virtual bool resize(std::size_t size) override
Resize the arrays to a given size.
Definition: AuxStoreBase.cxx:371
xAOD::RAuxManager::object
virtual const void * object() const override
Function getting a const pointer to the object being handled.
Definition: RAuxManager.cxx:29
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
xAOD::RAuxManager::setObject
virtual void setObject(void *obj) override
Function replacing the object being handled.
Definition: RAuxManager.cxx:39
xAOD::RAuxStore::reset
virtual void reset() override
Tell the object that all branches will need to be re-read.
Definition: RAuxStore.cxx:762
xAOD::RAuxManager::create
virtual ::Bool_t create() override
Create the object for the current event.
Definition: RAuxManager.cxx:51
SG::IConstAuxStore
Interface for const operations on an auxiliary store.
Definition: IConstAuxStore.h:64