The structure is defined as
gROOT.ProcessLine(
"struct data_t {\
int m;\
Char_t n[5];\
vector<int> E;\
};")
I tried the following ways to define the branch containing a std::vectors
t1.Branch("E", addressof(data, 'E'), 'E/vector<int>');
This one leads to an unknow type error and is not the right way of doing it.
t1.Branch("E", data.E);
This one correctly defined the tree but had a “*** Break *** bus error” when trying to run
t1.Scan("E").
I attached the example code and any help is appreciated.
ROOT Version: 6.32.2
Platform: ubuntu
Compiler: gcc__
example.py (535 Bytes)