test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
eleIsoSequence_cff.py
Go to the documentation of this file.
1 #from RecoParticleFlow.PFProducer.electronPFIsolationValues_cff import *
2 #from CommonTools.ParticleFlow.PFBRECO_cff import *
4 import FWCore.ParameterSet.Config as cms
5 #Now prepare the iso deposits
6 elPFIsoDepositChargedGsf=isoDepositReplace('gedGsfElectrons','pfAllChargedHadrons')
7 elPFIsoDepositChargedAllGsf=isoDepositReplace('gedGsfElectrons','pfAllChargedParticles')
8 elPFIsoDepositNeutralGsf=isoDepositReplace('gedGsfElectrons','pfAllNeutralHadrons')
9 elPFIsoDepositPUGsf=isoDepositReplace('gedGsfElectrons','pfPileUpAllChargedParticles')
10 #elPFIsoDepositGamma=isoDepositReplace('pfSelectedElectrons','pfAllPhotons')
11 elPFIsoDepositGammaGsf= cms.EDProducer("CandIsoDepositProducer",
12  src = cms.InputTag("gedGsfElectrons"),
13  MultipleDepositsFlag = cms.bool(False),
14  trackType = cms.string('candidate'),
15  ExtractorPSet = cms.PSet(
16  Diff_z = cms.double(99999.99),
17  ComponentName = cms.string('PFCandWithSuperClusterExtractor'),
18  DR_Max = cms.double(1.0),
19  Diff_r = cms.double(99999.99),
20  inputCandView = cms.InputTag("pfAllPhotons"),
21  DR_Veto = cms.double(0),
22  SCMatch_Veto = cms.bool(False),
23  MissHitSCMatch_Veto = cms.bool(True),
24  DepositLabel = cms.untracked.string('')
25  )
26  )
27 
28 # elPFIsoDepositChargedGsf= elPFIsoDepositCharged.clone()
29 # elPFIsoDepositChargedGsf.src = 'gedGsfElectrons'
30 # elPFIsoDepositChargedAllGsf = elPFIsoDepositChargedAll.clone()
31 # elPFIsoDepositChargedAllGsf.src = 'gedGsfElectrons'
32 # elPFIsoDepositNeutralGsf = elPFIsoDepositNeutral.clone()
33 # elPFIsoDepositNeutralGsf.src = 'gedGsfElectrons'
34 # elPFIsoDepositGammaGsf = elPFIsoDepositGamma.clone()
35 # elPFIsoDepositGammaGsf.src = 'gedGsfElectrons'
36 # elPFIsoDepositPUGsf = elPFIsoDepositPU.clone()
37 # elPFIsoDepositPUGsf.src = 'gedGsfElectrons'
38 
39 elPFIsoValueCharged03PFIdGsf = cms.EDProducer("PFCandIsolatorFromDeposits",
40  deposits = cms.VPSet(
41  cms.PSet(
42  src = cms.InputTag("elPFIsoDepositChargedGsf"),
43  deltaR = cms.double(0.3),
44  weight = cms.string('1'),
45  vetos = cms.vstring('EcalEndcaps:ConeVeto(0.015)'),
46  skipDefaultVeto = cms.bool(True),
47  mode = cms.string('sum'),
48  PivotCoordinatesForEBEE = cms.bool(True)
49  )
50  )
51  )
52 elPFIsoValueChargedAll03PFIdGsf = cms.EDProducer("PFCandIsolatorFromDeposits",
53  deposits = cms.VPSet(
54  cms.PSet(
55  src = cms.InputTag("elPFIsoDepositChargedAllGsf"),
56  deltaR = cms.double(0.3),
57  weight = cms.string('1'),
58  vetos = cms.vstring('EcalEndcaps:ConeVeto(0.015)'),
59  skipDefaultVeto = cms.bool(True),
60  mode = cms.string('sum'),
61  PivotCoordinatesForEBEE = cms.bool(True)
62  )
63  )
64  )
65 
66 elPFIsoValueGamma03PFIdGsf = cms.EDProducer("PFCandIsolatorFromDeposits",
67  deposits = cms.VPSet(
68  cms.PSet(
69  src = cms.InputTag("elPFIsoDepositGammaGsf"),
70  deltaR = cms.double(0.3),
71  weight = cms.string('1'),
72  vetos = cms.vstring('EcalEndcaps:ConeVeto(0.08)'),
73  skipDefaultVeto = cms.bool(True),
74  mode = cms.string('sum'),
75  PivotCoordinatesForEBEE = cms.bool(True)
76  )
77  )
78 )
79 
80 elPFIsoValueNeutral03PFIdGsf = cms.EDProducer("PFCandIsolatorFromDeposits",
81  deposits = cms.VPSet(
82  cms.PSet(
83  src = cms.InputTag("elPFIsoDepositNeutralGsf"),
84  deltaR = cms.double(0.3),
85  weight = cms.string('1'),
86  vetos = cms.vstring(),
87  skipDefaultVeto = cms.bool(True),
88  mode = cms.string('sum'),
89  PivotCoordinatesForEBEE = cms.bool(True)
90  )
91  )
92  )
93 
94 elPFIsoValuePU03PFIdGsf = cms.EDProducer("PFCandIsolatorFromDeposits",
95  deposits = cms.VPSet(
96  cms.PSet(
97  src = cms.InputTag("elPFIsoDepositPUGsf"),
98  deltaR = cms.double(0.3),
99  weight = cms.string('1'),
100  vetos = cms.vstring('EcalEndcaps:ConeVeto(0.015)'),
101  skipDefaultVeto = cms.bool(True),
102  mode = cms.string('sum'),
103  PivotCoordinatesForEBEE = cms.bool(True)
104  )
105  )
106  )
107 
108 
109 # elPFIsoValueCharged03PFIdGsf = elPFIsoValueCharged03PFId.clone()
110 # #elPFIsoValueCharged03PFIdGsf.deposits[0].src = cms.InputTag(elPFIsoDepositChargedGsf)
111 
112 # elPFIsoValueChargedAll03PFIdGsf = elPFIsoValueChargedAll03PFId.clone()
113 # #elPFIsoValueChargedAll03PFIdGsf.deposits[0].src = cms.InputTag(elPFIsoDepositChargedAllGsf)
114 
115 # elPFIsoValueGamma03PFIdGsf = elPFIsoValueGamma03PFId.clone()
116 # #elPFIsoValueGamma03PFIdGsf.deposits[0].src = cms.InputTag(elPFIsoDepositGammaGsf)
117 
118 
119 # elPFIsoValueNeutral03PFIdGsf = elPFIsoValueNeutral03PFId.clone()
120 # #elPFIsoValueNeutral03PFIdGsf.deposits[0].src = cms.InputTag(elPFIsoDepositNeutralGsf)
121 
122 # elPFIsoValuePU03PFIdGsf = elPFIsoValuePU03PFId.clone()
123 # #elPFIsoValuePU03PFIdGsf.deposits[0].src = cms.InputTag(elPFIsoDepositPUGsf)
124 
125 eleIsoSequence = cms.Sequence((elPFIsoDepositChargedGsf + elPFIsoDepositChargedAllGsf + elPFIsoDepositNeutralGsf + elPFIsoDepositGammaGsf + elPFIsoDepositPUGsf))
126 eleIsoSequence *= cms.Sequence(elPFIsoValueCharged03PFIdGsf+elPFIsoValueChargedAll03PFIdGsf+elPFIsoValueGamma03PFIdGsf+elPFIsoValueNeutral03PFIdGsf+elPFIsoValuePU03PFIdGsf )
127 pfisoALCARECO = cms.Sequence(eleIsoSequence) #pfParticleSelectionSequence + eleIsoSequence)
def isoDepositReplace
Definition: tools_cfi.py:6