Collection (and CollectionProxy) implementation based on RNTuple.
More...
#include <RNTCollection.h>
Collection (and CollectionProxy) implementation based on RNTuple.
Definition at line 47 of file RNTCollection.h.
◆ Factory
◆ OpenMode
Enumeration of the possible open modes of the collection.
| Enumerator |
|---|
| CREATE | |
| CREATE_AND_OVERWRITE | |
| UPDATE | |
| READ | |
Definition at line 26 of file ICollection.h.
OpenMode
Enumeration of the possible open modes of the collection.
◆ RNTCollection() [1/2]
Constructor.
- Parameters
-
| 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 |
- The path to the collection file is simply created by the following concatenation:
connection+name+".root"
- name: Name of the collection file
- connection:
- It can be a relative or absolute path
- In case of an empty connection string it is assumed that the file is located in the current directory
◆ ~RNTCollection()
| pool::RootCollection::RNTCollection::~RNTCollection |
( |
| ) |
|
◆ RNTCollection() [2/2]
| pool::RootCollection::RNTCollection::RNTCollection |
( |
const RNTCollection & | | ) |
|
|
privatedelete |
copying unimplemented in this class.
◆ addField()
| void pool::RootCollection::RNTCollection::addField |
( |
ROOT::RNTupleModel * | model, |
|
|
const std::string & | field_name, |
|
|
const std::string & | field_type ) |
|
private |
◆ cleanup()
| void pool::RootCollection::RNTCollection::cleanup |
( |
| ) |
|
|
private |
◆ close()
| virtual void pool::RootCollection::RNTCollection::close |
( |
| ) |
|
|
finaloverridevirtual |
◆ commit()
| virtual void pool::RootCollection::RNTCollection::commit |
( |
bool | restartTransaction = false | ) |
|
|
finaloverridevirtual |
◆ cursor()
◆ delayedFileOpen()
| void pool::RootCollection::RNTCollection::delayedFileOpen |
( |
const std::string & | method | ) |
|
|
private |
◆ description()
Returns an object used to describe the collection properties.
Implements pool::ICollection.
◆ getCollectionRNTuple()
| std::unique_ptr< ROOT::RNTupleReader > pool::RootCollection::RNTCollection::getCollectionRNTuple |
( |
| ) |
|
|
private |
◆ initMessaging()
| void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
40{
42
43 if (
m_lvl == MSG::NIL) {
47 }
48}
std::string m_nm
Message source name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic< MSG::Level > m_lvl
Current logging level.
IMessageSvc * getMessageSvc(bool quiet=false)
◆ initNewRow()
Initialize a new RowBuffer by adding all Attributes adn Tokens of this collection to it.
◆ insertRow()
◆ isOpen()
| virtual bool pool::RootCollection::RNTCollection::isOpen |
( |
| ) |
const |
|
finaloverridevirtual |
◆ msg() [1/2]
| MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 163 of file AthMessaging.h.
164{
166 if (!ms) {
170 }
171
174}
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
void initMessaging() const
Initialize our message level and MessageSvc.
◆ msg() [2/2]
| MsgStream & AthMessaging::msg |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 178 of file AthMessaging.h.
179{
return msg() << lvl; }
MsgStream & msg() const
The standard message stream.
◆ msgLvl()
| bool AthMessaging::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
152{
155 return true;
156 } else {
157 return false;
158 }
159}
◆ open()
| virtual void pool::RootCollection::RNTCollection::open |
( |
| ) |
|
|
finaloverridevirtual |
Explicitly re-opens the collection after it has been closed.
Implements pool::ICollection.
◆ openMode()
◆ operator=()
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level | lvl | ) |
|
|
inherited |
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_description
◆ m_file
| TFile* pool::RootCollection::RNTCollection::m_file |
|
private |
◆ m_fileMgr
| SmartIF<IFileMgr> pool::RootCollection::RNTCollection::m_fileMgr |
|
private |
◆ m_fileName
| std::string pool::RootCollection::RNTCollection::m_fileName |
|
private |
◆ m_imsg
| std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lvl
| std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_mode
◆ m_msg_tls
| boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_name
| std::string pool::RootCollection::RNTCollection::m_name |
|
private |
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_open
| bool pool::RootCollection::RNTCollection::m_open |
|
private |
◆ m_reader
| std::unique_ptr<ROOT::RNTupleReader> pool::RootCollection::RNTCollection::m_reader |
|
private |
◆ m_rntupleWriter
| std::unique_ptr<ROOT::RNTupleWriter> pool::RootCollection::RNTCollection::m_rntupleWriter |
|
private |
◆ m_session
| ISession* pool::RootCollection::RNTCollection::m_session |
|
private |
The documentation for this class was generated from the following file: