|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ROOTCOLLECTION_ROOTCOLLECTION_H
6 #define ROOTCOLLECTION_ROOTCOLLECTION_H
15 #include "CoralBase/MessageStream.h"
17 #include "GaudiKernel/IFileMgr.h"
18 #include "GaudiKernel/SmartIF.h"
19 #include "Gaudi/PluginService.h"
33 namespace RootCollection {
44 class AttributeSpecification;
129 virtual void commit(
bool restartTransaction =
false );
void readAttributeListSpecification() const
void retrieveFileCatalog() const
coral::MessageStream m_poolOut
static const char *const c_attributeListLayoutName
~RootCollection()
Destructor.
virtual ICollectionDataEditor & dataEditor()
Returns an object used to add, update or delete rows of the collection.
ICollection::OpenMode m_mode
void writeAttributeListSpecification()
virtual ICollectionSchemaEditor & schemaEditor()
Returns an object used to modify the collection schema.
void delayedFileOpen(const std::string &method)
virtual ICollection::OpenMode openMode() const
Return openMode.
const unsigned long long TTREE_MAX_SIZE
std::unique_ptr< pool::IFileCatalog > m_fileCatalog
static const char *const poolOptToRootOpt[]
const int TTREE_AUTO_FLUSH
virtual ICollectionQuery * newQuery()
Returns an object used to query the collection.
static const char *const c_tokenBranchName
bool fileCatalogRequired() const
Collection (and CollectionProxy) implementation based on ROOT trees.
virtual void open()
Explicitly re-opens the collection after it has been closed.
std::string retrieveUniquePFN(const FileCatalog::FileID &fid)
RootCollectionDataEditor * m_dataEditor
OpenMode
Enumeration of the possible open modes of the collection.
static const Io::IoFlags poolOptToFileMgrOpt[]
virtual bool isOpen() const
Checks if the collection is open.
SmartIF< IFileMgr > m_fileMgr
const int TBRANCH_DEF_BUFSIZE
std::string retrievePFN() const
RootCollection(const RootCollection &)
copying unimplemented in this class.
Gaudi::PluginService::Factory< ICollection *(const ICollectionDescription *, ICollection::OpenMode, ISession *)> Factory
std::string retrieveBestPFN(const FileCatalog::FileID &fid) const
virtual void close()
Explicitly closes the collection.
virtual void commit(bool restartTransaction=false)
Commits the last changes made to the collection.
std::string retrieveFID()
TTree * getCollectionTree()
virtual const ICollectionDescription & description() const
Returns an object used to describe the collection properties.
RootCollection & operator=(const RootCollection &)
copying unimplemented in this class.
static const unsigned int c_maxLengthOfStrings
RootCollectionSchemaEditor * m_schemaEditor
CollectionDescription m_description
RootCollection(const pool::ICollectionDescription *description, pool::ICollection::OpenMode mode, pool::ISession *)
Constructor.