Skip to content

AnalysisTop: Do not setup the ChargeMisID tool when unsupported WPs are requested

Don't setup the tool if the WP is not supported. This makes the other parts of the code simply return SF = 1.

Previously we setup the tool with some dummy values, which then resulted in dummy SFs that were then ignored later down the code. However, if someone was using the intermediate functions the returned values were wrong. This change makes things more transparent.

cc @fcardill @maniemey

Edited by Tomas Dado

Merge request reports

Loading