Skip to content

Commit

Permalink
enable .59521,.59621
Browse files Browse the repository at this point in the history
  • Loading branch information
Norraphat committed Jun 22, 2023
1 parent 2d5bf31 commit 2706dee
Showing 1 changed file with 53 additions and 6 deletions.
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

0 comments on commit 2706dee

Please sign in to comment.