Writing TTree w/custom container class - variable length arrays

Hi ,

I attached 2 files (vdetclass_v1.tar.gz and vdetclass_v2.tar.gz).

The v1 is the corrected version of your last code … which ‘just’ needed to have the actually copy of the axis added (and also needed the copy constructor to actually create the arrays).

The v2 is an enhanced version that avoid having to copy the axis object.

Cheers,
Philippe.

vdetclass_v1.tar.gz (2.2 KB) vdetclass_v2.tar.gz (2.2 KB)

1 Like

:hugs: Thank you very much for your help!
I do believe that this example is quite general - and is quite typical enough to be of service to many.
Best wishes, and a cartful of thanks! :slightly_smiling_face: :shopping_cart:

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