From 84150cfc0294529721d1ec80216b97f92951dae3 Mon Sep 17 00:00:00 2001 From: lathomasexport Date: Fri, 12 Jan 2024 12:00:41 +0100 Subject: [PATCH] TeV jet RAW-RECO skim --- DPGAnalysis/Skims/python/Skims_DPG_cff.py | 14 ++++++++++ DPGAnalysis/Skims/python/TeVJetSkim_cff.py | 31 ++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 DPGAnalysis/Skims/python/TeVJetSkim_cff.py diff --git a/DPGAnalysis/Skims/python/Skims_DPG_cff.py b/DPGAnalysis/Skims/python/Skims_DPG_cff.py index 222bca5ee7fe4..6dea86124f6dc 100644 --- a/DPGAnalysis/Skims/python/Skims_DPG_cff.py +++ b/DPGAnalysis/Skims/python/Skims_DPG_cff.py @@ -416,6 +416,20 @@ ##################### +from DPGAnalysis.Skims.TeVJetSkim_cff import * +teVJetPath = cms.Path( teVJetSequence ) + +SKIMStreamTeVJet = cms.FilteredStream( + responsible = 'L1 DPG/JME POG', + name = 'TeVJet', + paths = ( teVJetPath ), + content = skimContent.outputCommands, + selectEvents = cms.untracked.PSet(), + dataTier = cms.untracked.string('RAW-RECO') + ) + +##################### + from DPGAnalysis.Skims.HighMETSkim_cff import * condPath = cms.Path(CondMETSelSeq) #pfPath = cms.Path(pfMETSelSeq) diff --git a/DPGAnalysis/Skims/python/TeVJetSkim_cff.py b/DPGAnalysis/Skims/python/TeVJetSkim_cff.py new file mode 100644 index 0000000000000..8c67bf0b8e2d0 --- /dev/null +++ b/DPGAnalysis/Skims/python/TeVJetSkim_cff.py @@ -0,0 +1,31 @@ +import FWCore.ParameterSet.Config as cms + + +# run on MIONAOD +RUN_ON_MINIAOD = False + + +# cuts +JET_CUT=("pt > 1000 && abs(eta)<5.0") + +# single lepton selectors +if RUN_ON_MINIAOD: + teVJets = cms.EDFilter("CandViewRefSelector", + src = cms.InputTag("slimmedJets"), + cut = cms.string(JET_CUT) + ) +else: + teVJets = cms.EDFilter("CandViewRefSelector", + src = cms.InputTag("ak4PFJets"), + cut = cms.string(JET_CUT) + ) + +teVJetsCountFilter = cms.EDFilter("CandViewCountFilter", + src = cms.InputTag("teVJets"), + minNumber = cms.uint32(1) + ) + + + +#sequences +teVJetSequence = cms.Sequence(teVJets*teVJetsCountFilter )