From 80e792e11ce53320b9840ef499f0070a2e129974 Mon Sep 17 00:00:00 2001 From: mmusich Date: Thu, 10 Aug 2023 15:23:28 +0200 Subject: [PATCH] add customization function to remove SiStrip DCS checks from DQM and modify 141.032 for re-reco without DCS --- .../python/relval_standard.py | 2 +- .../python/relval_steps.py | 8 +++-- .../python/customizeForNoTrackerDCS.py | 35 +++++++++++++++++++ 3 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 DQM/SiStripMonitorClient/python/customizeForNoTrackerDCS.py diff --git a/Configuration/PyReleaseValidation/python/relval_standard.py b/Configuration/PyReleaseValidation/python/relval_standard.py index 1c70eed0547a1..136d2c0d4d603 100644 --- a/Configuration/PyReleaseValidation/python/relval_standard.py +++ b/Configuration/PyReleaseValidation/python/relval_standard.py @@ -524,7 +524,7 @@ workflows[141.013] = ['',['RunMuonEG2023B','HLTDR3_2023B','RECONANORUN3_reHLT_2023B','HARVESTRUN3_2023B']] workflows[141.031] = ['',['RunMuon2023C','HLTDR3_2023','RECONANORUN3_reHLT_2023','HARVESTRUN3_2023']] -workflows[141.032] = ['',['RunZeroBias2023C','HLTDR3_2023','RECONANORUN3_ZB_reHLT_2023','HARVESTRUN3_ZB_2023']] +workflows[141.032] = ['',['RunZeroBias2023C','HLTDR3_2023','RECONANORUN3_reHLT_2023noDCS','HARVESTRUN3_ZB_2023']] workflows[141.033] = ['',['RunBTagMu2023C','HLTDR3_2023','RECONANORUN3_reHLT_2023','HARVESTRUN3_2023']] workflows[141.034] = ['',['RunJetMET2023C','HLTDR3_2023','RECONANORUN3_reHLT_2023','HARVESTRUN3_2023']] workflows[141.035] = ['',['RunDisplacedJet2023C','HLTDR3_2023','RECONANORUN3_reHLT_2023','HARVESTRUN3_2023']] diff --git a/Configuration/PyReleaseValidation/python/relval_steps.py b/Configuration/PyReleaseValidation/python/relval_steps.py index 349e74614a7f1..3e88419bd814b 100644 --- a/Configuration/PyReleaseValidation/python/relval_steps.py +++ b/Configuration/PyReleaseValidation/python/relval_steps.py @@ -584,9 +584,10 @@ steps['RunTau2023B']={'INPUT':InputInfo(dataSet='/Tau/Run2023B-v1/RAW',label='2023B',events=100000,location='STD', ls=Run2023B)} steps['RunMuonEG2023B']={'INPUT':InputInfo(dataSet='/MuonEG/Run2023B-v1/RAW',label='2023B',events=100000,location='STD', ls=Run2023B)} -Run2023C={367131: [[1, 149]]} +#Run2023C={368343: [[1, 10]]} +Run2023C={368343: [[484, 485]]} steps['RunMuon2023C']={'INPUT':InputInfo(dataSet='/Muon0/Run2023C-v1/RAW',label='2023C',events=100000,location='STD', ls=Run2023C)} -steps['RunZeroBias2023C']={'INPUT':InputInfo(dataSet='/ZeroBias/Run2023C-v1/RAW',label='2023C',events=100000,location='STD', ls=Run2023C)} +steps['RunZeroBias2023C']={'INPUT':InputInfo(dataSet='/ExpressPhysics/Run2023C-Express-v4/FEVT',label='2023C',events=100000,location='STD', ls=Run2023C)} steps['RunBTagMu2023C']={'INPUT':InputInfo(dataSet='/BTagMu/Run2023C-v1/RAW',label='2023C',events=100000,location='STD', ls=Run2023C)} steps['RunNoBPTX2023C']={'INPUT':InputInfo(dataSet='/NoBPTX/Run2023C-v1/RAW',label='2023C',events=100000,location='STD', ls=Run2023C)} steps['RunHcalNZS2023C']={'INPUT':InputInfo(dataSet='/HcalNZS/Run2023C-v1/RAW',label='2023C',events=100000,location='STD', ls=Run2023C)} @@ -2911,6 +2912,9 @@ def gen2023HiMix(fragment,howMuch): steps['RECOCOSMRUN3_reHLT_2022']=merge([{'--scenario':'cosmics','-s':'RAW2DIGI,L1Reco,RECO,DQM','--datatier':'RECO,DQMIO','--eventcontent':'RECO,DQM'},steps['RECONANORUN3_reHLT_2022']]) steps['RECONANORUN3_reHLT_2023']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,PAT,NANO,DQM:@standardDQM+@miniAODDQM+@nanoAODDQM','--datatier':'RECO,MINIAOD,NANOAOD,DQMIO','--eventcontent':'RECO,MINIAOD,NANOEDMAOD,DQM'},steps['RECODR3_reHLT_2023']]) + +steps['RECONANORUN3_reHLT_2023noDCS']=merge([{'--customise':' DQM/SiStripMonitorClient/customizeForNoTrackerDCS.removeTrackerDCSChecks'},steps['RECONANORUN3_reHLT_2023']]) + steps['RECONANORUN3_reHLT_2023B']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,PAT,NANO,DQM:@standardDQM+@miniAODDQM+@nanoAODDQM','--datatier':'RECO,MINIAOD,NANOAOD,DQMIO','--eventcontent':'RECO,MINIAOD,NANOEDMAOD,DQM'},steps['RECODR3_reHLT_2023B']]) steps['RECONANORUN3_ZB_reHLT_2023B']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,PAT,NANO,DQM:@rerecoZeroBias+@miniAODDQM+@nanoAODDQM'},steps['RECONANORUN3_reHLT_2023B']]) steps['RECONANORUN3_ZB_reHLT_2023']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,PAT,NANO,DQM:@rerecoZeroBias+@miniAODDQM+@nanoAODDQM'},steps['RECONANORUN3_reHLT_2023']]) diff --git a/DQM/SiStripMonitorClient/python/customizeForNoTrackerDCS.py b/DQM/SiStripMonitorClient/python/customizeForNoTrackerDCS.py new file mode 100644 index 0000000000000..a1fcdba3eadb7 --- /dev/null +++ b/DQM/SiStripMonitorClient/python/customizeForNoTrackerDCS.py @@ -0,0 +1,35 @@ +""" +Module to remove SiStrip DCS checks in Strip and Tracking Monitors +""" + +import FWCore.ParameterSet.Config as cms + +def producers_by_type(process, *types): + return [module for module in process._Process__producers.values() if module._TypedParameterizable__type in types] + +def removeDCSChecks(process, acceptedParts): + print('WARNING: removing SiStrip DCS Checks in Strip and Tracking Monitors') + + for producerType in ['SiStripMonitorTrack', 'SiStripMonitorCluster']: + for producer in producers_by_type(process, producerType): + producer.UseDCSFiltering = cms.bool(False) + + for producer in producers_by_type(process, 'SiStripMonitorCluster'): + producer.StripDCSfilter.dcsPartitions = cms.vint32(acceptedParts) + + for producer in producers_by_type(process, 'TrackingMonitor'): + producer.genericTriggerEventPSet.dcsPartitions = cms.vint32(acceptedParts) + + return process + +def removeStripDCSChecks(process): + removeDCSChecks(process, [28, 29]) # keep 28-29: pixel + return process + +def removePixelDCSChecks(process): + removeDCSChecks(process, [24, 25, 26, 27]) # keep 24-27: strip + return process + +def removeTrackerDCSChecks(process): + removeDCSChecks(process, []) # do not keep anything + return process