File indexing completed on 2024-04-06 12:24:02
0001 import FWCore.ParameterSet.Config as cms
0002
0003
0004 process = cms.Process("Top")
0005
0006
0007 process.source = cms.Source("PoolSource",
0008 fileNames = cms.untracked.vstring(
0009 'file:patTuple.root'
0010 )
0011 )
0012
0013 process.maxEvents = cms.untracked.PSet(
0014 input = cms.untracked.int32(1000)
0015 )
0016
0017 from PhysicsTools.PatExamples.samplesCERN_cff import *
0018
0019
0020
0021
0022
0023
0024
0025 process.TFileService = cms.Service("TFileService",
0026 fileName = cms.string('analyzePatTopSelection.root')
0027
0028
0029
0030
0031 )
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046 process.load("PhysicsTools.PatExamples.topObjectSelection_cff")
0047 process.topObjectProduction = cms.Path(
0048 process.topObjectSelection
0049 )
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059 from HLTrigger.HLTfilters.hltHighLevel_cfi import *
0060 process.step1 = hltHighLevel.clone(TriggerResultsTag = "TriggerResults::HLT", HLTPaths = ["HLT_Mu9"])
0061
0062 process.step2 = cms.EDFilter("VertexSelector", src = cms.InputTag("offlinePrimaryVertices"), cut = cms.string("!isFake && ndof > 4 && abs(z) < 15 && position.Rho < 2"), filter = cms.bool(True))
0063
0064 from PhysicsTools.PatAlgos.selectionLayer1.muonCountFilter_cfi import *
0065 process.step3a = countPatMuons.clone(src = 'tightMuons', minNumber = 1, maxNumber = 1)
0066
0067 process.step3b = countPatMuons.clone(src = 'looseMuons', minNumber = 1, maxNumber = 1)
0068
0069 process.step4 = countPatMuons.clone(src = 'vetoMuons' , maxNumber = 1)
0070
0071 from PhysicsTools.PatAlgos.selectionLayer1.electronCountFilter_cfi import *
0072 process.step5 = countPatMuons.clone(src = 'vetoElecs' , maxNumber = 0)
0073
0074 from PhysicsTools.PatAlgos.selectionLayer1.jetCountFilter_cfi import *
0075 process.step6a = countPatJets.clone(src = 'goodJets' , minNumber = 1)
0076 process.step6b = countPatJets.clone(src = 'goodJets' , minNumber = 2)
0077 process.step6c = countPatJets.clone(src = 'goodJets' , minNumber = 3)
0078 process.step7 = countPatJets.clone(src = 'goodJets' , minNumber = 4)
0079
0080
0081
0082
0083
0084
0085
0086
0087 from PhysicsTools.PatExamples.PatTopSelectionAnalyzer_cfi import *
0088 process.monStart = analyzePatTopSelection.clone(jets='goodJets')
0089 process.monStep1 = analyzePatTopSelection.clone(jets='goodJets')
0090 process.monStep2 = analyzePatTopSelection.clone(jets='goodJets')
0091 process.monStep3a = analyzePatTopSelection.clone(muons='tightMuons', jets='goodJets')
0092 process.monStep4 = analyzePatTopSelection.clone(muons='vetoMuons' , jets='goodJets')
0093 process.monStep5 = analyzePatTopSelection.clone(muons='vetoMuons', elecs='vetoElecs', jets='goodJets')
0094 process.monStep6a = analyzePatTopSelection.clone(muons='vetoMuons', elecs='vetoElecs', jets='goodJets')
0095 process.monStep6b = analyzePatTopSelection.clone(muons='vetoMuons', elecs='vetoElecs', jets='goodJets')
0096 process.monStep6c = analyzePatTopSelection.clone(muons='vetoMuons', elecs='vetoElecs', jets='goodJets')
0097 process.monStep7 = analyzePatTopSelection.clone(muons='vetoMuons', elecs='vetoElecs', jets='goodJets')
0098
0099
0100
0101
0102
0103
0104
0105
0106
0107
0108
0109
0110 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0111
0112
0113 process.looseEventSelection = cms.Path(
0114
0115 process.step2 *
0116 process.step3b *
0117 process.step4 *
0118 process.step5 *
0119 process.step6a *
0120 process.step6b *
0121 process.step6c
0122 )
0123
0124
0125 process.tightEventSelection = cms.Path(
0126 process.monStart *
0127
0128
0129 process.step2 *
0130 process.monStep2 *
0131 process.step3a *
0132 process.monStep3a *
0133 process.step4 *
0134 process.monStep4 *
0135 process.step5 *
0136 process.monStep5 *
0137 process.step6a *
0138 process.monStep6a *
0139 process.step6b *
0140 process.monStep6b *
0141 process.step6c *
0142 process.monStep6c *
0143 process.step7 *
0144 process.monStep7
0145 )