Root6 segmentation violation when reading fChain

Hi.
I am running a code which reads a tree using the product of TTree::MakeClass.
The code works fine with root5, but not with root6.
I have a segmentation violation when trying to access the fChain elements. Where is the problem?
I attach here the code, the class and the data file.

Thanks

Luca
test.C (1 KB)
run34_processed_pads_30.root (407 KB)
clusters_THGEM.h (5.27 KB)
clusters_THGEM.C (1.44 KB)

I downloaded your files and with ROOT 5 I get:

root [0] .x test.C
Error: cannot open file "tuple"  test.C:15:
*** Interpreter error recovered ***
root [1] 

Hi,

Try removing the line: fChain->SetMakeClass(1);and generating the dictionary for vector<vector > (or load your clusters_THGEM.C file with ACLiC).

Cheers,
Philippe.

Indeed there is a line that should not be there :

#include

then it should work in root5.

  • Philippe, I will try what you suggested.

Thanks

Luca

Sorry Philippe but I cannot find the line you are pointing at, in which file is it?
Also I don’t know what generating the dictionary means. Could you explain it in more detail or point me to references?

Thanks

Luca

[quote=“pcanal”]Hi,

Try removing the line: fChain->SetMakeClass(1);and generating the dictionary for vector<vector > (or load your clusters_THGEM.C file with ACLiC).

Cheers,
Philippe.[/quote]