Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:08

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ## Declare process
0004 process = cms.Process("MuonAna")
0005 
0006 ## Declare input
0007 from PhysicsTools.PatExamples.samplesCERN_cff import *
0008 
0009 process.source = cms.Source("PoolSource",
0010   fileNames = zjetsTracks
0011 )
0012 
0013 process.maxEvents = cms.untracked.PSet(
0014     input = cms.untracked.int32( -1 )
0015 )
0016 
0017 ## Message logger configuration
0018 process.MessageLogger = cms.Service("MessageLogger")
0019 
0020 ## Selection of good muons
0021 from PhysicsTools.PatAlgos.selectionLayer1.muonSelector_cfi import *
0022 process.goodMuons = selectedPatMuons.clone(
0023     src="cleanPatMuons",
0024     cut='pt>20. & abs(eta)<2.1 & (trackIso+caloIso)/pt<0.1',
0025 )
0026 
0027 ## Monitor muons
0028 process.load("PhysicsTools.PatExamples.PatZToMuMuAnalyzer_cfi")
0029 process.analyzeZToMuMu.muons = 'goodMuons'
0030 
0031 ## Define output file
0032 process.TFileService = cms.Service("TFileService",
0033   fileName = cms.string('analyzePatZToMuMu.root')
0034 )
0035 
0036 process.p = cms.Path(
0037     process.goodMuons *
0038     process.analyzeZToMuMu
0039 )
0040