Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef POOL_RNTUPLECONTAINER_H
10 #define POOL_RNTUPLECONTAINER_H 1
25 namespace SG {
class IAuxStoreIO; }
30 #include "ROOT/RNTupleView.hxx"
37 using ROOT::Experimental::RNTupleView;
57 std::optional< RNTupleView<void> >
view;
60 void*
object =
nullptr;
virtual void useNextRecordId(uint64_t nextID) override final
Suggest next Record ID for tbe next object written - used only with synced indexes.
Definition of a field info structure.
RootDatabase * m_rootDb
Root database file reference.
std::unique_ptr< RootAuxDynIO::IRNTupleAuxDynWriter > auxdyn_writer
int aux_iostore_IFoffset
IOStore interface offset for object type in this branch (for casting)
virtual DbStatus save(DbObjectHandle< DbObject > &objH) override final
Add single entry to container.
virtual uint64_t nextRecordId() override final
Number of next record in the container (=size if no delete is allowed)
virtual DbStatus select(DbSelect &criteria) override final
Define selection criteria.
virtual DbStatus loadObject(void **ptr, ShapeH shape, Token::OID_t &oid) override final
Find object by object identifier and load it into memory.
bool isDirty() const
Return true if this branch container was updated and it's TTree needs to be Filled.
virtual uint64_t size() override final
Number of entries within the container.
virtual DbStatus save(DbObjectHandle< DbObject > &objH) override
Add single entry to container.
const DbTypeInfo * m_type
reference to exact type description
virtual DbStatus writeObject(ActionList::value_type &) override final
Commit single entry to container.
bool m_isDirty
flag set on writing to prevent double writes in the same commit
std::string m_name
Container name.
DbDatabase m_dbH
Parent Database handle.
bool const RAWDATA *ch2 const
const std::string & getName() const
Return the name of the container.
RNTupleContainer()
Standard constructor.
Interface providing I/O for a generic auxiliary store.
std::unique_ptr< RootAuxDynIO::IRootAuxDynReader > auxdyn_reader
virtual DbStatus open(DbDatabase &dbH, const std::string &nam, const DbTypeInfo *info, DbAccessMode mod) override final
Open the container for object access.
RNTupleReader * m_ntupleReader
Internal cache of the native RNTupleReader.
virtual DbStatus setOption(const DbOption &opt) override final
Set options.
const uint32_t m_indexMulti
const class Shape * ShapeH
std::vector< FieldDesc > m_fieldDescs
List of field descriptors.
Interface for a RNTuple-based Writer that handles AuxDyn attributes Works in conjuction with the gene...
SG::IAuxStoreIO * getIOStorePtr()
virtual DbStatus getOption(DbOption &opt) override final
Access options.
virtual DbStatus close() override final
Close the container and deallocate resources.
FieldDesc(const DbColumn &c)
virtual DbStatus isShapeSupported(const DbTypeInfo *typ) const override final
Ask if a given shape is supported.
RootStorageSvc::RNTupleWriterHelper * m_ntupleWriter
Internal cache of the RNTupleWriterHelper.
virtual DbStatus fetch(DbSelect &sel) override final
Fetch next object address of the selection to set token.
FieldDesc & operator=(FieldDesc const &other)=delete
DbStatus initObjectFieldDesc(FieldDesc &dsc)
Init a field description for an object (i.e. find TClass etc.)
const std::string typeName()
virtual DbStatus checkAccess(DbDatabase &dbH, const std::string &nam) const override final
Check if we can access the container for reading with the given type.
int m_ioBytes
Number of bytes written/read during last operation. Set to -1 if it failed.
Specialization of RootAuxDynStore for reading Aux Dynamic attributes from RNTuple.
FieldDesc(FieldDesc const &other)=delete
virtual ~RNTupleContainer()
ROOT::Experimental::RNTupleReader RNTupleReader
virtual DbStatus transAct(Transaction::Action action) override final
Execute transaction action.
void clearDirty()
Clear the dirty status (used after containing TTree was Filled)
std::optional< RNTupleView< void > > view
FieldDesc(FieldDesc &&other)=default
FieldDesc & operator=(FieldDesc &&other)=default