From 79101e3d12e15bc8b813defda114f1b0b1c1e20f Mon Sep 17 00:00:00 2001 From: Nuria Valls Canudas <nuvallsc@lxplus731.cern.ch> Date: Thu, 8 Sep 2022 13:07:02 +0200 Subject: [PATCH] check for negative energy-position --- CaloFuture/CaloFutureReco/src/GraphClustering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CaloFuture/CaloFutureReco/src/GraphClustering.cpp b/CaloFuture/CaloFutureReco/src/GraphClustering.cpp index ff7a795edec..f7190296325 100644 --- a/CaloFuture/CaloFutureReco/src/GraphClustering.cpp +++ b/CaloFuture/CaloFutureReco/src/GraphClustering.cpp @@ -278,7 +278,7 @@ namespace LHCb::Calo { auto exy = LHCb::CaloDataFunctor::calculateClusterEXY( cluster.entries(), &detector ); if ( exy ) { // put cluster to the output - if ( exy->Etot <= 0 ) { + if ( exy->Etot <= 0 || exy->Epos <= 0 ) { ++nNegative; clustersGraph.resize( clustersGraph.size() - 1 ); continue; // skip negative E clusters -- GitLab