Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-19 23:41:01

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from CommonTools.ParticleFlow.Isolation.tools_cfi import *
0004 
0005 #Now prepare the iso deposits
0006 elPFIsoDepositChargedPFBRECO=isoDepositReplace('pfSelectedElectronsPFBRECO','pfAllChargedHadronsPFBRECO')
0007 elPFIsoDepositChargedAllPFBRECO=isoDepositReplace('pfSelectedElectronsPFBRECO','pfAllChargedParticlesPFBRECO')
0008 elPFIsoDepositNeutralPFBRECO=isoDepositReplace('pfSelectedElectronsPFBRECO','pfAllNeutralHadronsPFBRECO')
0009 elPFIsoDepositPUPFBRECO=isoDepositReplace('pfSelectedElectronsPFBRECO','pfPileUpAllChargedParticlesPFBRECO')
0010 #elPFIsoDepositGammaPFBRECO=isoDepositReplace('pfSelectedElectronsPFBRECO','pfAllPhotonsPFBRECO')
0011 elPFIsoDepositGammaPFBRECO= cms.EDProducer("CandIsoDepositProducer",
0012                                      src = cms.InputTag("pfSelectedElectronsPFBRECO"),
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("pfAllPhotonsPFBRECO"),
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 elPFIsoDepositChargedPFBRECO.ExtractorPSet.DR_Veto = 0
0028 elPFIsoDepositChargedAllPFBRECO.ExtractorPSet.DR_Veto = 0
0029 elPFIsoDepositNeutralPFBRECO.ExtractorPSet.DR_Veto = 0
0030 elPFIsoDepositPUPFBRECO.ExtractorPSet.DR_Veto = 0
0031 
0032 
0033 electronPFIsolationDepositsPFBRECOTask = cms.Task(
0034     elPFIsoDepositChargedPFBRECO,
0035     elPFIsoDepositChargedAllPFBRECO,
0036     elPFIsoDepositGammaPFBRECO,
0037     elPFIsoDepositNeutralPFBRECO,
0038     elPFIsoDepositPUPFBRECO
0039     )
0040 electronPFIsolationDepositsPFBRECOSequence = cms.Sequence(electronPFIsolationDepositsPFBRECOTask)