Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:48:06

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("MYGAMMAJET")
0004 
0005 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0006 process.load("Configuration.StandardSequences.MagneticField_cff")
0007 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0008 from Configuration.AlCa.autoCond import autoCond
0009 process.GlobalTag.globaltag=autoCond['run1_data']
0010 
0011 process.load('FWCore.MessageService.MessageLogger_cfi')
0012 process.MessageLogger.cerr.FwkReport.reportEvery=cms.untracked.int32(1000)
0013 
0014 process.options = cms.untracked.PSet(
0015     wantSummary = cms.untracked.bool(True)
0016 )
0017 
0018 process.maxEvents = cms.untracked.PSet(
0019 #    input = cms.untracked.int32(20)
0020     input = cms.untracked.int32(-1)
0021 )
0022 process.source = cms.Source("PoolSource",
0023     fileNames = 
0024 cms.untracked.vstring(
0025 #   'file:/tmp/andriusj/6EC8FCC8-E2A8-E411-9506-002590596468.root'
0026 #        '/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'
0027     'file:/tmp/andriusj/Run2012A_Photon_22Jan2013-002618943913.root'
0028  )
0029 )
0030 
0031 process.load("Calibration.HcalAlCaRecoProducers.alcagammajet_cfi")
0032 process.load("Calibration.HcalAlCaRecoProducers.ALCARECOHcalCalGammaJet_Output_cff")
0033 
0034 process.GammaJetProd.PhoInput= cms.InputTag("photons")
0035 process.GammaJetProd.gsfeleInput= cms.InputTag("gsfElectrons")
0036 process.GammaJetProd.PhoLoose= cms.InputTag("PhotonIDProd","PhotonCutBasedIDLoose")
0037 process.GammaJetProd.PhoTight= cms.InputTag("PhotonIDProd","PhotonCutBasedIDTight")
0038 
0039 #process.GammaJetRecos = cms.OutputModule("PoolOutputModule",
0040 #    outputCommands = cms.untracked.vstring('drop *',
0041 ##                 'keep recoPhotonCores_*_*_*',
0042 #                 'keep recoSuperClusters_*_*_*',
0043 #                 #'keep recoTracks_*_*_*',
0044 #                 'keep recoTracks_generalTracks_*_*',
0045 #                 #'keep *_PhotonIDProd_*_*',
0046 #               'keep *_particleFlow_*_*',
0047 #              'keep recoPFBlocks_particleFlowBlock_*_*',
0048 #              'keep recoPFClusters_*_*_*',
0049 ##                         'keep *_particleFlowPtrs_*_*',
0050 #        'keep *_GammaJetProd_*_*'),
0051 #    fileName = cms.untracked.string('gjet.root')
0052 #)
0053 
0054 process.GammaJetRecos = cms.OutputModule("PoolOutputModule",
0055    outputCommands = process.OutALCARECOHcalCalGammaJet.outputCommands,
0056    fileName = cms.untracked.string('/tmp/andriusj/gjet_Run2012A.root')
0057 )
0058 
0059 ##process.GammaJetRecos.outputCommands.append('keep *_particleFlowPtrs_*_*')
0060 
0061 process.load('RecoJets.Configuration.RecoPFJets_cff')
0062 process.load('CommonTools.ParticleFlow.PF2PAT_cff')
0063 process.load("CommonTools.ParticleFlow.pfNoPileUp_cff")
0064 
0065 process.seq_ak4PFCHS= cms.Sequence( process.particleFlowPtrs *
0066                                     process.pfNoPileUpJMESequence *
0067                                     process.ak4PFJetsCHS )
0068 
0069 process.p = cms.Path( process.seq_ak4PFCHS * process.GammaJetProd )
0070 process.e = cms.EndPath(process.GammaJetRecos)