From 0772ea9bcfd24b61af033dedb58c187ae0c3b52a Mon Sep 17 00:00:00 2001 From: Nicolas Koehler Date: Tue, 18 Feb 2020 08:11:39 +0000 Subject: [PATCH 1/2] fix logic when runnin MuonLayerHoughTool on truth --- .../MuonHoughPatternTools/src/MuonLayerHoughTool.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MuonSpectrometer/MuonReconstruction/MuonPatternFinders/MuonPatternFinderTools/MuonHoughPatternTools/src/MuonLayerHoughTool.cxx b/MuonSpectrometer/MuonReconstruction/MuonPatternFinders/MuonPatternFinderTools/MuonHoughPatternTools/src/MuonLayerHoughTool.cxx index d58bbab86db..e1bc16966b8 100644 --- a/MuonSpectrometer/MuonReconstruction/MuonPatternFinders/MuonPatternFinderTools/MuonHoughPatternTools/src/MuonLayerHoughTool.cxx +++ b/MuonSpectrometer/MuonReconstruction/MuonPatternFinders/MuonPatternFinderTools/MuonHoughPatternTools/src/MuonLayerHoughTool.cxx @@ -64,7 +64,8 @@ namespace Muon { initializeSectorMapping(); - if( m_truthNames.empty() && !m_doTruth ){ + // if m_truthNames is empty, fill it if running on truth + if( m_truthNames.empty() && m_doTruth ){ std::string postfix = "_TruthMap"; std::string allNames(""); for( unsigned int tech=0; tech Date: Thu, 20 Feb 2020 10:03:57 +0100 Subject: [PATCH 2/2] turn off DoTruth of MuonLayerHoughTool for trigger --- .../MuonReconstruction/MuonRecExample/python/MuonRecTools.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecTools.py b/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecTools.py index ecddd70ebe8..5f51cb26a86 100644 --- a/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecTools.py +++ b/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecTools.py @@ -448,7 +448,10 @@ def DCMathT0FitSegmentMaker(name='DCMathT0FitSegmentMaker',extraFlags=None,**kwa # end of factory function DCMathSegmentMaker def MuonLayerHoughTool(name='MuonLayerHoughTool',extraFlags=None,**kwargs): - kwargs.setdefault("DoTruth", rec.doTruth() ) + if TriggerFlags.MuonSlice.doTrigMuonConfig: + kwargs.setdefault("DoTruth", False) + else: + kwargs.setdefault("DoTruth", rec.doTruth()) return CfgMgr.Muon__MuonLayerHoughTool(name,**kwargs) def MuonSegmentFittingTool(name='MuonSegmentFittingTool',extraFlags=None,**kwargs): -- GitLab