TTree with variable array to save disk space?


_ROOT Version:6.14
Platform: Not Provided
Compiler: Not Provided


Hi all:
I have a class

class A{
 public:
  double x;
  int i;
};
std::vector<A> a;
TTree * t1....
t1->Branch("A",&A)

is that OK? if a.size() is very large? Does it safe?
just like https://root.cern.ch/doc/master/hvector_8C.html

Also I found another way using TCloneArrays to save in the TTree TFile;
Should I use this way? or there is other better way to save variable arrays into TTree?

Hi,

do not worry about the size of the vector. It is correctly handled.

Cheers,
D

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.