5#ifndef ROOTCOLLECTION_ROOTCOLLECTION_H
6#define ROOTCOLLECTION_ROOTCOLLECTION_H
14#include "GaudiKernel/IFileMgr.h"
15#include "GaudiKernel/SmartIF.h"
16#include "Gaudi/PluginService.h"
73 virtual void addTreeBranch(
const std::string& name,
const std::string& type_name );
76 virtual void open() final override;
82 virtual
void commit(
bool restartTransaction = false ) final override;
85 virtual
void close() final override;
APRMessaging(const std::string &name)
An implementation of the ICollectionDescription interface used to define the properties of a collecti...
A class that acts as a buffer to be filled with the event reference and associated metadata values of...
An interface used to navigate the result of a query on a collection.
An interface used to define the properties of a collection to be constructed and to retrieve these pr...
An interface to a storage technology specific collection of event references and attributes.
OpenMode
Enumeration of the possible open modes of the collection.
ISession is the interface class for user (macroscopic) sessions Every transaction and connection to a...
CollectionDescription m_description
virtual void open() final override
Explicitly re-opens the collection after it has been closed.
virtual void close() final override
Explicitly closes the collection.
virtual void insertRow(const pool::CollectionRowBuffer &inputRowBuffer) final override
Adds a new row of data to the collection.
virtual void addTreeBranch(const std::string &name, const std::string &type_name)
void addField(ROOT::RNTupleModel *model, const std::string &field_name, const std::string &field_type)
SmartIF< IFileMgr > m_fileMgr
~RootCollection()
Destructor.
virtual void commit(bool restartTransaction=false) final override
Commits the last changes made to the collection.
virtual ICollectionCursor & cursor() final override
Returns a cursor for the collection.
virtual const ICollectionDescription & description() const final override
Returns an object used to describe the collection properties.
RootCollection(const pool::ICollectionDescription *description, pool::ICollection::OpenMode mode, pool::ISession *)
Constructor.
Gaudi::PluginService::Factory< ICollection *(const ICollectionDescription *, ICollection::OpenMode, ISession *)> Factory
std::unique_ptr< ROOT::RNTupleReader > m_reader
ICollection::OpenMode m_mode
std::unique_ptr< ROOT::RNTupleWriter > m_rntupleWriter
Selection rules: declare transient members.