2 #ifndef GAUDIROOT_ROOTDATACONNECTION_H
3 #define GAUDIROOT_ROOTDATACONNECTION_H
76 static long setCompression(
const std::string& compression);
78 static int compression();
102 enum { ROOT_READ_ERROR = 0x2,
103 ROOT_OPEN_ERROR = 0x4
215 TTree*
refs()
const {
return c->m_refs; }
255 TFile*
file()
const {
return m_file; }
259 bool isWritable()
const {
return m_file != 0 && m_file->IsWritable(); }
271 size_t removeClient(
const IInterface* client);
273 bool lookupClient(
const IInterface* client)
const;
284 void saveStatistics(
const std::string& statisticsFile);
309 virtual long long int seek(
long long int,
int) {
return -1; }
312 TTree* getSection(
const std::string& sect,
bool create=
false);
316 {
return m_tool->getBranch(section,branch_name); }
318 TBranch* getBranch(
const std::string& section,
const std::string& branch_name, TClass* cl,
void* ptr,
int buff_siz,
int split_lvl);
333 {
return (which>=0)&&(size_t(which)<m_conts.size()) ? *(m_conts.begin()+
which) :
empty(); }
337 {
return (which>=0)&&(size_t(which)<m_links.size()) ? *(m_links.begin()+
which) :
empty(); }
340 #endif // GAUDIROOT_ROOTDATACONNECTION_H