-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TTreeReader fails to read T<Double_32>
as T<double>
#12334
Comments
P.S. adding |
Axel-Naumann
added a commit
to Axel-Naumann/root
that referenced
this issue
Mar 13, 2023
As the TClass corresponding to the template parameter of TTreeReaderValue is found through the typeid => TClass map, make sure that we ignore mismatches of `Foo<Double32_t>` vs `Foo<double>` - they should not be relevant for reading. This fixes reading a LorentzVector<Double32_t>. Fixes root-project#12334
Axel-Naumann
added a commit
to Axel-Naumann/root
that referenced
this issue
Mar 20, 2023
As the TClass corresponding to the template parameter of TTreeReaderValue is found through the typeid => TClass map, make sure that we ignore mismatches of `Foo<Double32_t>` vs `Foo<double>` - they should not be relevant for reading. This fixes reading a LorentzVector<Double32_t>. Fixes root-project#12334
Axel-Naumann
added a commit
to Axel-Naumann/root
that referenced
this issue
Jun 22, 2023
As the TClass corresponding to the template parameter of TTreeReaderValue is found through the typeid => TClass map, make sure that we ignore mismatches of `Foo<Double32_t>` vs `Foo<double>` - they should not be relevant for reading. This fixes reading a LorentzVector<Double32_t>. Fixes root-project#12334
Axel-Naumann
added a commit
to Axel-Naumann/root
that referenced
this issue
Jun 23, 2023
As the TClass corresponding to the template parameter of TTreeReaderValue is found through the typeid => TClass map, make sure that we ignore mismatches of `Foo<Double32_t>` vs `Foo<double>` - they should not be relevant for reading. This fixes reading a LorentzVector<Double32_t>. Fixes root-project#12334
Axel-Naumann
added a commit
to Axel-Naumann/root
that referenced
this issue
Jun 26, 2023
As the TClass corresponding to the template parameter of TTreeReaderValue is found through the typeid => TClass map, make sure that we ignore mismatches of `Foo<Double32_t>` vs `Foo<double>` - they should not be relevant for reading. This fixes reading a LorentzVector<Double32_t>. Fixes root-project#12334
dpiparo
pushed a commit
to dpiparo/root
that referenced
this issue
May 22, 2024
As the TClass corresponding to the template parameter of TTreeReaderValue is found through the typeid => TClass map, make sure that we ignore mismatches of `Foo<Double32_t>` vs `Foo<double>` - they should not be relevant for reading. This fixes reading a LorentzVector<Double32_t>. Fixes root-project#12334
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First reported on the forum at https://root-forum.cern.ch/t/problem-with-type-conversion-for-lorentz-vector/53639 .
Minimal reproducer:
with the input file at https://root-forum.cern.ch/t/problem-with-type-conversion-for-lorentz-vector/53639/3?u=eguiraud .
The program errors out with:
(so TTreeReaderValue cannot read a
LorentzVector<PtEtaPhiM4D<Double32_t>>
as aLorentzVector<PtEtaPhiM4D<double>>
).The following patch by @Axel-Naumann seems to fix the problem:
The text was updated successfully, but these errors were encountered: