Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:59

0001 # PYTHON configuration file for class: JetCorExample
0002 # Description:  Example of simple EDAnalyzer for correcting jets on the fly.
0003 # Author: K. Kousouris
0004 # Date:  02 - September - 2009
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("Ana")
0008 process.load("FWCore.MessageService.MessageLogger_cfi")
0009 #############   Set the number of events #############
0010 process.maxEvents = cms.untracked.PSet(
0011     input = cms.untracked.int32(100)
0012 )
0013 #############   Define the source file ###############
0014 process.source = cms.Source("PoolSource",
0015     fileNames = cms.untracked.vstring('/store/relval/CMSSW_3_1_2/RelValQCD_FlatPt_15_3000/GEN-SIM-RECO/MC_31X_V3-v1/0007/9E83A122-E978-DE11-9D04-001D09F23C73.root')
0016 )
0017 #############   Include the jet corrections ##########
0018 process.load("JetMETCorrections.Configuration.L2L3Corrections_Summer09_cff")
0019 # set the record's IOV. Must be defined once. Choose ANY correction service. #
0020 process.prefer("L2L3JetCorrectorSC5Calo") 
0021 #############   Correct Calo Jets on the fly #########
0022 process.calo = cms.EDAnalyzer("CaloJetCorExample",
0023     JetAlgorithm         = cms.string('sisCone5CaloJets'),
0024     HistoFileName        = cms.string('CaloJetCorOnTheFlyExample_SC5Calo.root'),
0025     JetCorrectionService = cms.string('L2L3JetCorrectorSC5Calo')
0026 )
0027 #############   Correct PF Jets on the fly #########
0028 process.calo = cms.EDAnalyzer("PFJetCorExample",
0029     JetAlgorithm         = cms.string('sisCone5PFJets'),
0030     HistoFileName        = cms.string('PFJetCorOnTheFlyExample_SC5PF.root'),
0031     JetCorrectionService = cms.string('L2L3JetCorrectorSC5PF')
0032 )
0033 #############   Path       ###########################
0034 process.p = cms.Path(process.calo)
0035 #############   Format MessageLogger #################
0036 process.MessageLogger.cerr.FwkReport.reportEvery = 10
0037