From 9ba8a1809c58d309ab60f36212e785e00ff15276 Mon Sep 17 00:00:00 2001
From: Stefano Rosati <stefano.rosati@cern.ch>
Date: Wed, 17 Jun 2020 17:40:43 +0200
Subject: [PATCH] update

---
 .../STgcClusterization/src/SimpleSTgcClusterBuilderTool.cxx   | 4 ++--
 .../STgcClusterization/src/SimpleSTgcClusterBuilderTool.h     | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/MuonSpectrometer/MuonReconstruction/MuonDataPrep/STgcClusterization/src/SimpleSTgcClusterBuilderTool.cxx b/MuonSpectrometer/MuonReconstruction/MuonDataPrep/STgcClusterization/src/SimpleSTgcClusterBuilderTool.cxx
index 21dcf4381551..bd1411f6b695 100644
--- a/MuonSpectrometer/MuonReconstruction/MuonDataPrep/STgcClusterization/src/SimpleSTgcClusterBuilderTool.cxx
+++ b/MuonSpectrometer/MuonReconstruction/MuonDataPrep/STgcClusterization/src/SimpleSTgcClusterBuilderTool.cxx
@@ -20,6 +20,7 @@ Muon::SimpleSTgcClusterBuilderTool::SimpleSTgcClusterBuilderTool(const std::stri
 {
   declareProperty("ChargeCut", m_chargeCut=0.0);
   declareProperty("maxHoleSize",m_maxHoleSize=1);
+  declareProperty("addError",m_addError=0);
 }
 
 Muon::SimpleSTgcClusterBuilderTool::~SimpleSTgcClusterBuilderTool()
@@ -151,8 +152,7 @@ StatusCode Muon::SimpleSTgcClusterBuilderTool::getClusters(std::vector<Muon::sTg
         sigmaSq = sigmaSq/(totalCharge*totalCharge*12);
         ATH_MSG_DEBUG("Uncertainty on cluster position is: " << sqrt(sigmaSq));         
         Amg::MatrixX* covN = new Amg::MatrixX(1,1);
-        (*covN)(0,0) = sigmaSq;
-
+        (*covN)(0,0) = sigmaSq + m_addError*m_addError;
         //
         // memory allocated dynamically for the PrepRawData is managed by Event Store in the converters
         //
diff --git a/MuonSpectrometer/MuonReconstruction/MuonDataPrep/STgcClusterization/src/SimpleSTgcClusterBuilderTool.h b/MuonSpectrometer/MuonReconstruction/MuonDataPrep/STgcClusterization/src/SimpleSTgcClusterBuilderTool.h
index 1f1e266eb915..f9241c3c8ceb 100644
--- a/MuonSpectrometer/MuonReconstruction/MuonDataPrep/STgcClusterization/src/SimpleSTgcClusterBuilderTool.h
+++ b/MuonSpectrometer/MuonReconstruction/MuonDataPrep/STgcClusterization/src/SimpleSTgcClusterBuilderTool.h
@@ -50,6 +50,7 @@ namespace Muon
 
     double m_chargeCut;
     unsigned int m_maxHoleSize;
+    double m_addError;
 
     /// Muon detector manager and helper
     const MuonGM::MuonDetectorManager* m_muonMgr;
-- 
GitLab