-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Adapt pixel cpe algo to better handle broken clusters #47966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
8b38473
be025db
75a8efc
9d233f4
61beee2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| import FWCore.ParameterSet.Config as cms | ||
|
|
||
| # This modifier enables the good edge algorithm in pixel hit reconstruction that handles broken/truncated pixel cluster caused by radiation damage | ||
| siPixelGoodEdgeAlgo = cms.Modifier() |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -640,6 +640,40 @@ def condition(self, fragment, stepList, key, hasHarvest): | |||
| offset = 0.18, | ||||
| ) | ||||
|
|
||||
| # pixel GoodEdgeAlgo CPE workflows | ||||
| class UpgradeWorkflow_siPixelGoodEdgeAlgo(UpgradeWorkflow): | ||||
| def setup_(self, step, stepName, stepDict, k, properties): | ||||
| if 'HLTOnly'==step: | ||||
| stepDict[stepName][k] = merge([{'--customise' : 'RecoLocalTracker/Configuration/customizeHLT.customiseFor47966'}, stepDict[step][k]]) | ||||
| if 'Reco' in step: | ||||
| stepDict[stepName][k] = merge([{'--procModifiers': 'siPixelGoodEdgeAlgo'}, stepDict[step][k]]) | ||||
| def condition(self, fragment, stepList, key, hasHarvest): | ||||
| result = (fragment=="QCD_Pt_1800_2400_14" or fragment=="TTbar_14TeV" ) and any(y in key for y in ['2025']) | ||||
| return result | ||||
| upgradeWFs['siPixelGoodEdgeAlgo'] = UpgradeWorkflow_siPixelGoodEdgeAlgo( | ||||
| steps = [ | ||||
| 'HLTOnly', | ||||
| 'DigiTrigger', | ||||
| 'Reco', | ||||
| 'RecoFakeHLT', | ||||
| 'RecoGlobal', | ||||
| 'RecoGlobalFakeHLT', | ||||
| 'RecoNano', | ||||
| 'RecoNanoFakeHLT', | ||||
| ], | ||||
| PU = [ | ||||
| 'HLTOnly', | ||||
| 'DigiTrigger', | ||||
| 'Reco', | ||||
| 'RecoFakeHLT', | ||||
| 'RecoGlobal', | ||||
| 'RecoGlobalFakeHLT', | ||||
| 'RecoNano', | ||||
| 'RecoNanoFakeHLT', | ||||
| ], | ||||
| suffix = '_siPixelGoodEdgeAlgo', | ||||
| offset = 0.181, | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. apparently there is an offset "collision" with this:
mroguljic marked this conversation as resolved.
Outdated
|
||||
| ) | ||||
|
|
||||
| #Workflow to enable displacedRegionalStep tracking iteration | ||||
| class UpgradeWorkflow_displacedRegional(UpgradeWorkflowTracking): | ||||
|
|
@@ -3705,4 +3739,4 @@ def __init__(self, howMuch, dataset): | |||
| ('Hydjet_Quenched_MinBias_5362GeV_cfi', UpgradeFragment(U2000by1,'HydjetQMinBias_5362GeV')), | ||||
| ('Hydjet_Quenched_MinBias_5519GeV_cfi', UpgradeFragment(U2000by1,'HydjetQMinBias_5519GeV')), | ||||
| ('SingleMuPt15Eta0_0p4_cfi', UpgradeFragment(Kby(9,100),'SingleMuPt15Eta0p_0p4')), | ||||
| ]) | ||||
| ]) | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. picky, but newline is missing here.
mroguljic marked this conversation as resolved.
Outdated
|
||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import FWCore.ParameterSet.Config as cms | ||
|
|
||
| # helper functions | ||
| from HLTrigger.Configuration.common import * | ||
|
|
||
|
|
||
| # Enable good edge CPE algorithm in pixel local reconstruction | ||
| def customiseFor47966(process): | ||
| for prod in esproducers_by_type(process, 'PixelCPEGenericESProducer', 'PixelCPEFastParamsESProducerAlpakaPhase1@alpaka'): | ||
| if not hasattr(prod, 'GoodEdgeAlgo'): | ||
| prod.GoodEdgeAlgo = cms.bool(True) | ||
| else: | ||
| prod.GoodEdgeAlgo = True | ||
|
|
||
| return process | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. picky, but new line is missing here.
mroguljic marked this conversation as resolved.
Outdated
|
||
Uh oh!
There was an error while loading. Please reload this page.