![]() |
ATLAS Offline Software
|
#include <TBranchAuxDynStore.h>
Public Member Functions | |
| TBranchAuxDynStore (TBranchAuxDynReader &reader, long long entry, bool standalone, std::recursive_mutex *iomtx=nullptr) | |
| virtual | ~TBranchAuxDynStore () |
| virtual const void * | getData (SG::auxid_t auxid) const override |
| implementation of the IAuxStore interface | |
| virtual void * | getData (SG::auxid_t auxid, size_t size, size_t capacity) override |
| virtual const SG::IAuxTypeVector * | getVector (SG::auxid_t auxid) const override |
| virtual const void * | getIOData (SG::auxid_t auxid) const override |
| implementation of the IAuxStoreIO interface | |
| virtual void * | getDecoration (SG::auxid_t auxid, size_t size, size_t capacity) override |
| Return the data vector for one aux data decoration item. | |
| virtual bool | isDecoration (SG::auxid_t auxid) const override |
| Test if a particular variable is tagged as a decoration. | |
| virtual size_t | size () const override |
| Return the number of elements in the store. | |
Protected Types | |
| typedef AthContainers_detail::mutex | mutex_t |
| Mutex used to synchronize modifications to the cache vector. | |
| typedef AthContainers_detail::lock_guard< mutex_t > | guard_t |
Protected Member Functions | |
| virtual bool | readData (SG::auxid_t auxid) override final |
| read data from ROOT and store it in m_vecs. Returns False on error | |
Protected Attributes | |
| TBranchAuxDynReader & | m_reader |
| long long | m_entry |
| mutex_t | m_mutex |
| std::recursive_mutex * | m_iomutex |
| Optional mutex used to serialize I/O with RootStorageSvc (not owned). | |
Definition at line 20 of file TBranchAuxDynStore.h.
|
protectedinherited |
Definition at line 67 of file RootAuxDynStore.h.
|
protectedinherited |
Mutex used to synchronize modifications to the cache vector.
Definition at line 66 of file RootAuxDynStore.h.
| TBranchAuxDynStore::TBranchAuxDynStore | ( | TBranchAuxDynReader & | reader, |
| long long | entry, | ||
| bool | standalone, | ||
| std::recursive_mutex * | iomtx = nullptr ) |
Definition at line 17 of file TBranchAuxDynStore.cxx.
|
inlinevirtual |
Definition at line 26 of file TBranchAuxDynStore.h.
|
overridevirtualinherited |
implementation of the IAuxStore interface
Definition at line 25 of file RootAuxDynStore.cxx.
|
overridevirtualinherited |
Definition at line 50 of file RootAuxDynStore.cxx.
|
overridevirtualinherited |
Return the data vector for one aux data decoration item.
| auxid | The identifier of the desired aux data item. |
| size | The current size of the container (in case the data item does not already exist). |
| capacity | The current capacity of the container (in case the data item does not already exist). |
| auxid | The identifier of the desired aux data item. |
| size | The current size of the container (in case the data item does not already exist). |
| capacity | The current capacity of the container (in case the data item does not already exist). |
Each aux data item is stored as a vector, with one entry per entry in the owning container. This returns a pointer to the start of the vector.
The base class implementation works except for the case where we have not yet created a vector for an item in the root file. We need to detect that case and raise an exception.
Definition at line 87 of file RootAuxDynStore.cxx.
|
overridevirtualinherited |
implementation of the IAuxStoreIO interface
Definition at line 57 of file RootAuxDynStore.cxx.
|
overridevirtualinherited |
Definition at line 35 of file RootAuxDynStore.cxx.
|
overridevirtualinherited |
Test if a particular variable is tagged as a decoration.
| auxid | The identifier of the desired aux data item. |
| auxid | The identifier of the desired aux data item. |
See getDecoration() above.
Definition at line 105 of file RootAuxDynStore.cxx.
|
finaloverrideprotectedvirtual |
read data from ROOT and store it in m_vecs. Returns False on error
Implements RootAuxDynStore.
Definition at line 25 of file TBranchAuxDynStore.cxx.
|
overridevirtualinherited |
Return the number of elements in the store.
May return 0 for a store with no aux data.
NOTE: this method will attempt to read data if size unknown (0) May return 0 for a store with no aux data.
Definition at line 121 of file RootAuxDynStore.cxx.
|
protectedinherited |
Definition at line 63 of file RootAuxDynStore.h.
|
protectedinherited |
Optional mutex used to serialize I/O with RootStorageSvc (not owned).
Definition at line 71 of file RootAuxDynStore.h.
|
mutableprotectedinherited |
Definition at line 68 of file RootAuxDynStore.h.
|
protected |
Definition at line 32 of file TBranchAuxDynStore.h.