Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Norraphat committed Dec 22, 2023
1 parent 9fca027 commit 3e8c088
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Configuration/PyReleaseValidation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ The offsets currently in use are:
* 0.612: ECAL `phase2_ecal_devel` era, with automatic offload to GPU if available
* 0.631: ECAL component-method based digis
* 0.632: ECAL component-method based finely-sampled waveforms
* 0.633: ECAL phase2 Trigger Primitive
* 0.634: ECAL phase2 Trigger Primitive + component-method based digis
* 0.635: ECAL phase2 Trigger Primitive + component-method based finely-sampled waveforms
* 0.75: Phase-2 HLT
* 0.91: Track DNN modifier
* 0.97: Premixing stage1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1884,14 +1884,17 @@ def condition(self, fragment, stepList, key, hasHarvest):

# ECAL component
class UpgradeWorkflow_ECalComponent(UpgradeWorkflow):
def __init__(self, suffix, offset, ecalMod,
def __init__(self, suffix, offset, ecalTPPh2, ecalMod,
steps = [
'GenSim',
'GenSimHLBeamSpot',
'GenSimHLBeamSpot14',
'GenSimHLBeamSpotHGCALCloseBy',
'Digi',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal',
'ALCAPhase2',
],
PU = [
'GenSim',
Expand All @@ -1900,27 +1903,71 @@ def __init__(self, suffix, offset, ecalMod,
'GenSimHLBeamSpotHGCALCloseBy',
'Digi',
'DigiTrigger',
'RecoGlobal',
'HARVESTGlobal',
'ALCAPhase2',
]):
super(UpgradeWorkflow_ECalComponent, self).__init__(steps, PU, suffix, offset)
self.__ecalTPPh2 = ecalTPPh2
self.__ecalMod = ecalMod

def setup_(self, step, stepName, stepDict, k, properties):
if 'Sim' in step or 'Digi' in step:
stepDict[stepName][k] = deepcopy(stepDict[step][k])
if 'Sim' in step:
if self.__ecalMod is not None:
stepDict[stepName][k] = merge([{'--procModifiers':self.__ecalMod},stepDict[step][k]])
if 'Digi' in step:
if self.__ecalMod is not None:
stepDict[stepName][k] = merge([{'--procModifiers':self.__ecalMod},stepDict[step][k]])
if self.__ecalTPPh2 is not None:
mods = {'--era': stepDict[step][k]['--era']+',phase2_ecal_devel,phase2_ecalTP_devel'}
mods['-s'] = 'DIGI:pdigi_valid,DIGI2RAW,HLT:@fake2'
stepDict[stepName][k] = merge([mods, stepDict[step][k]])
if 'RecoGlobal' in step:
stepDict[stepName][k] = merge([{'-s': 'RAW2DIGI,RECO,RECOSIM,PAT',
'--datatier':'GEN-SIM-RECO',
'--eventcontent':'FEVTDEBUGHLT',
}, stepDict[step][k]])
if 'HARVESTGlobal' in step:
stepDict[stepName][k] = None
if 'ALCAPhase2' in step:
stepDict[stepName][k] = None

def condition(self, fragment, stepList, key, hasHarvest):
return ('2021' in key or '2023' in key or '2026' in key)

upgradeWFs['ECALComponent'] = UpgradeWorkflow_ECalComponent(
suffix = '_ecalComponent',
offset = 0.631,
ecalTPPh2 = None,
ecalMod = 'ecal_component',
)

upgradeWFs['ECALComponentFSW'] = UpgradeWorkflow_ECalComponent(
suffix = '_ecalComponentFSW',
offset = 0.632,
ecalTPPh2 = None,
ecalMod = 'ecal_component_finely_sampled_waveforms',
)

upgradeWFs['ECALTPPh2'] = UpgradeWorkflow_ECalComponent(
suffix = '_ecalTPPh2',
offset = 0.633,
ecalTPPh2 = 'phase2_ecal_devel,phase2_ecalTP_devel',
ecalMod = None,
)

upgradeWFs['ECALTPPh2Component'] = UpgradeWorkflow_ECalComponent(
suffix = '_ecalTPPh2Component',
offset = 0.634,
ecalTPPh2 = 'phase2_ecal_devel,phase2_ecalTP_devel',
ecalMod = 'ecal_component',
)

upgradeWFs['ECALTPPh2ComponentFSW'] = UpgradeWorkflow_ECalComponent(
suffix = '_ecalTPPh2ComponentFSW',
offset = 0.635,
ecalTPPh2 = 'phase2_ecal_devel,phase2_ecalTP_devel',
ecalMod = 'ecal_component_finely_sampled_waveforms',
)

Expand Down

0 comments on commit 3e8c088

Please sign in to comment.