From cd6b6fde540379f393cffc3067e358d604e4af6f Mon Sep 17 00:00:00 2001 From: scott snyder Date: Fri, 4 Dec 2020 00:17:51 +0100 Subject: [PATCH] InDetRecExample: Fix for cosmic configuration. The cosmic version of SiSpacePointsSeedMaker doesn't have all the properties that the regular version does. Condition setting these properties on whether cosmics are configured. Fixes crash with q220. --- .../share/ConfiguredNewTrackingSiPattern.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/InnerDetector/InDetExample/InDetRecExample/share/ConfiguredNewTrackingSiPattern.py b/InnerDetector/InDetExample/InDetRecExample/share/ConfiguredNewTrackingSiPattern.py index 64b02d8db79..22533aa4a0b 100644 --- a/InnerDetector/InDetExample/InDetRecExample/share/ConfiguredNewTrackingSiPattern.py +++ b/InnerDetector/InDetExample/InDetRecExample/share/ConfiguredNewTrackingSiPattern.py @@ -114,13 +114,14 @@ class ConfiguredNewTrackingSiPattern: if NewTrackingCuts.mode() == "R3LargeD0": - InDetSiSpacePointsSeedMaker.optimisePhiBinning = False + if not InDetFlags.doCosmics(): + InDetSiSpacePointsSeedMaker.optimisePhiBinning = False + InDetSiSpacePointsSeedMaker.maxSeedsForSpacePointStrips = NewTrackingCuts.MaxSeedsPerSP_Strips() + InDetSiSpacePointsSeedMaker.alwaysKeepConfirmedStripSeeds = NewTrackingCuts.KeepAllConfirmedStripSeeds() + InDetSiSpacePointsSeedMaker.seedScoreBonusConfirmationSeed = -2000 #let's be generous InDetSiSpacePointsSeedMaker.usePixel = False InDetSiSpacePointsSeedMaker.etaMax = NewTrackingCuts.maxEta() - InDetSiSpacePointsSeedMaker.maxSeedsForSpacePointStrips = NewTrackingCuts.MaxSeedsPerSP_Strips() - InDetSiSpacePointsSeedMaker.alwaysKeepConfirmedStripSeeds = NewTrackingCuts.KeepAllConfirmedStripSeeds() InDetSiSpacePointsSeedMaker.maxdRadius = 150 - InDetSiSpacePointsSeedMaker.seedScoreBonusConfirmationSeed = -2000 #let's be generous if usePrdAssociationTool: # not all classes have that property !!! -- GitLab