Skip to content
Snippets Groups Projects
Commit 6f217652 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

MuonCalibExtraTreeEvent: Fix use of uninitialized variable.

Fix use of uninitialized eigen object.
parent 3b64ca7f
5 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!48512MuonCalibExtraTreeEvent: Fix use of uninitialized variable.
/* /*
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" #include "MuonCalibExtraTreeEvent/EventHandler.h"
...@@ -344,6 +344,7 @@ namespace MuonCalib { ...@@ -344,6 +344,7 @@ namespace MuonCalib {
build_pars.theta = truth_part->momentum().theta(); build_pars.theta = truth_part->momentum().theta();
build_pars.author = std::abs(truth_part->PDGCode()); build_pars.author = std::abs(truth_part->PDGCode());
build_pars.qOverP = (1. - 2. * (truth_part->PDGCode() < 0)) / (truth_part->momentum().mag()); 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::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); std::map<int, std::set<TruthMdtPtr>>::const_iterator mdt_itr = mdt_hits.find(barcode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment