Skip to content

Commit

Permalink
TeV jet RAW-RECO skim
Browse files Browse the repository at this point in the history
  • Loading branch information
lathomas committed Jan 12, 2024
1 parent 4c47ab0 commit 84150cf
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
14 changes: 14 additions & 0 deletions DPGAnalysis/Skims/python/Skims_DPG_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
31 changes: 31 additions & 0 deletions DPGAnalysis/Skims/python/TeVJetSkim_cff.py
Original file line number Diff line number Diff line change
@@ -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 )

0 comments on commit 84150cf

Please sign in to comment.