Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-31 23:50:52

0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process('ANALYSIS')
0003 
0004 process.load('Configuration.StandardSequences.Services_cff')
0005 # Specify IdealMagneticField ESSource (needed for CMSSW 730)
0006 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0007 process.load("Configuration.StandardSequences.MagneticField_cff")
0008 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0009 from Configuration.AlCa.autoCond import autoCond
0010 process.GlobalTag.globaltag=autoCond['run1_data']
0011 
0012 process.load('FWCore.MessageService.MessageLogger_cfi')
0013 process.MessageLogger.GammaJetAnalysis=dict()
0014 process.MessageLogger.cerr.FwkReport.reportEvery=cms.untracked.int32(1000)
0015 
0016 
0017 #load the analyzer
0018 process.load('Calibration.HcalCalibAlgos.gammaJetAnalysis_cfi')
0019 # load energy corrector
0020 process.load('JetMETCorrections.Configuration.JetCorrectionProducers_cff')
0021 
0022 # run over files
0023 process.GammaJetAnalysis.rootHistFilename = cms.string('PhoJet_tree_CHS_data2012.root')
0024 process.GammaJetAnalysis.doPFJets = cms.bool(True)
0025 process.GammaJetAnalysis.doGenJets = cms.bool(False)
0026 process.TFileService = cms.Service("TFileService",
0027                                    fileName = cms.string('PhoJet_tree_CHS_data2012.root'))
0028 
0029 # trigger names should not end with '_'
0030 process.GammaJetAnalysis.photonTriggers = cms.vstring(
0031     'HLT_Photon20_CaloIdVL_IsoL','HLT_Photon30_CaloIdVL_IsoL',
0032     'HLT_Photon50_CaloIdVL_IsoL','HLT_Photon75_CaloIdVL_IsoL',
0033     'HLT_Photon90_CaloIdVL_IsoL','HLT_Photon135',
0034     'HLT_Photon150','HLT_Photon160')
0035 # triggers for CMSSW 730
0036 process.GammaJetAnalysis.photonTriggers += cms.vstring(
0037     'HLT_Photon22', 'HLT_Photon30', 'HLT_Photon36',
0038     'HLT_Photon50', 'HLT_Photon75',
0039     'HLT_Photon90', 'HLT_Photon120', 'HLT_Photon175',
0040     'HLT_Photon250_NoHE', 'HLT_Photon300_NoHE'
0041 )
0042 # to disable photonTriggers assign an empty vstring
0043 #process.GammaJetAnalysis.photonTriggers = cms.vstring()
0044 
0045 process.source = cms.Source("PoolSource", 
0046                             fileNames = cms.untracked.vstring(
0047 #        'file:../../HcalAlCaRecoProducers/test/gjet_data2012.root'
0048         'file:/tmp/andriusj/gjet_Run2012A.root'
0049     )
0050 )
0051 
0052 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0053 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(False) )
0054 
0055 # adapt input collections for Run2012
0056 process.GammaJetAnalysis.photonCollName= cms.string("photons")
0057 process.GammaJetAnalysis.electronCollName= cms.string("gsfElectrons")
0058 process.GammaJetAnalysis.photonIdLooseName= cms.InputTag("PhotonIDProd","PhotonCutBasedIDLoose")
0059 process.GammaJetAnalysis.photonIdTightName= cms.InputTag("PhotonIDProd","PhotonCutBasedIDTight")
0060 
0061 # name of the process that used the GammaJetProd producer
0062 process.GammaJetAnalysis.prodProcess = cms.untracked.string('MYGAMMAJET')
0063 # specify 'workOnAOD=2' to apply tokens from GammaJetProd producer
0064 process.GammaJetAnalysis.workOnAOD = cms.int32(2)
0065 process.GammaJetAnalysis.doGenJets = cms.bool(False)
0066 process.GammaJetAnalysis.debug     = cms.untracked.int32(0)
0067 
0068 process.p = cms.Path(
0069     process.GammaJetAnalysis
0070 )