File indexing completed on 2024-04-06 12:25:08
0001 from FWCore.ParameterSet.Config import *
0002
0003 process = cms.Process("runElectronID")
0004
0005 process.load('FWCore.MessageService.MessageLogger_cfi')
0006 process.load('Configuration.StandardSequences.Services_cff')
0007 process.load('Configuration.StandardSequences.GeometryDB_cff')
0008 process.load("Configuration.StandardSequences.MagneticField_cff")
0009
0010 from Geometry.CaloEventSetup.CaloTopology_cfi import *
0011
0012 process.maxEvents = cms.untracked.PSet(
0013 input = cms.untracked.int32(-1)
0014 )
0015
0016 process.source = cms.Source("PoolSource",
0017 fileNames = cms.untracked.vstring(
0018 '/store/relval/CMSSW_3_10_0_pre2/RelValZEE/GEN-SIM-RECO/START39_V3-v1/0061/A0E0AF74-F5E2-DF11-A9BC-002618943939.root',
0019 ),
0020 secondaryFileNames = cms.untracked.vstring (
0021 )
0022 )
0023
0024 process.load("RecoEgamma.ElectronIdentification.electronIdCutBasedExt_cfi")
0025 from RecoEgamma.ElectronIdentification.electronIdCutBasedExt_cfi import *
0026 process.load("RecoEgamma.ElectronIdentification.electronIdCutBasedClassesExt_cfi")
0027 from RecoEgamma.ElectronIdentification.electronIdCutBasedClassesExt_cfi import *
0028
0029 process.eIDRobustLoose = eidCutBasedExt.clone()
0030 process.eIDRobustLoose.electronIDType = 'robust'
0031 process.eIDRobustLoose.electronQuality = 'loose'
0032
0033 process.eIDRobustLooseV00 = eidCutBasedExt.clone()
0034 process.eIDRobustLooseV00.electronIDType = 'robust'
0035 process.eIDRobustLooseV00.electronQuality = 'loose'
0036 process.eIDRobustLooseV00.electronVersion = 'V00'
0037
0038 process.eIDRobustTight = eidCutBasedExt.clone()
0039 process.eIDRobustTight.electronIDType = 'robust'
0040 process.eIDRobustTight.electronQuality = 'tight'
0041
0042 process.eIDRobustHighEnergy = eidCutBasedExt.clone()
0043 process.eIDRobustHighEnergy.electronIDType = 'robust'
0044 process.eIDRobustHighEnergy.electronQuality = 'highenergy'
0045
0046 process.eIDLoose = eidCutBasedExt.clone()
0047 process.eIDLoose.electronIDType = 'classbased'
0048 process.eIDLoose.electronQuality = 'loose'
0049
0050 process.eIDTight = eidCutBasedExt.clone()
0051 process.eIDTight.electronIDType = 'classbased'
0052 process.eIDTight.electronQuality = 'tight'
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063 eIDSequence = cms.Sequence(process.eIDRobustLoose+
0064 process.eIDRobustLooseV00+
0065 process.eIDRobustTight+
0066 process.eIDRobustHighEnergy+
0067 process.eIDLoose+
0068 process.eIDTight)
0069
0070
0071
0072
0073 process.p = cms.Path(eIDSequence)
0074
0075 process.out = cms.OutputModule("PoolOutputModule",
0076 outputCommands = cms.untracked.vstring('drop *',
0077 'keep *_gsfElectrons_*_*',
0078 'keep *_eIDRobustLoose_*_*',
0079 'keep *_eIDRobustLooseV00_*_*',
0080 'keep *_eIDRobustTight_*_*',
0081 'keep *_eIDRobustHighEnergy_*_*',
0082 'keep *_eIDLoose_*_*',
0083 'keep *_eIDTight_*_*'),
0084
0085
0086
0087
0088 fileName = cms.untracked.string('electrons.root')
0089 )
0090
0091 process.outpath = cms.EndPath(process.out)
0092