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 
0003 process = cms.Process("DIJETSANALYSIS")
0004 
0005 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0006 process.load("Configuration.StandardSequences.MagneticField_cff")
0007 process.load("Configuration.StandardSequences.Reconstruction_cff")
0008 
0009 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0010 from Configuration.AlCa.autoCond import autoCond
0011 process.GlobalTag.globaltag=autoCond['run2_mc']
0012 
0013 process.load("RecoJets.Configuration.CaloTowersRec_cff")                                                           
0014 process.towerMaker.ecalInputs = cms.VInputTag(cms.InputTag("DiJProd","DiJetsEcalRecHitCollection"))
0015 process.towerMaker.hbheInput = cms.InputTag("HitsReCalibration","DiJetsHBHEReRecHitCollection")
0016 process.towerMaker.hoInput = cms.InputTag("HitsReCalibration","DiJetsHOReRecHitCollection")
0017 process.towerMaker.hfInput = cms.InputTag("HitsReCalibration","DiJetsHFReRecHitCollection")
0018 process.towerMakerWithHO.ecalInputs = cms.VInputTag(cms.InputTag("DiJProd", "DiJetsEcalRecHitCollection"))
0019 process.towerMakerWithHO.hbheInput = cms.InputTag("HitsReCalibration","DiJetsHBHEReRecHitCollection")
0020 process.towerMakerWithHO.hoInput = cms.InputTag("HitsReCalibration","DiJetsHOReRecHitCollection")
0021 process.towerMakerWithHO.hfInput = cms.InputTag("HitsReCalibration","DiJetsHFReRecHitCollection")
0022 
0023 process.load("RecoJets.JetProducers.ic5CaloJets_cfi")
0024 
0025 process.iterativeCone5CaloJets.doPVCorrection = cms.bool(False)
0026 
0027 process.maxEvents = cms.untracked.PSet(
0028     input = cms.untracked.int32(-1)
0029 )
0030 process.source = cms.Source("PoolSource",
0031     fileNames = 
0032 cms.untracked.vstring(
0033 '/store/relval/CMSSW_3_3_0_pre5/RelValQCD_Pt_80_120/ALCARECO/STARTUP31X_V7_StreamHcalCalDijets-v1/0004/B421101A-6AAB-DE11-A988-001D09F2A465.root'
0034 )
0035 )
0036 
0037 process.es_ascii2 = cms.ESSource("HcalTextCalibrations",
0038                                  input = cms.VPSet(cms.PSet(
0039             object = cms.string('RespCorrs'),
0040             file = cms.FileInPath('Calibration/HcalCalibAlgos/data/calibConst_IsoTrk_testCone_26.3cm.txt')
0041     )),
0042     appendToDataLabel = cms.string('recalibrate')
0043 )
0044 
0045 process.prefer("es_ascii2")
0046 process.HitsReCalibration = cms.EDProducer("HitReCalibrator",
0047     hbheInput = cms.InputTag("DiJProd","DiJetsHBHERecHitCollection"),
0048     hfInput = cms.InputTag("DiJProd","DiJetsHFRecHitCollection"),
0049     hoInput = cms.InputTag("DiJProd","DiJetsHORecHitCollection")
0050 )
0051 
0052 process.DiJetAnalysis = cms.EDAnalyzer("DiJetAnalyzer",
0053     hbheInput = cms.InputTag("HitsReCalibration","DiJetsHBHEReRecHitCollection"),
0054     HistOutFile = cms.untracked.string('hi.root'),
0055     hfInput = cms.InputTag("HitsReCalibration","DiJetsHFReRecHitCollection"),
0056     hoInput = cms.InputTag("HitsReCalibration","DiJetsHOReRecHitCollection"),
0057     ecInput = cms.InputTag("DiJProd","DiJetsEcalRecHitCollection"),
0058     jetsInput = cms.InputTag("iterativeCone5CaloJets")
0059 )
0060 
0061 process.TFileService = cms.Service("TFileService",
0062    fileName = cms.string('hi.root')
0063 )
0064 
0065 #process.DiJetsRecoPool = cms.OutputModule("PoolOutputModule",
0066 #    outputCommands = cms.untracked.vstring('drop *', 
0067 #        'keep *_DiJetsReco_*_*'),
0068 #    fileName = cms.untracked.string('/tmp/andrey/tmp.root')
0069 #)
0070 
0071 process.p = cms.Path(process.HitsReCalibration*process.caloTowersRec*process.iterativeCone5CaloJets*process.DiJetAnalysis)
0072