Skip to content
Open
Show file tree
Hide file tree
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 @@ -1375,6 +1375,29 @@ def setup_(self, step, stepName, stepDict, k, properties):
offset = 0.521,
)

# HGCal-only local reconstruction and validation, without general tracking
# - Phase-2 only (HGCal does not exist in Run3)
# - RAW2DIGI + HGCal-only reconstruction, with DQM and validation
# - harvesting
class UpgradeWorkflow_HGCalOnly(PatatrackWorkflow):
def condition(self, fragment, stepList, key, hasHarvest):
return ('Run4' in key) and (fragment == "TTbar_14TeV") and hasHarvest

upgradeWFs['HGCalOnly'] = UpgradeWorkflow_HGCalOnly(
digi = {
# nothing special needed for the HGCal-only reconstruction
},
reco = {
'-s': 'RAW2DIGI:RawToDigi,RECO:reconstruction_hgcalOnly,VALIDATION:@HGCalOnlyValidation',
'--customise': 'Validation/Configuration/customiseHGCalOnly.customiseHGCalOnly',
},
harvest = {
'-s': 'HARVESTING:@HGCalOnlyValidation'
},
suffix = 'HGCalOnly',
offset = 0.531,
)

###############################################################################################################
### Alpaka workflows
###
Expand Down
16 changes: 16 additions & 0 deletions Configuration/StandardSequences/python/Reconstruction_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,22 @@
reconstruction_hcalOnly = cms.Sequence(reconstruction_hcalOnlyTask)
reconstruction_hcalOnlyLegacy = cms.Sequence(reconstruction_hcalOnlyLegacyTask)

# define a sequence to run the HGCal local reco without the tracking step, for HGCalOnly workflows
particleFlowClusterHGCalNoTracks = particleFlowClusterHGCal.clone(
initialClusteringStep=dict(tracksterSrc='ticlTrackstersCLUE3DHigh')
)
hgcalLocalRecoTask_hgcalOnly = hgcalLocalRecoTask.copyAndExclude([particleFlowClusterHGCal])
hgcalLocalRecoTask_hgcalOnly.add(particleFlowClusterHGCalNoTracks)

reconstruction_hgcalOnlyTask = cms.Task(
bunchSpacingProducer,
offlineBeamSpot,
hgcalLocalRecoTask_hgcalOnly,
mergeTICLTask,
pfClusteringHGCalTask
)
reconstruction_hgcalOnly = cms.Sequence(reconstruction_hgcalOnlyTask)

#need a fully expanded sequence copy
modulesToRemove = list() # copy does not work well
noTrackingAndDependent = list()
Expand Down
1 change: 1 addition & 0 deletions Validation/Configuration/python/autoValidation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
'standardValidationHiMix' : ['prevalidation','validationHiMix','validationHarvesting'],
'standardValidationNoHLTHiMix' : ['prevalidationNoHLT','validationNoHLTHiMix','validationHarvestingNoHLT'],
'HGCalValidation' : ['globalPrevalidationHGCal', 'globalValidationHGCal', 'hgcalValidatorPostProcessor'],
'HGCalOnlyValidation' : ['globalPrevalidationHGCal', 'globalValidationHGCalOnly', 'hgcalValidatorPostProcessor'],
'BarrelValidation' : ['globalPrevalidationBarrel', 'globalValidationBarrel', 'barrelValidatorPostProcessor'],
'MTDValidation' : ['', 'globalValidationMTD', 'mtdValidationPostProcessor'],
'ecalValidation_phase2' : ['', 'validationECALPhase2', ''],
Expand Down
7 changes: 7 additions & 0 deletions Validation/Configuration/python/customiseHGCalOnly.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import FWCore.ParameterSet.Config as cms


def customiseHGCalOnly(process):
## avoid crash due to missing track collection in HGCalOnly workflows
process.trackingParticleGsfTrackAssociation.ignoremissingtrackcollection = cms.untracked.bool(True)
return process
5 changes: 5 additions & 0 deletions Validation/Configuration/python/globalValidation_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@

globalValidationHGCal = cms.Sequence(hgcalValidation)

## remove the DQM modules depending on tracks from the HGCalOnly validation workflows
globalValidationHGCalOnly = globalValidationHGCal.copy()
globalValidationHGCalOnly.remove(hgcalTiclPFValidation)
globalValidationHGCalOnly.remove(hgcalPFJetValidation)

globalPrevalidationBarrel = cms.Sequence()
_globalPrevalidationBarrel = globalPrevalidationBarrel.copy()
_globalPrevalidationBarrel += cms.Sequence(barrelAssociators)
Expand Down