Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:57:57

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("testJET")
0004 process.load("FWCore.MessageService.MessageLogger_cfi")
0005 
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(10)
0008 )
0009 process.source = cms.Source("PoolSource",
0010     fileNames = cms.untracked.vstring('/store/relval/2008/6/6/RelVal-RelValTTbar-1212531852-IDEAL_V1-2nd-02/0000/081018D5-EC33-DD11-A623-000423D6CA42.root')
0011 )
0012 
0013 process.caloJetSele = cms.EDFilter("CaloJetRefSelector",
0014     src = cms.InputTag("iterativeCone5CaloJets"),
0015     cut = cms.string('pt > 20.0')
0016 )
0017 
0018 process.genJetSele = cms.EDFilter("GenJetRefSelector",
0019     src = cms.InputTag("iterativeCone5GenJets"),
0020     cut = cms.string('pt > 20.0')
0021 )
0022 
0023 process.jetMatchOne = cms.EDFilter("CandOneToOneDeltaRMatcher",
0024     src = cms.InputTag("genJetSele"),
0025     algoMethod = cms.string('SwitchMode'),
0026     matched = cms.InputTag("caloJetSele")
0027 )
0028 
0029 process.printJet = cms.EDFilter("matchOneToOne",
0030     src = cms.InputTag("genJetSele"),
0031     matchMapOne1 = cms.InputTag("jetMatchOne","src2mtc"),
0032     HistOutFile = cms.untracked.string('myPlots1.root'),
0033     matchMapOne2 = cms.InputTag("jetMatchOne","mtc2src"),
0034     matched = cms.InputTag("caloJetSele")
0035 )
0036 
0037 process.printEventNumber = cms.OutputModule("AsciiOutputModule")
0038 
0039 process.p = cms.Path(process.caloJetSele*process.genJetSele*process.jetMatchOne*process.printJet)
0040 process.outpath = cms.EndPath(process.printEventNumber)
0041 
0042