|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef ATHENAROOTCOMPS_ROOTCONNECTION_H
12 #define ATHENAROOTCOMPS_ROOTCONNECTION_H 1
23 #include "GaudiKernel/StatusCode.h"
This class provides the implementation of Athena::RootConnection class, similar to Gaudi IDataConnect...
StatusCode disconnect()
Release data stream and release implementation dependent resources.
char data[hepevt_bytes_allocation_ATLAS]
StatusCode connectRead()
Open data stream in read mode.
std::string m_pfn
Physical file name of the connection.
StatusCode commit()
Commit data stream to ROOT.
virtual ~RootConnection()
Standard destructor.
bool isConnected() const
Check if connected to data source.
StatusCode write(const void *data, unsigned long &len)
Write root byte buffer to output stream.
std::string m_fid
File ID of the connection.
TFile * m_file
Age counter.
Some weak symbol referencing magic...
::StatusCode StatusCode
StatusCode definition for legacy code.
RootConnection(const IInterface *own, const std::string &pfn)
Standard constructor.
StatusCode connectWrite(const std::string &mode)
Open data stream in write mode.
StatusCode read(void *const data, size_t len)
Read root byte buffer from input stream.
TTree * m_tree
Pointer to the main event data tree.
StatusCode setContainer(const std::string &container, const std::string &type)
Set the container name and type, creating TTree and TBranch as needed.
TBranch * m_branch
Pointer to the current data branch.
char m_branchTypeCode
Branch typecode for branch we are asked to write out.