Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:36

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("ELECISO")
0004 
0005 
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(2000)
0008 )
0009 
0010 process.source = cms.Source("PoolSource",
0011                             fileNames = cms.untracked.vstring(
0012     '/store/relval/CMSSW_4_4_0_pre3/RelValQCD_FlatPt_15_3000/GEN-SIM-RECO/START43_V4-v1/0000/0EE664B2-FFA3-E011-918F-002618943882.root',
0013     '/store/relval/CMSSW_4_4_0_pre3/RelValQCD_FlatPt_15_3000/GEN-SIM-RECO/START43_V4-v1/0000/644190E4-F0A3-E011-BED0-00304867C1BA.root',
0014     '/store/relval/CMSSW_4_4_0_pre3/RelValQCD_FlatPt_15_3000/GEN-SIM-RECO/START43_V4-v1/0000/9A80E178-18A4-E011-B1DD-002618FDA287.root',
0015     '/store/relval/CMSSW_4_4_0_pre3/RelValQCD_FlatPt_15_3000/GEN-SIM-RECO/START43_V4-v1/0005/F29B164E-43A6-E011-B2B1-00248C55CC7F.root'    )
0016 )
0017 
0018 
0019 # path ---------------------------------------------------------------
0020 
0021 process.dump = cms.EDAnalyzer("EventContentAnalyzer")
0022 
0023 process.load("RecoParticleFlow.PFProducer.pfBasedElectronIso_cff")
0024 process.load("RecoParticleFlow.PFProducer.pfBasedPhotonIso_cff")
0025 process.load("RecoParticleFlow.PFProducer.pfLinker_cfi")
0026 process.pfLinker.ProducePFCandidates = cms.bool(False)
0027 process.pfLinker.PFCandidate = [cms.InputTag('pfSelectedPhotons'), cms.InputTag('pfSelectedElectrons')]
0028 process.pfLinker.FillMuonRefs = cms.bool(False)
0029 #process.pfPileUpCandidates.bottomCollection = cms.InputTag('particleFlow')
0030 
0031 process.isoReader = cms.EDAnalyzer("PFIsoReader",
0032                                    PFCandidates = cms.InputTag('pfSelectedPhotons'),
0033                                    Electrons=cms.InputTag('gsfElectrons'),
0034                                    Photons=cms.InputTag('pfPhotonTranslator:pfphot'),
0035                                    ElectronValueMap=cms.InputTag('pfLinker:electrons'),
0036                                    PhotonValueMap=cms.InputTag('pfLinker:photons'),
0037                                    MergedValueMap=cms.InputTag('pfLinker:all'),
0038                                    ElectronIsoDeposits = cms.VInputTag(cms.InputTag('elPFIsoDepositCharged'),
0039                                                                        cms.InputTag('elPFIsoDepositNeutral'),
0040                                                                        cms.InputTag('elPFIsoDepositGamma')),
0041                                    PhotonIsoDeposits = cms.VInputTag(cms.InputTag('phPFIsoDepositCharged'),
0042                                                                      cms.InputTag('phPFIsoDepositNeutral'),
0043                                                                      cms.InputTag('phPFIsoDepositGamma')),
0044                                    useEGPFValueMaps=cms.bool(True))
0045                                                           
0046 
0047 process.load("FWCore.Modules.printContent_cfi")
0048 process.p = cms.Path(
0049     process.pfBasedElectronIsoSequence+
0050     process.pfBasedPhotonIsoSequence+
0051     process.pfLinker+
0052     process.isoReader
0053     )
0054 
0055 # output ------------------------------------------------------------
0056 
0057 process.load("Configuration.EventContent.EventContent_cff")
0058 
0059 process.out = cms.OutputModule("PoolOutputModule",
0060                                outputCommands = cms.untracked.vstring('drop *',
0061                                                                       'keep *_*_*_ELECISO'),
0062                                fileName = cms.untracked.string('electronIsolation.root')
0063 )
0064 
0065 
0066 
0067 process.outpath = cms.EndPath(
0068     process.out 
0069 #    process.aod
0070     )
0071 
0072 
0073 # other stuff
0074 
0075 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0076 process.MessageLogger.cerr.FwkReport.reportEvery = 10
0077