The hasSimilarPt test in L1CaloEGammaSingleAnalyzer.cc had an issue where it would reach a gctCluster/L1 eg match as hasSimilarPt=true, then consider an incorrect match, rewriting this to be hasSimilarPt=false. This fix uses an if statement so that hasSimilarPt is not reverted once set to true, and all match candidates in the loop are considered.
The
hasSimilarPt
test in L1CaloEGammaSingleAnalyzer.cc had an issue where it would reach a gctCluster/L1 eg match ashasSimilarPt=true
, then consider an incorrect match, rewriting this to behasSimilarPt=false
. This fix uses an if statement so thathasSimilarPt
is not reverted once set totrue
, and all match candidates in the loop are considered.