![]() |
ATLAS Offline Software
|
This class provides the implementation of Athena::RootConnection class, similar to Gaudi IDataConnection. More...
#include <RootConnection.h>
Public Member Functions | |
| RootConnection (const IInterface *own, const std::string &pfn) | |
| Standard constructor. More... | |
| virtual | ~RootConnection () |
| Standard destructor. More... | |
| StatusCode | connectRead () |
| Open data stream in read mode. More... | |
| StatusCode | connectWrite (const std::string &mode) |
| Open data stream in write mode. More... | |
| StatusCode | commit () |
| Commit data stream to ROOT. More... | |
| StatusCode | disconnect () |
| Release data stream and release implementation dependent resources. More... | |
| bool | isConnected () const |
| Check if connected to data source. More... | |
| StatusCode | read (void *const data, size_t len) |
| Read root byte buffer from input stream. More... | |
| StatusCode | write (const void *data, unsigned long &len) |
| Write root byte buffer to output stream. More... | |
| StatusCode | setContainer (const std::string &container, const std::string &type) |
| Set the container name and type, creating TTree and TBranch as needed. More... | |
Private Attributes | |
| std::string | m_fid |
| File ID of the connection. More... | |
| std::string | m_pfn |
| Physical file name of the connection. More... | |
| TFile * | m_file |
| Age counter. More... | |
| TTree * | m_tree |
| Pointer to the main event data tree. More... | |
| TBranch * | m_branch |
| Pointer to the current data branch. More... | |
| char | m_branchTypeCode |
| Branch typecode for branch we are asked to write out. More... | |
This class provides the implementation of Athena::RootConnection class, similar to Gaudi IDataConnection.
Definition at line 35 of file RootConnection.h.
Standard constructor.
Definition at line 62 of file RootConnection.cxx.
|
virtual |
| StatusCode Athena::RootConnection::commit | ( | ) |
| StatusCode Athena::RootConnection::connectRead | ( | ) |
| StatusCode Athena::RootConnection::connectWrite | ( | const std::string & | mode | ) |
Open data stream in write mode.
Definition at line 85 of file RootConnection.cxx.
| StatusCode Athena::RootConnection::disconnect | ( | ) |
Release data stream and release implementation dependent resources.
Definition at line 110 of file RootConnection.cxx.
| bool Athena::RootConnection::isConnected | ( | ) | const |
Check if connected to data source.
Definition at line 122 of file RootConnection.cxx.
| StatusCode Athena::RootConnection::read | ( | void *const | data, |
| size_t | len | ||
| ) |
Read root byte buffer from input stream.
Definition at line 126 of file RootConnection.cxx.
| StatusCode Athena::RootConnection::setContainer | ( | const std::string & | container, |
| const std::string & | type | ||
| ) |
Set the container name and type, creating TTree and TBranch as needed.
Definition at line 148 of file RootConnection.cxx.
| StatusCode Athena::RootConnection::write | ( | const void * | data, |
| unsigned long & | len | ||
| ) |
|
private |
Pointer to the current data branch.
Definition at line 82 of file RootConnection.h.
|
private |
Branch typecode for branch we are asked to write out.
Definition at line 84 of file RootConnection.h.
|
private |
File ID of the connection.
Definition at line 69 of file RootConnection.h.
|
private |
Age counter.
Owner pointer Pointer to the Root event data file
Definition at line 78 of file RootConnection.h.
|
private |
Physical file name of the connection.
Definition at line 71 of file RootConnection.h.
|
private |
Pointer to the main event data tree.
Definition at line 80 of file RootConnection.h.
1.8.18