Skip to content

egammaEnergyCorrectionTool : Fix unchecked dynamic_cast s (Coverity defect)

egammaEnergyCorrectionTool : Fix unchecked dynamic_cast s (Coverity reports that basically we could use ~70 member variables that could be nullptr as we did not check any dynamic_cast ... ).

Basically add an internal "helper" in the anonymous namespace . That does the dynamic_cast and throws if it fails . In the message we can have the name of the TObject we failed to cast from.

Edited by Christos Anastopoulos

Merge request reports