From d9110e60e613dd98e538da71252937b8f92204f3 Mon Sep 17 00:00:00 2001
From: Ian Connelly <ian.connelly@cern.ch>
Date: Mon, 10 Dec 2018 14:02:29 +0000
Subject: [PATCH] Catching some remaining CSC tools and making private

---
 .../MuonAlignment/MuonAlignExample/share/muonErrorScaling.py    | 2 +-
 .../MuonReconstruction/MuonRecExample/python/MuonRecTools.py    | 2 +-
 .../MuonTrackFinderTools/src/MuonChamberHoleRecoveryTool.cxx    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/MuonSpectrometer/MuonAlignment/MuonAlignExample/share/muonErrorScaling.py b/MuonSpectrometer/MuonAlignment/MuonAlignExample/share/muonErrorScaling.py
index 830556e08f4..f54e1283031 100644
--- a/MuonSpectrometer/MuonAlignment/MuonAlignExample/share/muonErrorScaling.py
+++ b/MuonSpectrometer/MuonAlignment/MuonAlignExample/share/muonErrorScaling.py
@@ -21,7 +21,7 @@ MdtDriftCircleOnTrackCreator.ScaleErrorsManually=False
 MdtDriftCircleOnTrackCreator.OutputLevel = outputLevel
 MdtDriftCircleOnTrackCreator.ErrorScalingTool=muonErrorScalingTool
     
-CscClusterOnTrackCreator = MuonRecTools.getPublicTool("CscClusterOnTrackCreator")
+CscClusterOnTrackCreator = MuonRecTools.getPrivateTool("CscClusterOnTrackCreator")
 CscClusterOnTrackCreator.DoRpcErrorScaling = True
 CscClusterOnTrackCreator.DoTgcErrorScaling = True
 CscClusterOnTrackCreator.DoCscErrorScaling = True
diff --git a/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecTools.py b/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecTools.py
index 54f3f99407f..f7077514bfc 100644
--- a/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecTools.py
+++ b/MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonRecTools.py
@@ -440,7 +440,7 @@ if DetFlags.detdescr.Muon_on() and rec.doMuon():
     getPublicTool("MuonSegmentMomentum")
     getPublicTool("MuonClusterOnTrackCreator")
     getPrivateTool("CscClusterOnTrackCreator")
-    getPublicTool("CscBroadClusterOnTrackCreator")
+    getPrivateTool("CscBroadClusterOnTrackCreator")
     getPublicTool("MdtDriftCircleOnTrackCreator")
     getPublicTool("MdtTubeHitOnTrackCreator")
         
diff --git a/MuonSpectrometer/MuonReconstruction/MuonTrackMakers/MuonTrackMakerTools/MuonTrackFinderTools/src/MuonChamberHoleRecoveryTool.cxx b/MuonSpectrometer/MuonReconstruction/MuonTrackMakers/MuonTrackMakerTools/MuonTrackFinderTools/src/MuonChamberHoleRecoveryTool.cxx
index 1e4a73712a2..b199e0aa555 100644
--- a/MuonSpectrometer/MuonReconstruction/MuonTrackMakers/MuonTrackMakerTools/MuonTrackFinderTools/src/MuonChamberHoleRecoveryTool.cxx
+++ b/MuonSpectrometer/MuonReconstruction/MuonTrackMakers/MuonTrackMakerTools/MuonTrackFinderTools/src/MuonChamberHoleRecoveryTool.cxx
@@ -67,7 +67,7 @@ namespace Muon {
       m_intersectSvc("MuonStationIntersectSvc",name()),
       m_extrapolator("Trk::Extrapolator/MuonExtrapolator"),
       m_mdtRotCreator("Muon::MdtDriftCircleOnTrackCreator/MdtDriftCircleOnTrackCreator"),
-      m_cscRotCreator("Muon::CscClusterOnTrackCreator/CscClusterOnTrackCreator"),
+      m_cscRotCreator("Muon::CscClusterOnTrackCreator/CscClusterOnTrackCreator", this),
       m_clusRotCreator("Muon::MuonClusterOnTrackCreator/MuonClusterOnTrackCreator"),
       m_pullCalculator("Trk::ResidualPullCalculator/ResidualPullCalculator"),
       m_idHelperTool("Muon::MuonIdHelperTool/MuonIdHelperTool"), 
-- 
GitLab