Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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 # The file imported by this line was deleted from CMSSW in 2017.
0024 # This is the first thing that fails if you try to run this.
0025 # This is not even parseable by Python.
0026 process.load("RecoJets.JetProducers.ic5CaloJets_cfi")
0027 
0028 process.iterativeCone5CaloJets.doPVCorrection = cms.bool(False)
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(-1)
0032 )
0033 process.source = cms.Source("PoolSource",
0034     fileNames = 
0035 cms.untracked.vstring(
0036 '/store/relval/CMSSW_3_3_0_pre5/RelValQCD_Pt_80_120/ALCARECO/STARTUP31X_V7_StreamHcalCalDijets-v1/0004/B421101A-6AAB-DE11-A988-001D09F2A465.root'
0037 )
0038 )
0039 
0040 process.es_ascii2 = cms.ESSource("HcalTextCalibrations",
0041                                  input = cms.VPSet(cms.PSet(
0042             object = cms.string('RespCorrs'),
0043             file = cms.FileInPath('Calibration/HcalCalibAlgos/data/calibConst_IsoTrk_testCone_26.3cm.txt')
0044     )),
0045     appendToDataLabel = cms.string('recalibrate')
0046 )
0047 
0048 process.prefer("es_ascii2")
0049 process.HitsReCalibration = cms.EDProducer("HitReCalibrator",
0050     hbheInput = cms.InputTag("DiJProd","DiJetsHBHERecHitCollection"),
0051     hfInput = cms.InputTag("DiJProd","DiJetsHFRecHitCollection"),
0052     hoInput = cms.InputTag("DiJProd","DiJetsHORecHitCollection")
0053 )
0054 
0055 # I did not add the parameter "JetCorrections" when I upgraded to use the
0056 # new reco::JetCorrector because the pre-existing version already did not
0057 # have the "pfJetCorrName" parameter to identify which corrections to use
0058 # for the deprecated JetCorrector class.
0059 # This means the configuration using the old JetCorrectors was already broken.
0060 # There was no information available to identify which corrections are desired.
0061 # So at least that will need to be fixed before this
0062 # configuration will run. This configuration also looks like it
0063 # has not been run since ~2010 and there are many other broken things that
0064 # will also need fixing before it will run. For example, there are several other
0065 # configuration parameters missing just for this module.
0066 process.DiJetAnalysis = cms.EDAnalyzer("DiJetAnalyzer",
0067     hbheInput = cms.InputTag("HitsReCalibration","DiJetsHBHEReRecHitCollection"),
0068     HistOutFile = cms.untracked.string('hi.root'),
0069     hfInput = cms.InputTag("HitsReCalibration","DiJetsHFReRecHitCollection"),
0070     hoInput = cms.InputTag("HitsReCalibration","DiJetsHOReRecHitCollection"),
0071     ecInput = cms.InputTag("DiJProd","DiJetsEcalRecHitCollection"),
0072     jetsInput = cms.InputTag("iterativeCone5CaloJets")
0073 )
0074 
0075 process.TFileService = cms.Service("TFileService",
0076    fileName = cms.string('hi.root')
0077 )
0078 
0079 #process.DiJetsRecoPool = cms.OutputModule("PoolOutputModule",
0080 #    outputCommands = cms.untracked.vstring('drop *', 
0081 #        'keep *_DiJetsReco_*_*'),
0082 #    fileName = cms.untracked.string('/tmp/andrey/tmp.root')
0083 #)
0084 
0085 process.p = cms.Path(process.HitsReCalibration*process.caloTowersRec*process.iterativeCone5CaloJets*process.DiJetAnalysis)
0086