Skip to content

Commit

Permalink
Merge pull request #24927 from mandrenguyen/centralSkims_PbPb2018
Browse files Browse the repository at this point in the history
Central skims for 2018 PbPb run
  • Loading branch information
cmsbuild authored Oct 30, 2018
2 parents 95097b6 + 23f7803 commit 01c00c2
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 39 deletions.
21 changes: 0 additions & 21 deletions Configuration/Skimming/python/PA_MinBiasSkim_cff.py

This file was deleted.

36 changes: 36 additions & 0 deletions Configuration/Skimming/python/PbPb_EMuSkim_cff.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import FWCore.ParameterSet.Config as cms

# HLT dimuon trigger
import HLTrigger.HLTfilters.hltHighLevel_cfi
hltEMuHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
hltEMuHI.HLTPaths = ["HLT_HIL1Mu5Eta2p5_Ele20Gsf_v*"]
hltEMuHI.throw = False
hltEMuHI.andOr = True

# selection of valid vertex
primaryVertexFilterForEMu = cms.EDFilter("VertexSelector",
src = cms.InputTag("offlinePrimaryVertices"),
cut = cms.string("!isFake && abs(z) <= 25 && position.Rho <= 2"),
filter = cms.bool(True), # otherwise it won't filter the events
)

# single lepton selector
electronSelectorForEMu = cms.EDFilter("GsfElectronRefSelector",
src = cms.InputTag("gedGsfElectrons"),
cut = cms.string("pt > 20 && abs(eta)<1.44")
)

muonSelectorForEMu = cms.EDFilter("MuonSelector",
src = cms.InputTag("muons"),
cut = cms.string("(isTrackerMuon && isGlobalMuon) && pt > 20."),
filter = cms.bool(True)
)


# EMu skim sequence
emuSkimSequence = cms.Sequence(
hltEMuHI *
primaryVertexFilterForEMu *
electronSelectorForEMu *
muonSelectorForEMu
)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# HLT dimuon trigger
import HLTrigger.HLTfilters.hltHighLevel_cfi
hltZEEHI = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
hltZEEHI.HLTPaths = ["HLT_PADoublePhoton15_Eta3p1_Mass50_1000_v*"]
hltZEEHI.HLTPaths = ["HLT_HIDoubleEle10Gsf_v*"]
hltZEEHI.throw = False
hltZEEHI.andOr = True

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

# HLT dimuon trigger
import HLTrigger.HLTfilters.hltHighLevel_cfi
hltZMMPA = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
hltZMMPA.HLTPaths = ["HLT_PAL3Mu15_v*"]
hltZMMPA.throw = False
hltZMMPA.andOr = True
hltZMMPbPb = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
hltZMMPbPb.HLTPaths = ["HLT_HIL1DoubleMu10_v*"]
hltZMMPbPb.throw = False
hltZMMPbPb.andOr = True

# selection of valid vertex
primaryVertexFilterForZMM = cms.EDFilter("VertexSelector",
Expand Down Expand Up @@ -39,7 +39,7 @@

# Z->mumu skim sequence
zMMSkimSequence = cms.Sequence(
hltZMMPA *
hltZMMPbPb *
primaryVertexFilterForZMM *
muonSelectorForZMM *
muonFilterForZMM *
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
#####################


from Configuration.Skimming.PA_MinBiasSkim_cff import *
minBiasSkimPath = cms.Path( minBiasSkimSequence )
SKIMStreamPAMinBias = cms.FilteredStream(
from Configuration.Skimming.PbPb_EMuSkim_cff import *
emuSkimPath = cms.Path( emuSkimSequence )
SKIMStreamPbPbEMu = cms.FilteredStream(
responsible = 'HI PAG',
name = 'PAMinBias',
paths = (minBiasSkimPath),
name = 'PbPbEMu',
paths = (emuSkimPath),
content = skimFEVTContent.outputCommands,
selectEvents = cms.untracked.PSet(),
dataTier = cms.untracked.string('RAW-RECO')
Expand All @@ -24,11 +24,11 @@
#####################


from Configuration.Skimming.PA_ZEESkim_cff import *
from Configuration.Skimming.PbPb_ZEESkim_cff import *
zEESkimPath = cms.Path( zEESkimSequence )
SKIMStreamPAZEE = cms.FilteredStream(
SKIMStreamPbPbZEE = cms.FilteredStream(
responsible = 'HI PAG',
name = 'PAZEE',
name = 'PbPbZEE',
paths = (zEESkimPath),
content = skimFEVTContent.outputCommands,
selectEvents = cms.untracked.PSet(),
Expand All @@ -38,11 +38,11 @@
#####################


from Configuration.Skimming.PA_ZMMSkim_cff import *
from Configuration.Skimming.PbPb_ZMMSkim_cff import *
zMMSkimPath = cms.Path( zMMSkimSequence )
SKIMStreamPAZMM = cms.FilteredStream(
SKIMStreamPbPbZMM = cms.FilteredStream(
responsible = 'HI PAG',
name = 'PAZMM',
name = 'PbPbZMM',
paths = (zMMSkimPath),
content = skimFEVTContent.outputCommands,
selectEvents = cms.untracked.PSet(),
Expand Down
2 changes: 1 addition & 1 deletion Configuration/StandardSequences/python/Skims_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ def getSkimDataTier(skimname):

### Central Skims ###
from Configuration.Skimming.Skims_PDWG_cff import *
from Configuration.Skimming.Skims_PA_cff import *
from Configuration.Skimming.Skims_PbPb_cff import *

0 comments on commit 01c00c2

Please sign in to comment.