Go to the documentation of this file.
4 #ifndef tools_wroot_tree
5 #define tools_wroot_tree
19 static const std::string& s_class() {
20 static const std::string s_v(
"tools::wroot::tree");
28 static const std::string s_v(
"TTree");
43 if(!a_buffer.
write(fEntries))
return false;
47 if(!a_buffer.
write(fTotBytes))
return false;
48 if(!a_buffer.
write(fZipBytes))
return false;
49 if(!a_buffer.
write((
double)0))
return false;
50 if(!a_buffer.
write((
int)0))
return false;
51 if(!a_buffer.
write((
int)25))
return false;
52 if(!a_buffer.
write((
int)0))
return false;
53 if(!a_buffer.
write((
int)1000000000))
return false;
54 int fMaxVirtualSize = 0;
55 int fAutoSave = 100000000;
56 if(!a_buffer.
write(fMaxVirtualSize))
return false;
57 if(!a_buffer.
write(fAutoSave))
return false;
58 if(!a_buffer.
write((
int)1000000))
return false;
64 const std::vector<base_leaf*>& leaves = (*itb)->leaves();
66 m_leaves.push_back(*itl);
69 if(!m_leaves.
stream(a_buffer))
return false;
73 if(!a_buffer.
write_array(std::vector<double>()))
return false;
75 if(!a_buffer.
write_array(std::vector<int>()))
return false;
86 tree(
idir& a_dir,
const std::string& a_name,
const std::string& a_title,
bool a_managed =
true)
96 mem::increment(s_class().c_str());
102 mem::decrement(s_class().c_str());
131 template <
class TYPE>
183 template <
class TYPE>
209 if(!(*it)->fill(
m_dir.
file(),n,add_bytes,nout)) {a_nbytes = 0;
return false;}
#define tools_vforcit(a__T, a__v, a__it)