Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef RNTCOLLECTION_H
6 #define RNTCOLLECTION_H
13 #include "CoralBase/MessageStream.h"
15 #include "GaudiKernel/IFileMgr.h"
16 #include "GaudiKernel/SmartIF.h"
17 #include "Gaudi/PluginService.h"
27 #if ROOT_VERSION_CODE >= ROOT_VERSION( 6, 35, 0 )
34 namespace ROOT::Experimental {
40 using RNTupleModel = ROOT::Experimental::RNTupleModel;
41 using RNTupleWriter = ROOT::Experimental::RNTupleWriter;
42 using RNTupleReader = ROOT::Experimental::RNTupleReader;
50 namespace RootCollection {
52 class AttributeSpecification;
54 static constexpr
auto MODULE_NAME =
"RootCollection";
104 virtual
void open() final override;
113 virtual
void commit(
bool restartTransaction = false ) final override;
116 virtual
void close() final override;
std::string retrieveFID()
void addField(ROOT::RNTupleModel *model, const std::string &field_name, const std::string &field_type)
CollectionDescription m_description
std::unique_ptr< ROOT::RNTupleReader > m_reader
virtual ICollection::OpenMode openMode() const final override
Return openMode.
void retrieveFileCatalog() const
std::unique_ptr< pool::IFileCatalog > m_fileCatalog
bool const RAWDATA *ch2 const
RNTCollection(const pool::ICollectionDescription *description, pool::ICollection::OpenMode mode, pool::ISession *)
Constructor.
virtual void close() final override
Explicitly closes the collection.
SmartIF< IFileMgr > m_fileMgr
Collection (and CollectionProxy) implementation based on RNTuple.
bool fileCatalogRequired() const
std::string retrieveUniquePFN(const FileCatalog::FileID &fid)
std::unique_ptr< ROOT::RNTupleWriter > m_rntupleWriter
OpenMode
Enumeration of the possible open modes of the collection.
Gaudi::PluginService::Factory< ICollection *(const ICollectionDescription *, ICollection::OpenMode, ISession *)> Factory
virtual ICollectionQuery * newQuery() final override
Returns an object used to query the collection.
std::string retrievePFN() const
virtual const ICollectionDescription & description() const final override
Returns an object used to describe the collection properties.
virtual void commit(bool restartTransaction=false) final override
Commits the last changes made to the collection.
virtual void insertRow(const pool::CollectionRowBuffer &inputRowBuffer) final override
Adds a new row of data to the collection.
coral::MessageStream m_poolOut
virtual bool isOpen() const final override
Checks if the collection is open.
virtual void open() final override
Explicitly re-opens the collection after it has been closed.
std::unique_ptr< ROOT::RNTupleReader > getCollectionRNTuple()
std::string retrieveBestPFN(const FileCatalog::FileID &fid) const
void delayedFileOpen(const std::string &method)
~RNTCollection()
Destructor.
Selection rules: declare transient members.
ICollection::OpenMode m_mode