Skip to content

Fix CaloRecoChain when combining only neutrals

Adrian Casais Vidal requested to merge acasaisv/restorecalo into run2-patches

This change fixes the corner case when a combined particle made off of two Calorimetric Photons is picked up as a purely Calorimetric particle istead of their daughter photons.

An example, running with the decay descriptor B_s0 -> gamma gamma would yield the following behaviour:

RestoreCaloReco...   INFO  === Found 1 particles in the input container(s) [Phys/Bs2GammaGammaWide_NoConvLine, Phys/Bs2GammaGamma_NoConvLine]
RestoreCaloReco...   INFO  == Particle : 531
RestoreCaloReco...   INFO  => found 1 neutral calo particles in the descendants
RestoreCaloReco...   INFO   = Calo Particle : 531

instead of the desired, obtained with this change

RestoreCaloReco...   INFO  == Particle : 531
RestoreCaloReco...   INFO  => found 2 neutral calo particles in the descendants
RestoreCaloReco...   INFO   = Calo Particle : 22
RestoreCaloReco...   INFO   = Calo Particle : 22

fyi: @deschamp @jmarchan @tmombach

Edited by Adrian Casais Vidal

Merge request reports

Loading