Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # This was migrated to use reco::JetCorrector in Nov 2022.
0002 # This was not fully tested because this configuration
0003 # before the migration already failed with multiple errors
0004 # unrelated to JetCorrectors. At the least:
0005 #
0006 # Something unknown but unrelated to JetCorrectors in these
0007 # three lines in gammaJetAnalysis_cfi.py causes this file to
0008 # be unparseable by Python:
0009 #
0010 #   from RecoJets.Configuration.RecoJets_cff import *
0011 #   from RecoJets.Configuration.RecoPFJets_cff import *
0012 #   from CommonTools.ParticleFlow.pfNoPileUp_cff import *
0013 #
0014 # The input file does not exist in a publicly available
0015 # space. There may be other problems.
0016 
0017 import FWCore.ParameterSet.Config as cms
0018 process = cms.Process('ANALYSIS')
0019 
0020 process.load('Configuration.StandardSequences.Services_cff')
0021 # Specify IdealMagneticField ESSource (needed for CMSSW 730)
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['run2_mc']
0027 
0028 process.load('FWCore.MessageService.MessageLogger_cfi')
0029 process.MessageLogger.GammaJetAnalysis = dict()
0030 #process.MessageLogger.cerr.FwkReport.reportEvery=cms.untracked.int32(1000)
0031 
0032 #load the response corrections calculator
0033 process.load('Calibration.HcalCalibAlgos.gammaJetAnalysis_cfi')
0034 #  needed for nonCHS
0035 #process.load('JetMETCorrections.Configuration.JetCorrectors_cff')
0036 process.load('JetMETCorrections.Configuration.CorrectedJetProducers_cff')
0037 
0038 # run over files
0039 process.GammaJetAnalysis.rootHistFilename = cms.string('PhoJet_tree_CHS_noGJetProd.root')
0040 process.GammaJetAnalysis.doPFJets = cms.bool(True)
0041 process.GammaJetAnalysis.doGenJets = cms.bool(True)
0042 process.TFileService = cms.Service("TFileService",
0043                                    fileName = cms.string('PhoJet_tree_CHS_noGJetProd.root'))
0044 
0045 # trigger names should not end with '_'
0046 process.GammaJetAnalysis.photonTriggers = cms.vstring(
0047     'HLT_Photon20_CaloIdVL_IsoL','HLT_Photon30_CaloIdVL_IsoL',
0048     'HLT_Photon50_CaloIdVL_IsoL','HLT_Photon75_CaloIdVL_IsoL',
0049     'HLT_Photon90_CaloIdVL_IsoL','HLT_Photon135',
0050     'HLT_Photon150','HLT_Photon160')
0051 # triggers for CMSSW 730
0052 process.GammaJetAnalysis.photonTriggers += cms.vstring(
0053     'HLT_Photon22', 'HLT_Photon30', 'HLT_Photon36',
0054     'HLT_Photon50', 'HLT_Photon75',
0055     'HLT_Photon90', 'HLT_Photon120', 'HLT_Photon175',
0056     'HLT_Photon250_NoHE', 'HLT_Photon300_NoHE'
0057 )
0058 # to disable photonTriggers assign an empty vstring
0059 #process.GammaJetAnalysis.photonTriggers = cms.vstring()
0060 
0061 # a clone without CHS
0062 process.GammaJetAnalysis_noCHS= process.GammaJetAnalysis.clone()
0063 process.GammaJetAnalysis_noCHS.rootHistFilename = cms.string('PhoJet_tree_nonCHS_noGJetProd.root')
0064 # for 7XY use ak4* instead of ak5
0065 process.GammaJetAnalysis_noCHS.pfJetCollName = cms.string('ak4PFJets')
0066 process.GammaJetAnalysis_noCHS.JetCorrections = cms.InputTag("ak4PFL2L3Corrector")
0067 
0068 process.source = cms.Source("PoolSource", 
0069                             fileNames = cms.untracked.vstring(
0070 #   'file:/tmp/andriusj/6EC8FCC8-E2A8-E411-9506-002590596468.root'
0071         '/store/relval/CMSSW_7_4_0_pre6/RelValPhotonJets_Pt_10_13/GEN-SIM-RECOMCRUN2_74_V1-v1/00000/6EC8FCC8-E2A8-E411-9506-002590596468.root'
0072     )
0073 )
0074 
0075 #To have the same number of histograms, do not run over GenJets
0076 #process.GammaJetAnalysis.doGenJets = cms.bool(False)
0077 
0078 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0079 process.MessageLogger.cerr.FwkReport.reportEvery=cms.untracked.int32(1000)
0080 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(False) )
0081 
0082 process.p = cms.Path(
0083     process.GammaJetAnalysis, process.ak4PFL2L3CorrectorTask, process.ak4PFCHSL2L3CorrectorTask
0084 )