Skip to content
Snippets Groups Projects
Commit c234888f authored by Savanna Shaw's avatar Savanna Shaw
Browse files

Fix for muon PRD collection names in Run 2 triggers

Trying to fix the PRD collection names in the Run 2 muon trigger configuration. We can't currently use the same collection names in the trigger and offline when running the offline and trigger in the same jobs (we run into the problems reported in ATR-20971).
However, there are many tools that depend on these collection names, and it's not that straight forward to change them all (and for code that will be obsolete soon, isn't really worth the effort). Since this is only a problem for the Run 2 trigger code, and this is only used for validation comparisons between Run 2 and Run 3 triggers where we don't run the trigger and offline reco in the same job, will do the following:
- Use the default offline names in jobs where we are not going to be running the offline and trigger at the same time, so we get correct Run2 trgger results
- Will use different names when we are running the trigger and offline at the same time and accept that the HLT muon trigger output is not 100% correct (it's a small effect anyway)
parent a9778acd
No related branches found
No related tags found
No related merge requests found
...@@ -502,31 +502,50 @@ class TrigMuonEFStandaloneTrackToolConfig (TrigMuonEFStandaloneTrackTool): ...@@ -502,31 +502,50 @@ class TrigMuonEFStandaloneTrackToolConfig (TrigMuonEFStandaloneTrackTool):
self.RpcRawDataProvider = "TMEF_RpcRawDataProviderTool" self.RpcRawDataProvider = "TMEF_RpcRawDataProviderTool"
self.TgcRawDataProvider = "TMEF_TgcRawDataProviderTool" self.TgcRawDataProvider = "TMEF_TgcRawDataProviderTool"
#Need to run non-MT version of decoding tools #Need to run non-MT version of decoding tools in the trigger since the caching is not available in MT versions
#Need different PRD container names to run offline and trigger in same jobs #Need different PRD container names to run offline and trigger in same jobs, but there are many tools that depend on these containers...
#Since this is legacy code only used for validation comparisons against the Run 3 triggers, will do the not-particularly-nice solution of
#creating containers with unique names only if we are running offline and trigger in the same jobs, and otherwise just use the default names.
#This means that the trigger output when running the trigger as part of RAWtoESD is not 100% correct (the pattern finding uses the correct containers,
#so it's a small effect overall anyway), but that's an use case not currently needed for trigger validation purposes
from AthenaCommon.AppMgr import ToolSvc from AthenaCommon.AppMgr import ToolSvc
#MDT #MDT
from MuonMDT_CnvTools.MuonMDT_CnvToolsConf import Muon__MdtRdoToPrepDataTool from MuonMDT_CnvTools.MuonMDT_CnvToolsConf import Muon__MdtRdoToPrepDataTool
MdtRdoToMdtPrepDataTool = Muon__MdtRdoToPrepDataTool(name = "TrigMdtRdoToPrepDataTool", OutputCollection = "TrigMDT_DriftCircles") from MuonCSC_CnvTools.MuonCSC_CnvToolsConf import Muon__CscRdoToCscPrepDataTool
self.MdtPrepDataContainer=MdtRdoToMdtPrepDataTool.OutputCollection from MuonTGC_CnvTools.MuonTGC_CnvToolsConf import Muon__TgcRdoToPrepDataTool
from MuonRPC_CnvTools.MuonRPC_CnvToolsConf import Muon__RpcRdoToPrepDataTool
MdtRdoToMdtPrepDataTool = Muon__MdtRdoToPrepDataTool(name = "TrigEFMdtRdoToPrepDataTool")
CscRdoToCscPrepDataTool = Muon__CscRdoToCscPrepDataTool(name = "TrigEFCscRdoToPrepDataTool")
TgcRdoToTgcPrepDataTool = Muon__TgcRdoToPrepDataTool(name = "TrigEFTgcRdoToPrepDataTool")
RpcRdoToRpcPrepDataTool = Muon__RpcRdoToPrepDataTool(name = "TrigEFRpcRdoToPrepDataTool")
if not rec.doRDOTrigger and rec.doESD:
MdtRdoToMdtPrepDataTool.OutputCollection = "TrigMDT_DriftCircles"
CscRdoToCscPrepDataTool.OutputCollection = "TrigCSC_Clusters"
TgcRdoToTgcPrepDataTool.OutputCollection = "TrigTGC_Measurements"
TgcRdoToTgcPrepDataTool.OutputCoinCollection = "TrigerT1CoinDataCollection"
RpcRdoToRpcPrepDataTool.TriggerOutputCollection="TrigRPC_Measurements"
#InputCollection is really the output RPC coin collection...
RpcRdoToRpcPrepDataTool.InputCollection="TrigRPC_triggerHits"
else:
MdtRdoToMdtPrepDataTool.OutputCollection = "MDT_DriftCircles"
CscRdoToCscPrepDataTool.OutputCollection = "CSC_Clusters"
TgcRdoToTgcPrepDataTool.OutputCollection = "TGC_Measurements"
TgcRdoToTgcPrepDataTool.OutputCoinCollection = "TrigT1CoinDataCollection"
RpcRdoToRpcPrepDataTool.TriggerOutputCollection="RPC_Measurements"
RpcRdoToRpcPrepDataTool.InputCollection="RPC_triggerHits"
ToolSvc += MdtRdoToMdtPrepDataTool ToolSvc += MdtRdoToMdtPrepDataTool
self.MdtPrepDataContainer = MdtRdoToMdtPrepDataTool.OutputCollection
self.MdtPrepDataProvider=MdtRdoToMdtPrepDataTool self.MdtPrepDataProvider=MdtRdoToMdtPrepDataTool
#CSC #CSC
from MuonCSC_CnvTools.MuonCSC_CnvToolsConf import Muon__CscRdoToCscPrepDataTool
CscRdoToCscPrepDataTool = Muon__CscRdoToCscPrepDataTool(name = "TrigCscRdoToPrepDataTool", OutputCollection="TrigCSC_Measurements")
ToolSvc += CscRdoToCscPrepDataTool ToolSvc += CscRdoToCscPrepDataTool
self.CscPrepDataProvider=CscRdoToCscPrepDataTool self.CscPrepDataProvider=CscRdoToCscPrepDataTool
self.CscPrepDataContainer=CscRdoToCscPrepDataTool.OutputCollection self.CscPrepDataContainer=CscRdoToCscPrepDataTool.OutputCollection
#TGC #TGC
from MuonTGC_CnvTools.MuonTGC_CnvToolsConf import Muon__TgcRdoToPrepDataTool
TgcRdoToTgcPrepDataTool = Muon__TgcRdoToPrepDataTool(name = "TrigTgcRdoToPrepDataTool", OutputCollection="TrigTGC_Measurements",OutputCoinCollection="TrigerT1CoinDataCollection")
ToolSvc += TgcRdoToTgcPrepDataTool ToolSvc += TgcRdoToTgcPrepDataTool
self.TgcPrepDataProvider=TgcRdoToTgcPrepDataTool self.TgcPrepDataProvider=TgcRdoToTgcPrepDataTool
self.TgcPrepDataContainer=TgcRdoToTgcPrepDataTool.OutputCollection self.TgcPrepDataContainer=TgcRdoToTgcPrepDataTool.OutputCollection
#RPC #RPC
from MuonRPC_CnvTools.MuonRPC_CnvToolsConf import Muon__RpcRdoToPrepDataTool
#InputCollection is really the output RPC coin collection...
RpcRdoToRpcPrepDataTool = Muon__RpcRdoToPrepDataTool(name = "TrigRpcRdoToPrepDataTool", TriggerOutputCollection="TrigRPC_Measurements", InputCollection="TrigRPC_triggerHits")
ToolSvc += RpcRdoToRpcPrepDataTool ToolSvc += RpcRdoToRpcPrepDataTool
self.RpcPrepDataProvider=RpcRdoToRpcPrepDataTool self.RpcPrepDataProvider=RpcRdoToRpcPrepDataTool
self.RpcPrepDataContainer=RpcRdoToRpcPrepDataTool.TriggerOutputCollection self.RpcPrepDataContainer=RpcRdoToRpcPrepDataTool.TriggerOutputCollection
......
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