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['run1_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 gammaJet analyzer
0033 process.load('Calibration.HcalCalibAlgos.gammaJetAnalysis_cfi')
0034 #  needed for nonCHS
0035 process.load('JetMETCorrections.Configuration.CorrectedJetProducers_cff')
0036 
0037 # run over files
0038 process.GammaJetAnalysis.rootHistFilename = cms.string('PhoJet_tree_CHS.root')
0039 process.GammaJetAnalysis.doPFJets = cms.bool(True)
0040 process.GammaJetAnalysis.doGenJets = cms.bool(False)
0041 process.TFileService = cms.Service("TFileService",
0042                                    fileName = cms.string('PhoJet_tree_CHS.root'))
0043 
0044 # trigger names should not end with '_'
0045 process.GammaJetAnalysis.photonTriggers = cms.vstring(
0046     'HLT_Photon20_CaloIdVL_IsoL','HLT_Photon30_CaloIdVL_IsoL',
0047     'HLT_Photon50_CaloIdVL_IsoL','HLT_Photon75_CaloIdVL_IsoL',
0048     'HLT_Photon90_CaloIdVL_IsoL','HLT_Photon135',
0049     'HLT_Photon150','HLT_Photon160')
0050 # triggers for CMSSW 730
0051 process.GammaJetAnalysis.photonTriggers += cms.vstring(
0052     'HLT_Photon22', 'HLT_Photon30', 'HLT_Photon36',
0053     'HLT_Photon50', 'HLT_Photon75',
0054     'HLT_Photon90', 'HLT_Photon120', 'HLT_Photon175',
0055     'HLT_Photon250_NoHE', 'HLT_Photon300_NoHE'
0056 )
0057 # to disable photonTriggers assign an empty vstring
0058 #process.GammaJetAnalysis.photonTriggers = cms.vstring()
0059 
0060 # a clone without CHS
0061 process.GammaJetAnalysis_noCHS= process.GammaJetAnalysis.clone()
0062 process.GammaJetAnalysis_noCHS.rootHistFilename = cms.string('PhoJet_tree_nonCHS.root')
0063 # for 7XY use ak4* instead of ak5
0064 process.GammaJetAnalysis_noCHS.pfJetCollName = cms.string('ak4PFJets')
0065 process.GammaJetAnalysis_noCHS.JetCorrections = cms.InputTag("ak4PFL2L3Corrector")
0066 
0067 process.source = cms.Source("PoolSource", 
0068                             fileNames = cms.untracked.vstring(
0069         'file:../../HcalAlCaRecoProducers/test/gjet.root'
0070 #    '/store/relval/CMSSW_7_3_0/RelValPhotonJets_Pt_10_13/GEN-SIM-RECO/MCRUN2_73_V7-v1/00000/522CE329-7B81-E411-B6C3-0025905A6110.root',
0071 #    '/store/relval/CMSSW_7_3_0/RelValPhotonJets_Pt_10_13/GEN-SIM-RECO/MCRUN2_73_V7-v1/00000/5279D224-7B81-E411-BCAA-002618943930.root'
0072 #    '/store/relval/CMSSW_7_3_0/RelValPhotonJets_Pt_10_13/GEN-SIM-RECO/MCRUN2_73_V7-v1/00000/522CE329-7B81-E411-B6C3-0025905A6110.root'
0073 #    '/store/relval/CMSSW_7_4_0_pre6/RelValPhotonJets_Pt_10_13/GEN-SIM-RECO/MCRUN2_74_V1-v1/00000/6EC8FCC8-E2A8-E411-9506-002590596468.root'
0074     )
0075 )
0076 
0077 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0078 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(False) )
0079 
0080 # name of the process that used the GammaJetProd producer
0081 process.GammaJetAnalysis.prodProcess = cms.untracked.string('MYGAMMAJET')
0082 # specify 'workOnAOD=2' to apply tokens from GammaJetProd producer
0083 process.GammaJetAnalysis.workOnAOD = cms.int32(2)
0084 process.GammaJetAnalysis.doGenJets = cms.bool(False)
0085 process.GammaJetAnalysis.debug     = cms.untracked.int32(0)
0086 
0087 process.p = cms.Path(
0088     process.GammaJetAnalysis, process.ak4PFL2L3CorrectorTask, process.ak4PFCHSL2L3CorrectorTask
0089 )