Skip to content

Commit

Permalink
Merge pull request #25075 from fabiocos/fc-restorePAskims104X
Browse files Browse the repository at this point in the history
Restore PA skims, update HI 2018 data test workflows
  • Loading branch information
cmsbuild committed Nov 1, 2018
2 parents 6dd1cfe + 011d0bd commit a5eee45
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Configuration/PyReleaseValidation/python/relval_steps.py
Expand Up @@ -1674,7 +1674,7 @@ def lhegensim2017(fragment,howMuch):

steps['RECOHID18']=merge([{ '--scenario':'pp',
'--conditions':'103X_dataRun2_Prompt_v2',
'-s':'RAW2DIGI,L1Reco,RECO,EI,DQM:@common+@standardDQM+@ExtraHLT',
'-s':'RAW2DIGI,L1Reco,RECO,ALCA:SiStripCalZeroBias+SiPixelCalZeroBias,SKIM:PbPbEMu+PbPbZEE+PbPbZMM,EI,DQM:@common+@standardDQM+@ExtraHLT',
'--datatier':'AOD,DQMIO',
'--eventcontent':'AOD,DQM',
'--era':'Run2_2018_pp_on_AA'
Expand Down
21 changes: 21 additions & 0 deletions Configuration/Skimming/python/PA_MinBiasSkim_cff.py
@@ -0,0 +1,21 @@
import FWCore.ParameterSet.Config as cms

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

# selection of valid vertex
primaryVertexFilterForMinBiasPA = 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
)

# MinBias skim sequence
minBiasPASkimSequence = cms.Sequence(
hltMinBiasPA *
primaryVertexFilterForMinBiasPA
)
44 changes: 44 additions & 0 deletions Configuration/Skimming/python/PA_ZEESkim_cff.py
@@ -0,0 +1,44 @@
import FWCore.ParameterSet.Config as cms


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

# selection of valid vertex
primaryVertexFilterForZEEPA = 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
goodElectronsForZEEPA = cms.EDFilter("GsfElectronRefSelector",
src = cms.InputTag("gedGsfElectrons"),
cut = cms.string("pt > 25 && abs(eta)<1.44")
)

## dilepton selectors
diElectronsForZEEPA = cms.EDProducer("CandViewShallowCloneCombiner",
decay = cms.string("goodElectronsForZEEPA goodElectronsForZEEPA"),
checkCharge = cms.bool(False),
cut = cms.string("mass > 80 && mass < 110")
)

# dilepton counter
diElectronsFilterForZEEPA = cms.EDFilter("CandViewCountFilter",
src = cms.InputTag("diElectronsForZEEPA"),
minNumber = cms.uint32(1)
)

# Z->ee skim sequence
zEEPASkimSequence = cms.Sequence(
hltZEEPA *
primaryVertexFilterForZEEPA *
goodElectronsForZEEPA *
diElectronsForZEEPA *
diElectronsFilterForZEEPA
)
48 changes: 48 additions & 0 deletions Configuration/Skimming/python/PA_ZMMSkim_cff.py
@@ -0,0 +1,48 @@
import FWCore.ParameterSet.Config as cms

# 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

# selection of valid vertex
primaryVertexFilterForZMMPA = 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
)

# selection of dimuons with mass in Z range
muonSelectorForZMMPA = cms.EDFilter("MuonSelector",
src = cms.InputTag("muons"),
cut = cms.string("(isTrackerMuon && isGlobalMuon) && pt > 25."),
filter = cms.bool(True)
)

muonFilterForZMMPA = cms.EDFilter("MuonCountFilter",
src = cms.InputTag("muonSelectorForZMMPA"),
minNumber = cms.uint32(2)
)

dimuonMassCutForZMMPA = cms.EDProducer("CandViewShallowCloneCombiner",
checkCharge = cms.bool(True),
cut = cms.string(' 80 < mass < 110'),
decay = cms.string("muonSelectorForZMMPA@+ muonSelectorForZMMPA@-")
)

dimuonMassCutFilterForZMMPA = cms.EDFilter("CandViewCountFilter",
src = cms.InputTag("dimuonMassCutForZMMPA"),
minNumber = cms.uint32(1)
)

# Z->mumu skim sequence
zMMPASkimSequence = cms.Sequence(
hltZMMPA *
primaryVertexFilterForZMMPA *
muonSelectorForZMMPA *
muonFilterForZMMPA *
dimuonMassCutForZMMPA *
dimuonMassCutFilterForZMMPA
)
52 changes: 52 additions & 0 deletions Configuration/Skimming/python/Skims_PA_cff.py
@@ -0,0 +1,52 @@
import FWCore.ParameterSet.Config as cms

from Configuration.EventContent.EventContent_cff import FEVTEventContent

skimFEVTContent = FEVTEventContent.clone()
skimFEVTContent.outputCommands.append("drop *_MEtoEDMConverter_*_*")
skimFEVTContent.outputCommands.append("drop *_*_*_SKIM")


#####################


from Configuration.Skimming.PA_MinBiasSkim_cff import *
minBiasPASkimPath = cms.Path( minBiasPASkimSequence )
SKIMStreamPAMinBias = cms.FilteredStream(
responsible = 'HI PAG',
name = 'PAMinBias',
paths = (minBiasPASkimPath),
content = skimFEVTContent.outputCommands,
selectEvents = cms.untracked.PSet(),
dataTier = cms.untracked.string('RAW-RECO')
)

#####################


from Configuration.Skimming.PA_ZEESkim_cff import *
zEEPASkimPath = cms.Path( zEEPASkimSequence )
SKIMStreamPAZEE = cms.FilteredStream(
responsible = 'HI PAG',
name = 'PAZEE',
paths = (zEEPASkimPath),
content = skimFEVTContent.outputCommands,
selectEvents = cms.untracked.PSet(),
dataTier = cms.untracked.string('RAW-RECO')
)

#####################


from Configuration.Skimming.PA_ZMMSkim_cff import *
zMMPASkimPath = cms.Path( zMMPASkimSequence )
SKIMStreamPAZMM = cms.FilteredStream(
responsible = 'HI PAG',
name = 'PAZMM',
paths = (zMMPASkimPath),
content = skimFEVTContent.outputCommands,
selectEvents = cms.untracked.PSet(),
dataTier = cms.untracked.string('RAW-RECO')
)

#####################
1 change: 1 addition & 0 deletions Configuration/StandardSequences/python/Skims_cff.py
Expand Up @@ -48,4 +48,5 @@ 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 a5eee45

Please sign in to comment.