ATLAS Offline Software
|
Collection (and CollectionProxy) implementation based on ROOT trees. More...
#include <RootCollection.h>
Public Types | |
typedef Gaudi::PluginService::Factory< ICollection *(const ICollectionDescription *, ICollection::OpenMode, ISession *)> | Factory |
enum | OpenMode { CREATE, CREATE_AND_OVERWRITE, UPDATE, READ } |
Enumeration of the possible open modes of the collection. More... | |
Public Member Functions | |
RootCollection (const pool::ICollectionDescription *description, pool::ICollection::OpenMode mode, pool::ISession *) | |
Constructor. More... | |
~RootCollection () | |
Destructor. More... | |
virtual ICollection::OpenMode | openMode () const |
Return openMode. More... | |
virtual void | open () |
Explicitly re-opens the collection after it has been closed. More... | |
virtual bool | isOpen () const |
Checks if the collection is open. More... | |
virtual void | commit (bool restartTransaction=false) |
Commits the last changes made to the collection. More... | |
virtual void | close () |
Explicitly closes the collection. More... | |
virtual const ICollectionDescription & | description () const |
Returns an object used to describe the collection properties. More... | |
virtual ICollectionSchemaEditor & | schemaEditor () |
Returns an object used to modify the collection schema. More... | |
virtual ICollectionDataEditor & | dataEditor () |
Returns an object used to add, update or delete rows of the collection. More... | |
virtual ICollectionQuery * | newQuery () |
Returns an object used to query the collection. More... | |
Static Public Attributes | |
static const unsigned int | c_maxLengthOfStrings = 5000 |
static const char *const | poolOptToRootOpt [] |
static const Io::IoFlags | poolOptToFileMgrOpt [] |
static const char *const | c_tokenBranchName |
static const char *const | c_attributeListLayoutName |
Private Member Functions | |
RootCollection (const RootCollection &) | |
copying unimplemented in this class. More... | |
RootCollection & | operator= (const RootCollection &) |
copying unimplemented in this class. More... | |
void | delayedFileOpen (const std::string &method) |
TTree * | getCollectionTree () |
void | setupTree () const |
void | readAttributeListSpecification () const |
void | writeAttributeListSpecification () |
bool | fileCatalogRequired () const |
std::string | retrievePFN () const |
std::string | retrieveFID () |
std::string | retrieveUniquePFN (const FileCatalog::FileID &fid) |
std::string | retrieveBestPFN (const FileCatalog::FileID &fid) const |
void | retrieveFileCatalog () const |
void | cleanup () |
Private Attributes | |
CollectionDescription | m_description |
std::string | m_name |
std::string | m_fileName |
ICollection::OpenMode | m_mode |
TTree * | m_tree |
TFile * | m_file |
ISession * | m_session |
bool | m_open |
bool | m_readOnly |
std::unique_ptr< pool::IFileCatalog > | m_fileCatalog |
coral::MessageStream | m_poolOut |
RootCollectionSchemaEditor * | m_schemaEditor |
RootCollectionDataEditor * | m_dataEditor |
SmartIF< IFileMgr > | m_fileMgr |
Collection (and CollectionProxy) implementation based on ROOT trees.
Implementation details:
ROOT documentation can be found at http://root.cern.ch/
Definition at line 70 of file RootCollection.h.
typedef Gaudi::PluginService::Factory<ICollection*( const ICollectionDescription*, ICollection::OpenMode, ISession*)> pool::RootCollection::RootCollection::Factory |
Definition at line 73 of file RootCollection.h.
|
inherited |
Enumeration of the possible open modes of the collection.
Enumerator | |
---|---|
CREATE | |
CREATE_AND_OVERWRITE | |
UPDATE | |
READ |
Definition at line 27 of file ICollection.h.
pool::RootCollection::RootCollection::RootCollection | ( | const pool::ICollectionDescription * | description, |
pool::ICollection::OpenMode | mode, | ||
pool::ISession * | |||
) |
Constructor.
session | If you want to access the referenced objects you have to provide an ISession |
connection | The location of the collection file is uniquely defined by the parameters name and connection |
name | The location of the collection file is uniquely defined by the parameters name and connection |
mode | The open mode of the collection |
pool::RootCollection::RootCollection::~RootCollection | ( | ) |
Destructor.
|
private |
copying unimplemented in this class.
|
private |
|
virtual |
Explicitly closes the collection.
Implements pool::ICollection.
|
virtual |
Commits the last changes made to the collection.
Implements pool::ICollection.
|
virtual |
Returns an object used to add, update or delete rows of the collection.
Implements pool::ICollection.
|
private |
|
virtual |
Returns an object used to describe the collection properties.
Implements pool::ICollection.
|
private |
|
private |
|
virtual |
Checks if the collection is open.
Implements pool::ICollection.
|
virtual |
Returns an object used to query the collection.
Implements pool::ICollection.
|
virtual |
Explicitly re-opens the collection after it has been closed.
Implements pool::ICollection.
|
virtual |
Return openMode.
Implements pool::ICollection.
|
private |
copying unimplemented in this class.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
virtual |
Returns an object used to modify the collection schema.
Implements pool::ICollection.
|
private |
|
private |
Definition at line 174 of file RootCollection.h.
|
static |
Definition at line 170 of file RootCollection.h.
Definition at line 173 of file RootCollection.h.
|
private |
Definition at line 193 of file RootCollection.h.
|
private |
Definition at line 178 of file RootCollection.h.
|
private |
Definition at line 184 of file RootCollection.h.
|
private |
Definition at line 189 of file RootCollection.h.
|
private |
Definition at line 195 of file RootCollection.h.
|
private |
Definition at line 181 of file RootCollection.h.
|
private |
Definition at line 182 of file RootCollection.h.
|
private |
Definition at line 180 of file RootCollection.h.
|
private |
Definition at line 186 of file RootCollection.h.
|
private |
Definition at line 190 of file RootCollection.h.
|
private |
Definition at line 187 of file RootCollection.h.
|
private |
Definition at line 192 of file RootCollection.h.
|
private |
Definition at line 185 of file RootCollection.h.
|
private |
Definition at line 183 of file RootCollection.h.
|
static |
Definition at line 172 of file RootCollection.h.
Definition at line 171 of file RootCollection.h.