-
Notifications
You must be signed in to change notification settings - Fork 0
Description
GCC has started complaining about a type mismatch in Event.cc. The line in question is
SVector6 &c = h.error_nc();
GCC reports that the type of the RHS as SMatrixSym33&, not SVector6&. The error can be "fixed" by overruling C++ type safety,
SVector6 &c = reinterpret_cast<SVector6&>(h.error_nc());
@dan131riley traced the difference to the PR from Mario that was merged Jan. 17, cms-sw#47106. It changes the type of the hit error matrix returned by error_nc() in Hit.h.
I imagine the right way to fix this in Event.cc is to change the type of c to match the new type, and to subscript c properly in the subsequent code. However, there could be something simpler/kludgier that still preserves type safety, maybe at the cost of making a copy. Probably @osschar should make the call here.
The containing function kludge_cms_hit_errors() appears to be little used in any case.