From 06effdc3ccf02b1d3d8cdbb2103ff24755f20c8f Mon Sep 17 00:00:00 2001 From: Stewart Martin-Haugh <smh@cern.ch> Date: Fri, 10 Mar 2017 13:55:31 +0100 Subject: [PATCH] Fix WriteHandleKey for FTF_MT Former-commit-id: 3b42b6ef9d7c312dcf7344c6b940f9dfa07fb176 --- .../python/TrigFastTrackFinderMT_Config.py | 7 ------- .../TrigFastTrackFinder/src/TrigFastTrackFinderMT.cxx | 4 ++++ .../ViewAlgsTest/python/ID_RawDataMT_Trigger.py | 9 +++++---- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Trigger/TrigAlgorithms/TrigFastTrackFinder/python/TrigFastTrackFinderMT_Config.py b/Trigger/TrigAlgorithms/TrigFastTrackFinder/python/TrigFastTrackFinderMT_Config.py index 5958268caef..b3cc2d6a811 100644 --- a/Trigger/TrigAlgorithms/TrigFastTrackFinder/python/TrigFastTrackFinderMT_Config.py +++ b/Trigger/TrigAlgorithms/TrigFastTrackFinder/python/TrigFastTrackFinderMT_Config.py @@ -74,13 +74,6 @@ class TrigFastTrackFinderMTBase(TrigFastTrackFinderMT): InDetTrigSiDetElementsRoadMaker_FTF = InDetTrigSiDetElementsRoadMakerCosmics.clone('InDetTrigSiDetElementsRoadMaker_FTF') ToolSvc += InDetTrigSiDetElementsRoadMaker_FTF - - from InDetTrigRecExample.InDetTrigConfigRecLoadTools import InDetTrigSiComTrackFinder - InDetTrigSiComTrackFinder_FTF = InDetTrigSiComTrackFinder.clone("InDetTrigSiComTrackFinder_FTF") - ToolSvc += InDetTrigSiComTrackFinder_FTF - print InDetTrigSiComTrackFinder_FTF - - from InDetTrigRecExample.ConfiguredNewTrackingTrigCuts import EFIDTrackingCuts TrackingCuts = EFIDTrackingCuts if remapped_type=="cosmics": diff --git a/Trigger/TrigAlgorithms/TrigFastTrackFinder/src/TrigFastTrackFinderMT.cxx b/Trigger/TrigAlgorithms/TrigFastTrackFinder/src/TrigFastTrackFinderMT.cxx index 4ec527058fb..45c30076aa1 100644 --- a/Trigger/TrigAlgorithms/TrigFastTrackFinder/src/TrigFastTrackFinderMT.cxx +++ b/Trigger/TrigAlgorithms/TrigFastTrackFinder/src/TrigFastTrackFinderMT.cxx @@ -151,6 +151,9 @@ TrigFastTrackFinderMT::TrigFastTrackFinderMT(const std::string& name, ISvcLocato declareProperty( "MinHits", m_minHits = 5 ); declareProperty( "OutputCollectionSuffix",m_outputCollectionSuffix = ""); + declareProperty("TracksName", + m_outputTracksKey = std::string("TrigFastTrackFinder_Tracks"), + "TrackCollection name"); declareProperty( "UseBeamSpot", m_useBeamSpot = true); declareProperty( "FreeClustersCut" ,m_nfreeCut ); @@ -460,6 +463,7 @@ StatusCode TrigFastTrackFinderMT::execute() { m_currentStage = 1; m_countTotalRoI++; + m_outputTracksKey = m_attachedFeatureName; SG::WriteHandle<TrackCollection> outputTracks(m_outputTracksKey); outputTracks = std::make_unique<TrackCollection>(); diff --git a/Trigger/TrigSteer/ViewAlgsTest/python/ID_RawDataMT_Trigger.py b/Trigger/TrigSteer/ViewAlgsTest/python/ID_RawDataMT_Trigger.py index 8ddc7a90fe6..824648faccf 100644 --- a/Trigger/TrigSteer/ViewAlgsTest/python/ID_RawDataMT_Trigger.py +++ b/Trigger/TrigSteer/ViewAlgsTest/python/ID_RawDataMT_Trigger.py @@ -276,9 +276,10 @@ InDetSiTrackerSpacePointFinder = InDet__SiTrackerSpacePointFinder(name ProcessOverlaps = DetFlags.haveRIO.SCT_on()) topSequence += InDetSiTrackerSpacePointFinder -#from TrigFastTrackFinder.TrigFastTrackFinderMT_Config import TrigFastTrackFinderMT_eGamma -#theFTFMT = TrigFastTrackFinderMT_eGamma() -# -#topSequence += theFTFMT +from TrigFastTrackFinder.TrigFastTrackFinderMT_Config import TrigFastTrackFinderMT_eGamma +theFTFMT = TrigFastTrackFinderMT_eGamma() +theFTFMT.outputLevel=VERBOSE + +topSequence += theFTFMT -- GitLab