Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:14:03

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("ExREG")
0004 process.load("Configuration.StandardSequences.Services_cff")
0005 process.load('Configuration.StandardSequences.Geometry_cff')
0006 process.load('Configuration/StandardSequences/MagneticField_38T_cff')
0007 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0008 process.load("Configuration.StandardSequences.Reconstruction_cff")
0009 process.GlobalTag.globaltag = 'START44_V7::All'
0010 
0011 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0012     calibratedPatElectrons = cms.PSet(
0013         initialSeed = cms.untracked.uint32(1),
0014         engineName = cms.untracked.string('TRandom3')
0015     ),
0016 )
0017 
0018 process.load("EgammaAnalysis.ElectronTools.calibratedPatElectrons_cfi")
0019 
0020 # dataset to correct
0021 process.calibratedPatElectrons.isMC = cms.bool(False)
0022 process.calibratedPatElectrons.inputDataset = cms.string("Jan16ReReco")
0023 process.calibratedPatElectrons.updateEnergyError = cms.bool(True)
0024 process.calibratedPatElectrons.correctionsType = cms.int32(2)
0025 process.calibratedPatElectrons.combinationType = cms.int32(3)
0026 process.calibratedPatElectrons.lumiRatio = cms.double(1.0)
0027 process.calibratedPatElectrons.verbose = cms.bool(True)
0028 process.calibratedPatElectrons.synchronization = cms.bool(True)
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(-1)
0032     )
0033 
0034 
0035 process.source = cms.Source("PoolSource",
0036     #fileNames = cms.untracked.vstring('/store/cmst3/user/cmgtools/CMG/DoubleElectron/Run2011A-16Jan2012-v1/AOD/V5/PAT_CMG_V5_9_0/cmgTuple_305.root')
0037     fileNames = cms.untracked.vstring('/store/cernproduction/hzz4l/CMG/DoubleElectron/Run2011A-16Jan2012-v1/AOD/V5/PAT_CMG_V5_15_0/cmgTuple_999.root')
0038     )
0039 
0040 process.load('EgammaAnalysis.ElectronTools.electronRegressionEnergyProducer_cfi')
0041 process.eleRegressionEnergy.inputElectronsTag = cms.InputTag('patElectronsWithTrigger')
0042 process.eleRegressionEnergy.rhoCollection = cms.InputTag('kt6PFJets:rho')
0043 process.eleRegressionEnergy.energyRegressionType = cms.uint32(1)
0044 #process.eleRegressionEnergy.inputCollectionType = cms.uint32(0)
0045 #process.eleRegressionEnergy.useRecHitCollections = cms.bool(True)
0046 
0047 process.out = cms.OutputModule("PoolOutputModule",
0048                                outputCommands = cms.untracked.vstring('drop *',
0049                                                                       'keep *_*_*_ExREG'),
0050                                fileName = cms.untracked.string('electrons_tmp.root')
0051                                                               )
0052 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0053 
0054 process.p = cms.Path( process.eleRegressionEnergy * process.calibratedPatElectrons)
0055 process.outpath = cms.EndPath(process.out)