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