elaird / supy

analyze events stored in TTrees in parallel
8 stars 7 forks source link

Value2d alt #169

Closed betchart closed 11 years ago

betchart commented 11 years ago

Hi Davide,

I tried an alternative approach of generalizing 'value' to any number of dimensions. Practically, it is bound to the limit of 3 dimensions due to the use of autoBook(relying on ROOT). The trick to doing it without a bunch of if/else checks was to make autoBook handle singletons gracefully.

What do you think?

Burt

gerbaudo commented 11 years ago

Hi Burt,

Your implementation is much better (more general and simpler)...a pearl! Thank you! feel free to merge