Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-16 01:50:15

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(1000)
0014 )
0015 
0016 process.source = cms.Source("PoolSource",
0017                             fileNames = cms.untracked.vstring('/store/relval/CMSSW_4_1_3/RelValZEE/GEN-SIM-RECO/START311_V2-v1/0038/5EF714E8-5A52-E011-953C-0026189438E8.root',),
0018                             secondaryFileNames = cms.untracked.vstring()
0019                             )
0020 
0021 process.load("RecoEgamma.ElectronIdentification.cutsInCategoriesElectronIdentificationV06_cfi")
0022 
0023 process.electronsCiCLoose = cms.EDFilter("EleIdCutBased",
0024                                          src = cms.InputTag("gsfElectrons"),
0025                                          algorithm = cms.string("eIDCB"),
0026                                          threshold = cms.double(14.5),
0027                                          electronIDType = process.eidLooseMC.electronIDType,
0028                                          electronQuality = process.eidLooseMC.electronQuality,
0029                                          electronVersion = process.eidLooseMC.electronVersion,
0030                                          additionalCategories = process.eidLooseMC.additionalCategories,
0031                                          classbasedlooseEleIDCutsV06 = process.eidLooseMC.classbasedlooseEleIDCutsV06,
0032                                          etBinning = cms.bool(False),
0033                                          version = cms.string(""),
0034                                          verticesCollection = cms.InputTag('offlinePrimaryVerticesWithBS'),
0035                                          reducedBarrelRecHitCollection = cms.InputTag("reducedEcalRecHitsEB"),
0036                                          reducedEndcapRecHitCollection = cms.InputTag("reducedEcalRecHitsEE"),
0037                                          )
0038 
0039 process.eIDSequence = cms.Sequence(process.eidLooseMC)
0040 process.CiCLooseFilter = cms.Sequence(process.electronsCiCLoose)
0041 process.p = cms.Path(process.eIDSequence*process.CiCLooseFilter)
0042 
0043 process.out = cms.OutputModule("PoolOutputModule",
0044                                outputCommands = cms.untracked.vstring('drop *', 
0045                                                                       'keep *_electronsCiCLoose_*_*'),
0046                                #SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('filter')),
0047                                fileName = cms.untracked.string('electrons.root')
0048                                )
0049 
0050 process.outpath = cms.EndPath(process.out)
0051