Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:04

0001 # WARNING:
0002 # I tried running this configuration when I upgraded it as part of the CMSSW migration
0003 # to use reco::JetCorrector instead of the deprecated ::JetCorrector (November 2022).
0004 # I hit errors with the input files not existing. Python will parse the configuration
0005 # and it visually looks OK to me (but I am not a JetCorrector expert...).
0006 # Whoever tries this next should be aware the JetCorrectors were never successfully
0007 # tested in this configuration and there may be other problems that have been there for a
0008 # long time... I did not try to fix problems unrelated to JetCorrections.
0009 # At the very least this will need new input files.
0010 
0011 import FWCore.ParameterSet.Config as cms
0012 
0013 process = cms.Process('DIJETANALYSIS')
0014 
0015 process.TFileService = cms.Service("TFileService",
0016                                    fileName = cms.string("dijetanalyzer.root")
0017                                    )
0018 
0019 process.load('FWCore.MessageService.MessageLogger_cfi')
0020 
0021 process.load('Configuration.StandardSequences.Services_cff')
0022 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0023 process.load("Configuration.StandardSequences.MagneticField_cff")
0024 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0025 from Configuration.AlCa.autoCond import autoCond
0026 process.GlobalTag.globaltag=autoCond['run1_mc']
0027 
0028 #load the response corrections calculator
0029 process.load('Calibration.HcalCalibAlgos.diJetAnalyzer_cfi')
0030 process.load('JetMETCorrections.Configuration.CorrectedJetProducers_cff')
0031 
0032 # run over files
0033 
0034 process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring(
0035         '/store/relval/CMSSW_7_3_0/RelValQCD_Pt_80_120_13/GEN-SIM-RECO/MCRUN2_73_V9_71XGENSIM_FIXGT-v1/00000/8E758AAA-4DA2-E411-8068-003048FFCB96.root',
0036         '/store/relval/CMSSW_7_3_0/RelValQCD_Pt_80_120_13/GEN-SIM-RECO/MCRUN2_73_V9_71XGENSIM_FIXGT-v1/00000/CE0DAE28-56A2-E411-AEFF-003048FFD79C.root',
0037         '/store/relval/CMSSW_7_3_0/RelValQCD_Pt_80_120_13/GEN-SIM-RECO/MCRUN2_73_V9_71XGENSIM_FIXGT-v1/00000/D4D21D16-56A2-E411-A0C4-0026189438E2.root'
0038         ))
0039 
0040 #print readFiles
0041 
0042 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0043 process.MessageLogger.cerr.FwkReport.reportEvery=cms.untracked.int32(1000)
0044 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0045 
0046 # Load pfNoPileUP
0047 
0048 #process.load("CommonTools.ParticleFlow.pfNoPileUp_cff")
0049 #process.load("CommonTools.ParticleFlow.PF2PAT_cff")
0050 #from RecoJets.JetProducers.ak5PFJets_cfi import *
0051 #process.ak5PFJetsCHS = ak5PFJets.clone(
0052 #    src = cms.InputTag("pfNoPileUp")
0053 #    )
0054 #process.load('HcalClosureTest.Analyzers.calcrespcorr_CHSJECs_cff')
0055 
0056 # timing
0057 #process.Timing = cms.Service('Timing')
0058 
0059 #process.p = cms.Path(process.pfNoPileUpSequence+process.PF2PAT+process.ak5PFJetsCHS+process.calcrespcorrdijets)
0060 process.p = cms.Path(process.diJetAnalyzer, process.ak4PFCHSL1FastL2L3CorrectorTask)