Hello ! Here is a summary of my problem.
Objective : merging several RNTuples in a single RNTuple to ease analysis.
Method : I use the TFileMerger.
Success : The output RNTuple is readable (by a TBrowser for instance).
Problem : whenever I try to do some actual analysis of the output RNTuple (using the method described in the RNTuple ntpl010_skim tutorial, to add computed fields/make cuts…), something breaks.
More precisely (after rigorous investigation), it is when using the ROOT::RNTupleReader::GetModel().
Error thrawn :
```
root [2] addIsEventWW4Jets(“temp_xs_merged_e189_d2.tree.root”)
Treating temp_xs_merged_e189_d2.tree.root…
Error in <TRint::HandleTermInput()>: ROOT::RException caught: incompatible type name for field _0: ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D>> vs. ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D > >
At:
virtual void ROOT::RClassField::BeforeConnectPageSource(ROOT::Internal::RPageSource&) [/root/parts/root/src/tree/ntuple/src/RFieldMeta.cxx:440]
```**
Presumed analysis** : From what I understand this is due to a change in what c++ allowed between versions in the function templates syntax. (“>>” not allowed and replaced by “> >”, then allowed in a lated version).
Does anyone have a solution for that ? Be it another way to merge RNTuples, a system-wide or script-wide fix for this specific error,…
Thanks in advance !
ROOT Version: 6.36.04
Platform: Ubuntu 26.04 (24.04)
Compiler: C++ 13.3.0