remove duplicate creation of JetUncertaintiesTool
Error
RuntimeError: Tool with name 'uncertaintiesTool' already exists
How to reproduce
Create a config.yaml file for CP-Algorithms and add R=10 jets like so:
Jets:
containerName: 'ufo'
jetInput: 'UFO'
jetCollection: 'AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets'
Cause
Having a R=10 jetCollection like above, calls LargeRJetAnalysisConfig
which add the JetUncertaintiesTool
in L692. The following line calls the function createUncertaintyTool
which creates the tool again in L614, causing the crash.
This appears to have been introduced in this commit in release/25.2.33
Proposed solution in this commit
Remove the first creation of the tool in L692