Decltype the type of a variable which in the Tree branch entry?


ROOT Version: 6.28
Platform: win10
Compiler: visual c++


How can I decltype the type of a variable which in the entry of Tree branch?
I want to read a variable from a Tree, but I don’t know the type of the variable. I hope I can use decltype function but not use GetColumnType().

There is no direct implementation of decl_type in the way you describe.

However you can get the same net effect (use the data without knowing or looking up the type) by using the TTree with RDataFrame (Dataframes - ROOT)

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