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.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 # dataset to correct
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     #'/store/relval/CMSSW_5_3_4_cand1/RelValZEE/GEN-SIM-RECO/PU_START53_V10-v1/0003/0CBBC6C2-42F7-E111-B1C8-0030486780B4.root'
0038     #'/store/relval/CMSSW_5_3_6/RelValZEE/GEN-SIM-RECO/PU_START53_V14-v1/0003/2C92DB85-E82C-E211-B8DE-003048D37560.root' 
0039     #'/store/data/Run2012D/DoubleElectron/AOD/PromptReco-v1/000/203/777/D82E96C2-240B-E211-AFF3-001D09F2905B.root'
0040     #'/store/data/Run2012A/DoubleElectron/AOD/13Jul2012-v1/00000/FEEE5F6A-26DA-E111-B08C-00266CFAE8D0.root'
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