Skip to content

Enable .59521 and .59621 wfs for profiling #42061

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ def condition(self, fragment, stepList, key, hasHarvest):
# - 2023 conditions, Z->mumu
# - 2026D88 conditions, TTbar
class PatatrackWorkflow(UpgradeWorkflow):
def __init__(self, digi = {}, reco = {}, harvest = {}, **kwargs):
def __init__(self, digi = {}, reco = {}, mini = {}, harvest = {}, **kwargs):
# adapt the parameters for the UpgradeWorkflow init method
super(PatatrackWorkflow, self).__init__(
steps = [
Expand All @@ -788,6 +788,7 @@ def __init__(self, digi = {}, reco = {}, harvest = {}, **kwargs):
'RecoNanoFakeHLT',
'HARVESTNano',
'HARVESTNanoFakeHLT',
'MiniAOD',
'Nano',
'ALCA',
'ALCAPhase2'
Expand All @@ -805,17 +806,20 @@ def __init__(self, digi = {}, reco = {}, harvest = {}, **kwargs):
'RecoNanoFakeHLT',
'HARVESTNano',
'HARVESTNanoFakeHLT',
'MiniAOD',
'Nano',
'ALCA',
'ALCAPhase2'
],
**kwargs)
self.__digi = digi
self.__reco = reco
self.__reco.update({
'--datatier': 'GEN-SIM-RECO,DQMIO',
'--eventcontent': 'RECOSIM,DQM'
})
if 'DQM' in self.__reco:
self.__reco.update({
'--datatier': 'GEN-SIM-RECO,DQMIO',
'--eventcontent': 'RECOSIM,DQM'
})
self.__mini = mini
self.__harvest = harvest

def condition(self, fragment, stepList, key, hasHarvest):
Expand Down Expand Up @@ -847,6 +851,11 @@ def setup_(self, step, stepName, stepDict, k, properties):
stepDict[stepName][k] = None
else:
stepDict[stepName][k] = merge([self.__reco, stepDict[step][k]])
elif 'MiniAOD' in step:
if self.__mini is None:
stepDict[stepName][k] = None
else:
stepDict[stepName][k] = merge([self.__mini, stepDict[step][k]])
elif 'HARVEST' in step:
if self.__harvest is None:
stepDict[stepName][k] = None
Expand Down Expand Up @@ -1390,6 +1399,25 @@ def setup_(self, step, stepName, stepDict, k, properties):
suffix = 'Patatrack_FullRecoTripletsCPU',
offset = 0.595,
)
# - ProdLike
upgradeWFs['PatatrackFullRecoTripletsCPUProdLike'] = PatatrackWorkflow(
digi = {
# the HLT menu is already set up for using GPUs if available and if the "gpu" modifier is enabled
'--datatier':'GEN-SIM-RAW',
'--eventcontent':'RAWSIM',
},
reco = {
# skip the @pixelTrackingOnlyValidation which cannot run together with the full reconstruction
'-s': 'RAW2DIGI:RawToDigi+RawToDigi_pixelOnly,L1Reco,RECO:reconstruction+reconstruction_pixelTrackingOnly,RECOSIM',
'--procModifiers': 'pixelNtupletFit',
'--customise' : 'RecoTracker/Configuration/customizePixelTracksForTriplets.customizePixelTracksForTriplets',
'--datatier':'AODSIM',
'--eventcontent':'AODSIM',
},
harvest = None,
suffix = 'Patatrack_FullRecoTripletsCPUProdLike',
offset = 0.59521,
)

# Workflow running the Pixel triplets, ECAL and HCAL reconstruction on GPU (optional), together with the full offline reconstruction on CPU
# - HLT on GPU (optional)
Expand All @@ -1412,6 +1440,26 @@ def setup_(self, step, stepName, stepDict, k, properties):
suffix = 'Patatrack_FullRecoTripletsGPU',
offset = 0.596,
)
# - ProdLike
upgradeWFs['PatatrackFullRecoTripletsGPUProdLike'] = PatatrackWorkflow(
digi = {
# the HLT menu is already set up for using GPUs if available and if the "gpu" modifier is enabled
'--procModifiers': 'gpu',
'--datatier':'GEN-SIM-RAW',
'--eventcontent':'RAWSIM',
},
reco = {
# skip the @pixelTrackingOnlyValidation which cannot run together with the full reconstruction
'-s': 'RAW2DIGI:RawToDigi+RawToDigi_pixelOnly,L1Reco,RECO:reconstruction+reconstruction_pixelTrackingOnly,RECOSIM',
'--procModifiers': 'pixelNtupletFit,gpu',
'--customise': 'RecoTracker/Configuration/customizePixelTracksForTriplets.customizePixelTracksForTriplets',
'--datatier':'AODSIM',
'--eventcontent':'AODSIM',
},
harvest = None,
suffix = 'Patatrack_FullRecoTripletsGPUProdLike',
offset = 0.59621,
)

# Workflow running the Pixel triplets, ECAL and HCAL reconstruction on CPU and GPU, together with the full offline reconstruction on CPU
# - HLT on GPU (required)
Expand All @@ -1437,7 +1485,6 @@ def setup_(self, step, stepName, stepDict, k, properties):
offset = 0.597,
)


# end of Patatrack workflows

class UpgradeWorkflow_ProdLike(UpgradeWorkflow):
Expand Down