Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:01

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("IsoMuon")
0004 # Messages
0005 #process.load("RecoMuon.Configuration.MessageLogger_cfi")
0006 process.load("FWCore.MessageService.MessageLogger_cfi")
0007 
0008 # Muon Isolation
0009 
0010 process.load("RecoMuon.MuonIsolation.muonPFIsolation_cff")
0011 
0012 
0013 
0014 process.source = cms.Source("PoolSource",
0015                             fileNames = cms.untracked.vstring(
0016     'file:/tmp/bachtis/test.root'
0017   
0018                                 )
0019                             )
0020 process.maxEvents = cms.untracked.PSet(
0021     input = cms.untracked.int32(10)
0022 )
0023 
0024 
0025 process.pfEmbeddedMuons = cms.EDProducer("MuPFIsoEmbedder",
0026                                          src = cms.InputTag("muons"),
0027                                          isolationR03 = cms.PSet(
0028                                              chargedParticle = cms.InputTag("muPFIsoValueChargedAll03"),
0029                                              chargedHadron = cms.InputTag("muPFIsoValueCharged03"),
0030                                              neutralHadron = cms.InputTag("muPFIsoValueNeutral03"),
0031                                              photon = cms.InputTag("muPFIsoValueGamma03"),
0032                                              neutralHadronHighThreshold = cms.InputTag("muPFIsoValueNeutralHighThreshold03"),
0033                                              photonHighThreshold = cms.InputTag("muPFIsoValueGammaHighThreshold03"),
0034                                              pu = cms.InputTag("muPFIsoValuePU03")
0035                                          ),
0036                                          isolationR04 = cms.PSet(
0037                                              chargedParticle = cms.InputTag("muPFIsoValueChargedAll04"),
0038                                              chargedHadron = cms.InputTag("muPFIsoValueCharged04"),
0039                                              neutralHadron = cms.InputTag("muPFIsoValueNeutral04"),
0040                                              photon = cms.InputTag("muPFIsoValueGamma04"),
0041                                              neutralHadronHighThreshold = cms.InputTag("muPFIsoValueNeutralHighThreshold04"),
0042                                              photonHighThreshold = cms.InputTag("muPFIsoValueGammaHighThreshold04"),
0043                                              pu = cms.InputTag("muPFIsoValuePU04")
0044                                          )
0045 )                                         
0046                                          
0047 
0048 
0049 
0050 process.out = cms.OutputModule("PoolOutputModule",
0051     fileName = cms.untracked.string('IsoMuons.root')
0052 )
0053 
0054 process.p = cms.Path(
0055     process.muonPrePFIsolationSequence+
0056     process.muonPFIsolationSequence+
0057     process.pfEmbeddedMuons    
0058     )
0059 
0060 process.this_is_the_end = cms.EndPath(process.out)
0061 
0062 
0063 
0064