Skip to content

Commit

Permalink
Merge pull request #41236 from AdrianoDee/wf_bph_dqm
Browse files Browse the repository at this point in the history
Add Wf `*.81` for BPH DQM
  • Loading branch information
cmsbuild authored Apr 5, 2023
2 parents 22a8f9d + b1c1d64 commit 2ac56cf
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Configuration/PyReleaseValidation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ The offsets currently in use are:
* 0.601: HLT as separate step
* 0.7: trackingMkFit modifier
* 0.8: BPH Parking (Run-2)
* 0.81: Running also HeavyFlavor DQM
* 0.9: Vector hits
* 0.12: Neutron background
* 0.13: MLPF algorithm
Expand Down Expand Up @@ -84,3 +85,4 @@ The offsets currently in use are:
* 0.9001: Sonic Triton
* 0.278: Weighted Vertexing in Blocks
* 0.279: Weighted Vertexing in Blocks and tracking only wf

Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,34 @@ def condition(self, fragment, stepList, key, hasHarvest):
offset = 0.8,
)

## Wf to add Heavy Flavor DQM to whichever DQM is already there
class UpgradeWorkflow_HeavyFlavor(UpgradeWorkflow):
def setup_(self, step, stepName, stepDict, k, properties):
self.__frags = ["B0","Psi2S","Bu","Bd","Xi","Bs"]
thisStep = stepDict[step][k]["-s"]
if "Reco" in step:
if "DQM:" in thisStep:
#print(thisStep.replace("DQM:","DQM:@heavyFlavor+"))
stepDict[stepName][k] = merge([{'-s': thisStep.replace("DQM:","DQM:@heavyFlavor+")}, stepDict[step][k]])
#print(k)
elif "DQM" in thisStep:
stepDict[stepName][k] = merge([{'-s': thisStep.replace("DQM","DQM:@heavyFlavor")}, stepDict[step][k]])
else:
stepDict[stepName][k] = merge([{'-s': thisStep + ",DQM:@heavyFlavor"}, stepDict[step][k]])

def condition(self, fragment, stepList, key, hasHarvest):
return any(frag in fragment for frag in self.__frags)

upgradeWFs['HeavyFlavor'] = UpgradeWorkflow_HeavyFlavor(
steps = [
'Reco',
'RecoNano'
],
PU = [],
suffix = '_HeavyFlavor',
offset = 0.81,
)

class UpgradeWorkflow_JMENano(UpgradeWorkflow):
def setup_(self, step, stepName, stepDict, k, properties):
if 'Nano' in step:
Expand Down

0 comments on commit 2ac56cf

Please sign in to comment.