From 6f217652eb50f1a2d7d6e603781c32fbd62c7835 Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Fri, 19 Nov 2021 10:24:59 -0500 Subject: [PATCH] MuonCalibExtraTreeEvent: Fix use of uninitialized variable. Fix use of uninitialized eigen object. --- .../MuonCalibExtraTreeEvent/src/EventHandler.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MuonSpectrometer/MuonCalib/MuonCalibExtraTree/MuonCalibExtraTreeEvent/src/EventHandler.cxx b/MuonSpectrometer/MuonCalib/MuonCalibExtraTree/MuonCalibExtraTreeEvent/src/EventHandler.cxx index 0a7583e50924..56a76367aa08 100644 --- a/MuonSpectrometer/MuonCalib/MuonCalibExtraTree/MuonCalibExtraTreeEvent/src/EventHandler.cxx +++ b/MuonSpectrometer/MuonCalib/MuonCalibExtraTree/MuonCalibExtraTreeEvent/src/EventHandler.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration */ #include "MuonCalibExtraTreeEvent/EventHandler.h" @@ -344,6 +344,7 @@ namespace MuonCalib { build_pars.theta = truth_part->momentum().theta(); build_pars.author = std::abs(truth_part->PDGCode()); build_pars.qOverP = (1. - 2. * (truth_part->PDGCode() < 0)) / (truth_part->momentum().mag()); + build_pars.cov.setZero(); std::shared_ptr<MuonCalibTrack_E> track_ptr = std::make_shared<MuonCalibTrack_E>(build_pars); std::map<int, std::set<TruthMdtPtr>>::const_iterator mdt_itr = mdt_hits.find(barcode); -- GitLab