Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:38

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("myprocess")
0004 process.TFileService=cms.Service("TFileService",fileName=cms.string('JECplots.root'))
0005 ##-------------------- Communicate with the DB -----------------------
0006 process.load('Configuration.StandardSequences.Services_cff')
0007 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0008 from Configuration.AlCa.GlobalTag import GlobalTag
0009 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc')
0010 
0011 ##-------------------- Import the JEC services -----------------------
0012 process.load('JetMETCorrections.Configuration.JetCorrectors_cff')
0013 ##process.ak4CaloL1FastjetCorrector.useCondDB = False
0014 #process.ak4PFL1FastjetCorrector.useCondDB = False
0015 ##-------------------- Define the source  ----------------------------
0016 process.maxEvents = cms.untracked.PSet(
0017         input = cms.untracked.int32(1000)
0018 )
0019 #############   Define the source file ###############
0020 process.source = cms.Source("PoolSource",
0021     fileNames = cms.untracked.vstring('/store/relval/CMSSW_7_2_0_pre7/RelValProdTTbar/AODSIM/PRE_STA72_V4-v1/00000/3E58BB46-BD4B-E411-B2EC-002618943856.root')
0022 )
0023 process.TFileService=cms.Service("TFileService",fileName=cms.string('plots.root'))
0024 ##-------------------- User analyzer  --------------------------------
0025 #process.testCalo  = cms.EDAnalyzer('CaloJetCorrectorOnTheFly',
0026     #JetCorrectionService     = cms.string('ak5CaloL1L2L3Residual'),
0027     #JetCollectionName        = cms.string('ak5CaloJets'),
0028     #MinRawJetPt              = cms.double(10),
0029     #Debug                    = cms.bool(True)
0030 #)
0031 process.testPF  = cms.EDAnalyzer('PFJetCorrectorOnTheFly',
0032     JetCorrector             = cms.InputTag('ak4PFL2L3ResidualCorrector'),
0033     JetCollectionName        = cms.InputTag('ak4PFJets'),
0034     MinRawJetPt              = cms.double(7),
0035     Debug                    = cms.bool(True)
0036 )
0037 #process.p = cms.Path(process.ak4CaloL2L3ResidualCorrectorChain * process.testCalo *
0038                       #process.ak4PFL2L3ResidualCorrectorChain * process.testPF)
0039 process.p = cms.Path(process.ak4PFL2L3ResidualCorrectorChain * process.testPF)
0040