I get error message when I import 41 variables into a ntuple

Hi all,
I would like to import 41 variables into ntuple.But the ntuple class could only accept 15 variables(as shown in the picture below). I wonder how could I solve this problem?Thanks so much .

When you fill listing each element, you can only include up to 15, see the Documentation (the Fill method with x0 to x14). Maybe you can use Fill (const Float_t *x), i.e. one array of 41 elements. I don’t know if there is a limit to the number of elements (apparently not), but maybe you can consider using a TTree instead of TNtuple.

1 Like

TTree works!Thanks so much!!!