Why long type is not one numerical variable?

If the address points to a single numerical variable, the leaflist is optional:

Three * tree;
int value; tree->Branch(branchname, &value);

but if

long value; tree->Branch(branchname, &value);

Error in TBranch::TLeaf: Illegal data type

anybody know why?

Hi @cxwx1,
I think you encountered a known limitation of TTree.

Cheers,
Enrico

1 Like

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