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(3)
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.caloJetCollectionClone = cms.EDProducer("CaloJetShallowCloneProducer",
0014     src = cms.InputTag("iterativeCone5CaloJets")
0015 )
0016 
0017 process.genJetCollectionClone = cms.EDProducer("GenJetShallowCloneProducer",
0018     src = cms.InputTag("iterativeCone5GenJets")
0019 )
0020 
0021 process.caloJetSele = cms.EDFilter("PtMinCandSelector",
0022     src = cms.InputTag("caloJetCollectionClone"),
0023     ptMin = cms.double(20.0)
0024 )
0025 
0026 process.genJetSele = cms.EDFilter("PtMinCandSelector",
0027     src = cms.InputTag("genJetCollectionClone"),
0028     ptMin = cms.double(20.0)
0029 )
0030 
0031 process.jetMatchOne = cms.EDFilter("CandOneToOneDeltaRMatcher",
0032     src = cms.InputTag("iterativeCone5GenJets"),
0033     algoMethod = cms.string('SwitchMode'),
0034     matched = cms.InputTag("iterativeCone5CaloJets")
0035 )
0036 
0037 process.jetMatchMany = cms.EDFilter("CandOneToManyDeltaRMatcher",
0038     printDebug = cms.untracked.bool(True),
0039     src = cms.InputTag("genJetSele"),
0040     matched = cms.InputTag("caloJetSele")
0041 )
0042 
0043 process.printJet = cms.EDFilter("jetMatch",
0044     src = cms.InputTag("genJetSele"),
0045     matchMapMany = cms.InputTag("jetMatchMany"),
0046     HistOutFile = cms.untracked.string('myPlots.root'),
0047     matchMapOne = cms.InputTag("jetMatchOne","src2mtc"),
0048     matched = cms.InputTag("caloJetSele")
0049 )
0050 
0051 process.printEventNumber = cms.OutputModule("AsciiOutputModule")
0052 
0053 process.p = cms.Path(process.caloJetCollectionClone*process.genJetCollectionClone*process.caloJetSele*process.genJetSele*process.jetMatchOne*process.jetMatchMany*process.printJet)
0054 process.outpath = cms.EndPath(process.printEventNumber)
0055 process.MessageLogger.cerr.default.limit = 10
0056 
0057