|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ROOTCOLLECTION_COLLECTIONSCHEMAEDITOR_H
6 #define ROOTCOLLECTION_COLLECTIONSCHEMAEDITOR_H
15 #include "CoralBase/MessageStream.h"
21 class ICollectionColumn;
23 namespace RootCollection {
61 const std::string& columnName,
62 const std::string& columnType,
63 const std::string& annotation =
"",
65 bool sizeIsFixed =
true );
76 const std::string& columnName,
77 const std::type_info& columnType,
78 const std::string& annotation =
"",
80 bool sizeIsFixed =
true );
88 const std::string& columnName,
89 const std::string& annotation =
"" );
94 const std::string& columnName,
95 const std::string& annotation );
RootCollection & m_collection
virtual void renameColumn(const std::string &oldName, const std::string &newName)
Renames a column of the collection.
virtual void dropColumn(const std::string &columnName)
Removes a column from the collection.
coral::MessageStream m_poolOut
virtual ~RootCollectionSchemaEditor()
destructor.
virtual const ICollectionColumn & annotateColumn(const std::string &columnName, const std::string &annotation)
add annotation to column
CollectionDescription & m_description
virtual const ICollectionColumn & insertColumn(const std::string &columnName, const std::type_info &columnType, const std::string &annotation="", int maxSize=0, bool sizeIsFixed=true)
Adds a new column to the collection.
Collection (and CollectionProxy) implementation based on ROOT trees.
void createTreeBranches()
RootCollectionSchemaEditor(RootCollection &collection, CollectionDescription &description, TTree *tree)
virtual void setEventReferenceColumnName(const std::string &columnName)
Sets the name of the event reference Token column.
void addTreeBranch(const std::string &name, const std::string &type_name)
virtual const ICollectionColumn & insertColumn(const std::string &columnName, const std::string &columnType, const std::string &annotation="", int maxSize=0, bool sizeIsFixed=true)
Adds a new column to the collection.
virtual const ICollectionColumn & insertTokenColumn(const std::string &columnName, const std::string &annotation="")
Adds a new column of type pool::Token to the collection.
std::string description
glabal timer - how long have I taken so far?