File indexing completed on 2024-04-06 12:10:20
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("ExREG")
0004 process.load("Configuration.StandardSequences.Services_cff")
0005 process.load('Configuration.Geometry.GeometryDB_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 = 'GR_P_V42_AN3::All'
0010
0011 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0012 calibratedElectrons = cms.PSet(
0013 initialSeed = cms.untracked.uint32(1),
0014 engineName = cms.untracked.string('TRandom3')
0015 ),
0016 )
0017
0018 process.load("EgammaAnalysis.ElectronTools.calibratedElectrons_cfi")
0019
0020
0021 process.calibratedElectrons.isMC = cms.bool(False)
0022 process.calibratedElectrons.inputDataset = cms.string("22Jan2013ReReco")
0023 process.calibratedElectrons.updateEnergyError = cms.bool(True)
0024 process.calibratedElectrons.correctionsType = cms.int32(2)
0025 process.calibratedElectrons.combinationType = cms.int32(3)
0026 process.calibratedElectrons.lumiRatio = cms.double(1.0)
0027 process.calibratedElectrons.verbose = cms.bool(True)
0028 process.calibratedElectrons.synchronization = cms.bool(True)
0029
0030 process.maxEvents = cms.untracked.PSet(
0031 input = cms.untracked.int32(1000)
0032 )
0033
0034
0035 process.source = cms.Source("PoolSource",
0036 fileNames = cms.untracked.vstring( *(
0037
0038
0039
0040
0041 '/store/data/Run2012D/DoubleElectron/AOD/PromptReco-v1/000/205/620/9EB2C1FD-351C-E211-B0A1-003048D37666.root'
0042 )
0043 ))
0044
0045
0046
0047
0048 process.load('EgammaAnalysis.ElectronTools.electronRegressionEnergyProducer_cfi')
0049 process.eleRegressionEnergy.inputElectronsTag = cms.InputTag('gsfElectrons')
0050 process.eleRegressionEnergy.inputCollectionType = cms.uint32(0)
0051 process.eleRegressionEnergy.useRecHitCollections = cms.bool(True)
0052 process.eleRegressionEnergy.produceValueMaps = cms.bool(True)
0053 process.eleRegressionEnergy.regressionInputFile = cms.string("EgammaAnalysis/ElectronTools/data/eleEnergyRegWeights_WithSubClusters_VApr15.root")
0054 process.eleRegressionEnergy.energyRegressionType = cms.uint32(2)
0055
0056 process.out = cms.OutputModule("PoolOutputModule",
0057 outputCommands = cms.untracked.vstring('drop *',
0058 'keep *_*_*_ExREG'),
0059 fileName = cms.untracked.string('electrons.root')
0060 )
0061 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0062
0063 process.p = cms.Path(process.eleRegressionEnergy * process.calibratedElectrons)
0064 process.outpath = cms.EndPath(process.out)
0065
0066