/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PhysicsTools/TruthInfo/python/customiseDropIncompleteValidators.py
25 строк
1 KB
Felice Pantaleo
TruthInfo: pileup-aware truth graph during mixing
12 июл 2026, 21:26
12 июл 2026, 21:26
c952e68
Код
Авторство
О чём код?
"""Harness-only customise for producing HGCAL validation plots from standalone RECO-from-step2 jobs. It removes validators that need EventSetup records or collections a standalone offline job does not provide (HCAL trigger-primitive record, HLT-only reco), keeping the offline HGCal validator and its associators intact. Not for PR configs: the CI workflows run the full chain and provide these inputs.""" def customise(process): drop = [ "AllHcalDigisValidation", # needs CaloTPGRecord "hcalDigisValidationSequence", "hltHgcalValidator", # HLT TICL reco not run in an offline RECO job "tpHltGsfTrackAssociation", "hltGsfTrackValidator", "hltTrackValidator", "hltMultiTrackValidator", ] for label in drop: if hasattr(process, label): process.__delattr__(label) # Also blank any path/sequence referencing the dropped labels leniently by # rebuilding the schedule without empty leftovers is unnecessary: EDM prunes # unscheduled modules, and removing the module makes the sequence skip it. return process