Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-17 03:27:20

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from CommonTools.ParticleFlow.Isolation.tools_cfi import *
0004 
0005 #Now prepare the iso deposits
0006 elPFIsoDepositCharged=isoDepositReplace('pfSelectedElectrons','pfAllChargedHadrons')
0007 elPFIsoDepositChargedAll=isoDepositReplace('pfSelectedElectrons','pfAllChargedParticles')
0008 elPFIsoDepositNeutral=isoDepositReplace('pfSelectedElectrons','pfAllNeutralHadrons')
0009 elPFIsoDepositPU=isoDepositReplace('pfSelectedElectrons','pfPileUpAllChargedParticles')
0010 #elPFIsoDepositGamma=isoDepositReplace('pfSelectedElectrons','pfAllPhotons')
0011 elPFIsoDepositGamma= cms.EDProducer("CandIsoDepositProducer",
0012                                      src = cms.InputTag("pfSelectedElectrons"),
0013                                      MultipleDepositsFlag = cms.bool(False),
0014                                      trackType = cms.string('candidate'),
0015                                      ExtractorPSet = cms.PSet(
0016                                             Diff_z = cms.double(99999.99),
0017                                             ComponentName = cms.string('PFCandWithSuperClusterExtractor'),
0018                                             DR_Max = cms.double(0.4),
0019                                             Diff_r = cms.double(99999.99),
0020                                             inputCandView = cms.InputTag("pfAllPhotons"),
0021                                             DR_Veto = cms.double(0),
0022                                             SCMatch_Veto = cms.bool(False),
0023                                             MissHitSCMatch_Veto = cms.bool(True),
0024                                             DepositLabel = cms.untracked.string('')
0025                                             )
0026                                     )
0027 elPFIsoDepositCharged.ExtractorPSet.DR_Veto    = 0
0028 elPFIsoDepositChargedAll.ExtractorPSet.DR_Veto = 0
0029 elPFIsoDepositNeutral.ExtractorPSet.DR_Veto    = 0
0030 elPFIsoDepositPU.ExtractorPSet.DR_Veto         = 0
0031 
0032 
0033 electronPFIsolationDepositsTask = cms.Task(
0034     elPFIsoDepositCharged,
0035     elPFIsoDepositChargedAll,
0036     elPFIsoDepositGamma,
0037     elPFIsoDepositNeutral,
0038     elPFIsoDepositPU
0039     )
0040 electronPFIsolationDepositsSequence = cms.Sequence(electronPFIsolationDepositsTask)