CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
electronPFIsolationValuesPAT_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 elPFIsoValueCharged03PFIdPAT = _m.elPFIsoValueCharged03PFIdPFBRECO.clone()
6 elPFIsoValueCharged03PFIdPAT.deposits[0].src = 'elPFIsoDepositChargedPAT'
7 
8 elPFIsoValueChargedAll03PFIdPAT = _m.elPFIsoValueChargedAll03PFIdPFBRECO.clone()
9 elPFIsoValueChargedAll03PFIdPAT.deposits[0].src = 'elPFIsoDepositChargedAllPAT'
10 
11 elPFIsoValueGamma03PFIdPAT = _m.elPFIsoValueGamma03PFIdPFBRECO.clone()
12 elPFIsoValueGamma03PFIdPAT.deposits[0].src = 'elPFIsoDepositGammaPAT'
13 
14 elPFIsoValueNeutral03PFIdPAT = _m.elPFIsoValueNeutral03PFIdPFBRECO.clone()
15 elPFIsoValueNeutral03PFIdPAT.deposits[0].src = 'elPFIsoDepositNeutralPAT'
16 
17 elPFIsoValuePU03PFIdPAT = _m.elPFIsoValuePU03PFIdPFBRECO.clone()
18 elPFIsoValuePU03PFIdPAT.deposits[0].src = 'elPFIsoDepositPUPAT'
19 
20 elPFIsoValueCharged04PFIdPAT = elPFIsoValueCharged03PFIdPAT.clone()
21 elPFIsoValueCharged04PFIdPAT.deposits[0].deltaR = cms.double(0.4)
22 
23 elPFIsoValueChargedAll04PFIdPAT = elPFIsoValueChargedAll03PFIdPAT.clone()
24 elPFIsoValueChargedAll04PFIdPAT.deposits[0].deltaR = cms.double(0.4)
25 
26 elPFIsoValueGamma04PFIdPAT = elPFIsoValueGamma03PFIdPAT.clone()
27 elPFIsoValueGamma04PFIdPAT.deposits[0].deltaR = cms.double(0.4)
28 
29 elPFIsoValueNeutral04PFIdPAT = elPFIsoValueNeutral03PFIdPAT.clone()
30 elPFIsoValueNeutral04PFIdPAT.deposits[0].deltaR = cms.double(0.4)
31 
32 elPFIsoValuePU04PFIdPAT = elPFIsoValuePU03PFIdPAT.clone()
33 elPFIsoValuePU04PFIdPAT.deposits[0].deltaR = cms.double(0.4)
34 
35 ##########Now the PFNoId
36 elPFIsoValueCharged03NoPFIdPAT = elPFIsoValueCharged03PFIdPAT.clone()
37 elPFIsoValueChargedAll03NoPFIdPAT = elPFIsoValueChargedAll03PFIdPAT.clone()
38 elPFIsoValueGamma03NoPFIdPAT = elPFIsoValueGamma03PFIdPAT.clone()
39 elPFIsoValueNeutral03NoPFIdPAT = elPFIsoValueNeutral03PFIdPAT.clone()
40 elPFIsoValuePU03NoPFIdPAT = elPFIsoValuePU03PFIdPAT.clone()
41 # Customization - No longer needed with new recommendation
42 #elPFIsoValueCharged03NoPFIdPAT.deposits[0].vetos = cms.vstring('EcalBarrel:ConeVeto(0.015)','EcalEndcaps:ConeVeto(0.015)')
43 #elPFIsoValueChargedAll03NoPFIdPAT.deposits[0].vetos = cms.vstring('EcalBarrel:ConeVeto(0.015)','EcalEndcaps:ConeVeto(0.015)')
44 #elPFIsoValuePU03NoPFIdPAT.deposits[0].vetos = cms.vstring('EcalBarrel:ConeVeto(0.015)','EcalEndcaps:ConeVeto(0.015)')
45 #elPFIsoValueGamma03NoPFIdPAT.deposits[0].vetos = cms.vstring('EcalBarrel:RectangularEtaPhiVeto(-0.02,0.02,-0.5,0.5)','EcalEndcaps:ConeVeto(0.08)')
46 
47 
48 elPFIsoValueCharged04NoPFIdPAT = elPFIsoValueCharged04PFIdPAT.clone()
49 elPFIsoValueChargedAll04NoPFIdPAT = elPFIsoValueChargedAll04PFIdPAT.clone()
50 elPFIsoValueGamma04NoPFIdPAT = elPFIsoValueGamma04PFIdPAT.clone()
51 elPFIsoValueNeutral04NoPFIdPAT = elPFIsoValueNeutral04PFIdPAT.clone()
52 elPFIsoValuePU04NoPFIdPAT = elPFIsoValuePU04PFIdPAT.clone()
53 #elPFIsoValueCharged04NoPFIdPAT.deposits[0].vetos = cms.vstring('EcalBarrel:ConeVeto(0.015)','EcalEndcaps:ConeVeto(0.015)')
54 #elPFIsoValueChargedAll04NoPFIdPAT.deposits[0].vetos = cms.vstring('EcalBarrel:ConeVeto(0.015)','EcalEndcaps:ConeVeto(0.015)')
55 #elPFIsoValuePU04NoPFIdPAT.deposits[0].vetos = cms.vstring('EcalBarrel:ConeVeto(0.015)','EcalEndcaps:ConeVeto(0.015)')
56 #elPFIsoValueGamma04NoPFIdPAT.deposits[0].vetos = cms.vstring('EcalBarrel:RectangularEtaPhiVeto(-0.02,0.02,-0.5,0.5)','EcalEndcaps:ConeVeto(0.08)')
57 
58 electronPFIsolationValuesPATTask = cms.Task(
59  elPFIsoValueCharged03PFIdPAT,
60  elPFIsoValueChargedAll03PFIdPAT,
61  elPFIsoValueGamma03PFIdPAT,
62  elPFIsoValueNeutral03PFIdPAT,
63  elPFIsoValuePU03PFIdPAT,
64  ##############################
65  elPFIsoValueCharged04PFIdPAT,
66  elPFIsoValueChargedAll04PFIdPAT,
67  elPFIsoValueGamma04PFIdPAT,
68  elPFIsoValueNeutral04PFIdPAT,
69  elPFIsoValuePU04PFIdPAT,
70  ##############################
71  elPFIsoValueCharged03NoPFIdPAT,
72  elPFIsoValueChargedAll03NoPFIdPAT,
73  elPFIsoValueGamma03NoPFIdPAT,
74  elPFIsoValueNeutral03NoPFIdPAT,
75  elPFIsoValuePU03NoPFIdPAT,
76  ##############################
77  elPFIsoValueCharged04NoPFIdPAT,
78  elPFIsoValueChargedAll04NoPFIdPAT,
79  elPFIsoValueGamma04NoPFIdPAT,
80  elPFIsoValueNeutral04NoPFIdPAT,
81  elPFIsoValuePU04NoPFIdPAT)
82 
83 electronPFIsolationValuesPATSequence = cms.Sequence(electronPFIsolationValuesPATTask)